Methods Summary |
---|
public synchronized void | addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listeners.add(listener);
|
public void | firePropertyChange()
if (listeners.size() > 0) {
PropertyChangeEvent event = new PropertyChangeEvent(source, null,
oldValue, newValue);
Iterator<PropertyChangeListener> iterator = listeners.iterator();
while (iterator.hasNext()) {
PropertyChangeListener listener = iterator.next();
listener.propertyChange(event);
}
}
|
public java.lang.String | getAsText()
return newValue == null ? "null" : newValue.toString(); //$NON-NLS-1$
|
public java.awt.Component | getCustomEditor()
return null;
|
public java.lang.String | getJavaInitializationString()
return "???"; //$NON-NLS-1$
|
public java.lang.Object | getSource()
return source;
|
public java.lang.String[] | getTags()
return null;
|
public java.lang.Object | getValue()
return newValue;
|
public boolean | isPaintable()
return false;
|
public void | paintValue(java.awt.Graphics gfx, java.awt.Rectangle box)
|
public synchronized void | removePropertyChangeListener(java.beans.PropertyChangeListener listener)
if (listeners != null) {
listeners.remove(listener);
}
|
public void | setAsText(java.lang.String text)
if (newValue instanceof String) {
setValue(text);
} else {
throw new IllegalArgumentException(text);
}
|
public void | setSource(java.lang.Object source)
if (source == null) {
throw new NullPointerException(Messages.getString("beans.0C")); //$NON-NLS-1$
}
this.source = source;
|
public void | setValue(java.lang.Object value)
this.oldValue = this.newValue;
this.newValue = value;
firePropertyChange();
|
public boolean | supportsCustomEditor()
return false;
|