org.pietschy.command.delegate
Class CommandDelegate
java.lang.Object
org.pietschy.command.delegate.CommandDelegate
- ActionCommandExecutor
public abstract class CommandDelegate
extends java.lang.Object
PROPERTY_ENABLED
public static final String PROPERTY_ENABLED
CommandDelegate
protected CommandDelegate(String id)
Creaets a new delegate with the specified id. This delegate will be automatically used by any
DelegatingCommand
with the same id.
firePropertyChange
protected void firePropertyChange(PropertyChangeEvent evt)
firePropertyChange
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
firePropertyChange
protected void firePropertyChange(String propertyName,
boolean oldValue,
boolean newValue)
firePropertyChange
protected void firePropertyChange(String propertyName,
int oldValue,
int newValue)
getId
public String getId()
Gets the Id of this delegate.
getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners()
getPropertyChangeListeners
public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
isEnabled
public boolean isEnabled()
Checks if this delegate is enabled.
This is a bound property, changes to its value will fire property change events.
- isEnabled in interface ActionCommandExecutor
- true if the delegate is enabled, false otherwise.
setEnabled
public void setEnabled(boolean enabled)
Sets the enabled state of the delegate.
This is a bound property, changes to its value will fire property change events.
enabled
- true if the delegate is enabled, false otherwise.