public interface EnableNotifier
The reason one cannot use a regular property change listener is that the property event only fires if the property is changed, but we need to be notified regardles.
| Modifier and Type | Method and Description |
|---|---|
void |
addEnableListener(EnableListener listener)
Adds the specified listener to the list of listener.
|
void |
fireEnableEvent(EnableEvent e)
Notify EnableListeners that the event has occured.
|
boolean |
isEnabled() |
void |
removeEnableListener(EnableListener listener)
Removes the specified listener from the list of listeners that will be
notified when an EnableEvent occurs.
|
void |
setEnabled(boolean enable)
In addition to invoking super.setEnabled, overriding methods should fire
the enable event.
|
void fireEnableEvent(EnableEvent e)
e - the EnableEventvoid addEnableListener(EnableListener listener)
listener - the EnableListener to add.void removeEnableListener(EnableListener listener)
listener - the EnableListener to removevoid setEnabled(boolean enable)
enable - the new value of the enabled property.JComponent.setEnabled(boolean)boolean isEnabled()
true if enabled.Component.isEnabled()Copyright © 2006–2017 Esito AS. All rights reserved.