public abstract class AbstractHelpAction extends java.lang.Object implements HelpAction
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener to the listener list.
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Supports reporting bound property changes.
|
java.lang.Object |
getControl()
Getter for property control.
|
java.lang.Object |
getValue(java.lang.String key)
Gets the
Object associated with the specified key. |
boolean |
isEnabled()
Getter for property enabled.
|
void |
putValue(java.lang.String key,
java.lang.Object newValue)
Sets the
Value associated with the specified key. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list.
|
void |
setEnabled(boolean enabled)
Setter for property enabled.
|
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener
in interface HelpAction
l
- The listener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
in interface HelpAction
l
- The listener to remove.HelpAction.addPropertyChangeListener(java.beans.PropertyChangeListener)
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
PropertyChangeEvent
to any registered
PropertyChangeListeners
.public boolean isEnabled()
isEnabled
in interface HelpAction
public void setEnabled(boolean enabled)
setEnabled
in interface HelpAction
enabled
- New value of property enabled.public java.lang.Object getControl()
getControl
in interface HelpAction
public java.lang.Object getValue(java.lang.String key)
Object
associated with the specified key.getValue
in interface HelpAction
key
- a string containing the specified key
Object
stored with this key; if there
are no keys, it will return null
Action#getValue
public void putValue(java.lang.String key, java.lang.Object newValue)
Value
associated with the specified key.putValue
in interface HelpAction
key
- the String
that identifies the stored objectnewValue
- the Object
to store using this keyAction#putValue