Package javax.help
Class AbstractHelpAction
- java.lang.Object
-
- javax.help.AbstractHelpAction
-
- All Implemented Interfaces:
HelpAction
- Direct Known Subclasses:
BackAction
,FavoritesAction
,ForwardAction
,HomeAction
,PrintAction
,PrintSetupAction
,ReloadAction
,SeparatorAction
public abstract class AbstractHelpAction extends java.lang.Object implements HelpAction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theObject
associated with the specified key.boolean
isEnabled()
Getter for property enabled.void
putValue(java.lang.String key, java.lang.Object newValue)
Sets theValue
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.
-
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener to the listener list.- Specified by:
addPropertyChangeListener
in interfaceHelpAction
- Parameters:
l
- The listener to add.
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list.- Specified by:
removePropertyChangeListener
in interfaceHelpAction
- Parameters:
l
- The listener to remove.- See Also:
HelpAction.addPropertyChangeListener(java.beans.PropertyChangeListener)
-
firePropertyChange
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
Supports reporting bound property changes. This method can be called when a bound property has changed and it will send the appropriatePropertyChangeEvent
to any registeredPropertyChangeListeners
.
-
isEnabled
public boolean isEnabled()
Getter for property enabled.- Specified by:
isEnabled
in interfaceHelpAction
- Returns:
- Value of property enabled.
-
setEnabled
public void setEnabled(boolean enabled)
Setter for property enabled.- Specified by:
setEnabled
in interfaceHelpAction
- Parameters:
enabled
- New value of property enabled.
-
getControl
public java.lang.Object getControl()
Getter for property control.- Specified by:
getControl
in interfaceHelpAction
- Returns:
- Value of property control.
-
getValue
public java.lang.Object getValue(java.lang.String key)
Gets theObject
associated with the specified key.- Specified by:
getValue
in interfaceHelpAction
- Parameters:
key
- a string containing the specifiedkey
- Returns:
- the binding
Object
stored with this key; if there are no keys, it will returnnull
- See Also:
Action#getValue
-
putValue
public void putValue(java.lang.String key, java.lang.Object newValue)
Sets theValue
associated with the specified key.- Specified by:
putValue
in interfaceHelpAction
- Parameters:
key
- theString
that identifies the stored objectnewValue
- theObject
to store using this key- See Also:
Action#putValue
-
-