本文整理汇总了Java中com.cburch.logisim.comp.ComponentListener类的典型用法代码示例。如果您正苦于以下问题:Java ComponentListener类的具体用法?Java ComponentListener怎么用?Java ComponentListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ComponentListener类属于com.cburch.logisim.comp包,在下文中一共展示了ComponentListener类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
@Override
public void addComponentListener(ComponentListener l) {
EventSourceWeakSupport<ComponentListener> ls = listeners;
if (ls == null) {
ls = new EventSourceWeakSupport<ComponentListener>();
ls.add(l);
listeners = ls;
} else {
ls.add(l);
}
}
示例2: removeComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
@Override
public void removeComponentListener(ComponentListener l) {
if (listeners != null) {
listeners.remove(l);
if (listeners.isEmpty())
listeners = null;
}
}
示例3: addComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
public void addComponentListener(ComponentListener l) {
EventSourceWeakSupport<ComponentListener> ls = listeners;
if (ls == null) {
ls = new EventSourceWeakSupport<ComponentListener>();
ls.add(l);
listeners = ls;
} else {
ls.add(l);
}
}
示例4: removeComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
public void removeComponentListener(ComponentListener l) {
if (listeners != null) {
listeners.remove(l);
if (listeners.isEmpty())
listeners = null;
}
}
示例5: addComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
@Override
public void addComponentListener(ComponentListener e) {
}
示例6: removeComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
@Override
public void removeComponentListener(ComponentListener e) {
}
示例7: addComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
public void addComponentListener(ComponentListener e) {
}
示例8: removeComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
public void removeComponentListener(ComponentListener e) {
}
示例9: removeComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
public void removeComponentListener(ComponentListener l) {
if (listeners != null) {
listeners.remove(l);
if (listeners.isEmpty()) listeners = null;
}
}
示例10: addComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
public void addComponentListener( ComponentListener e ) {
}
示例11: removeComponentListener
import com.cburch.logisim.comp.ComponentListener; //导入依赖的package包/类
public void removeComponentListener( ComponentListener e ) {
}