java.lang.Object
org.gui4j.event.SimpleEvent
- All Implemented Interfaces:
- Gui4jEvent
- public class SimpleEvent
- extends java.lang.Object
- implements Gui4jEvent
An event is fired only if the fireEvent method is called
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
private final java.util.List listeners
enabled
private boolean enabled
SimpleEvent
public SimpleEvent()
addEventListener
public void addEventListener(Gui4jEventListener listener)
- Description copied from interface:
Gui4jEvent
- Add listener
- Specified by:
addEventListener in interface Gui4jEvent
removeEventListener
public void removeEventListener(Gui4jEventListener listener)
- Description copied from interface:
Gui4jEvent
- Remove listener
- Specified by:
removeEventListener in interface Gui4jEvent
fireEvent
public final void fireEvent()
isEnabled
public boolean isEnabled()
- Returns the enabled.
setEnabled
public void setEnabled(boolean enabled)
- Sets the enabled.