public interface IGUIUpdateEmitter
PropertyChangeListeners
is required.
Currently this interface declares a single method for firing a
VirtualFlagChangedEvent from a GUI.
| Modifier and Type | Method and Description |
|---|---|
void |
addGUIUpdateListener(PropertyChangeListener listener,
String propertyName)
Add a
PropertyChangeListener to the IGUIUpdateEmitter, in
order to be notified on GUI updates. |
void |
fireVirtualFlagChanged(boolean virtual)
Fires a new
VirtualFlagChangedEvent to the registered
PropertyChangeListeners, containing the boolean value for the
flag. |
PropertyChangeListener[] |
getGUIUpdateListeners(String propertyName)
List all registered
PropertyChangeListeners for a given property
name. |
void addGUIUpdateListener(PropertyChangeListener listener, String propertyName)
PropertyChangeListener to the IGUIUpdateEmitter, in
order to be notified on GUI updates.listener - the PropertyChangeListener to be addedpropertyName - the name of the property the listener should listen to, or
null, if the listener shall receive all events.PropertyChangeListener[] getGUIUpdateListeners(String propertyName)
PropertyChangeListeners for a given property
name.propertyName - the name of the property declared in the corresponding
PropertyChangeEvent, or null if all
PropertyChangeListeners shall be retrieved.PropertyChangeListenersvoid fireVirtualFlagChanged(boolean virtual)
VirtualFlagChangedEvent to the registered
PropertyChangeListeners, containing the boolean value for the
flag.virtual - true if the GUI item indicates virtual
processing, false otherwiseCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.