E - the type of the action eventpublic abstract class AbstractActionListener<E> extends Object implements ActionListener<E>
ActionListeners.| Constructor and Description |
|---|
AbstractActionListener()
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Registers a
PropertyChangeListener for the specified property. |
protected PropertyChangeSupport |
getPropertyChangeSupport()
Gets the
PropertyChangeSupport of this bean. |
boolean |
isEnabled()
Returns true, if this action is disabled, else false.
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Unegisters a
PropertyChangeListener for the specified property. |
protected void |
setEnabled(boolean enabled)
Sets the enabled state of this Action.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonActionpublic AbstractActionListener()
public boolean isEnabled()
isEnabled in interface ActionListener<E>protected void setEnabled(boolean enabled)
enabled - the enabled state of this Actionpublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangeListener for the specified property.addPropertyChangeListener in interface ActionListener<E>propertyName - the property to observelistener - the PropertyChangeListener to registerpublic void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
PropertyChangeListener for the specified property.removePropertyChangeListener in interface ActionListener<E>propertyName - the property to stop to observelistener - the PropertyChangeListener to unregisterprotected PropertyChangeSupport getPropertyChangeSupport()
PropertyChangeSupport of this bean.Copyright © 2012–2015 Drombler. All rights reserved.