Methods Summary |
---|
public void | addChangeListener(javax.swing.event.ChangeListener l)
listenerList.add(ChangeListener.class, l);
|
protected void | fireChange()
Object[] listeners = listenerList.getListenerList();
for (int i = listeners.length - 2; i >= 0; i -=2 ) {
if (listeners[i] == ChangeListener.class) {
if (changeEvent == null) {
changeEvent = new ChangeEvent(this);
}
((ChangeListener)listeners[i+1]).stateChanged(changeEvent);
}
}
|
public javax.swing.event.ChangeListener[] | getChangeListeners()
return (ChangeListener[])listenerList.getListeners(ChangeListener.class);
|
public int | getValue() return value;
|
public boolean | isActivated() return activated;
|
public void | removeChangeListener(javax.swing.event.ChangeListener l)
listenerList.remove(ChangeListener.class, l);
|
public synchronized void | setActivated(boolean b)
if (b != activated) {
activated = b;
fireChange();
}
|
public synchronized void | setValue(int v)
if (v != value) {
value = v;
fireChange();
}
|
public java.lang.String | toString()
String modelString = "value=" + getValue() + ", " +
"activated=" + isActivated();
return getClass().getName() + "[" + modelString + "]";
|