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 voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)Add a PropertyChangeListener to the listener list.protected voidfirePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)Supports reporting bound property changes.java.lang.ObjectgetControl()Getter for property control.java.lang.ObjectgetValue(java.lang.String key)Gets theObjectassociated with the specified key.booleanisEnabled()Getter for property enabled.voidputValue(java.lang.String key, java.lang.Object newValue)Sets theValueassociated with the specified key.voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)Removes a PropertyChangeListener from the listener list.voidsetEnabled(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:
addPropertyChangeListenerin interfaceHelpAction- Parameters:
l- The listener to add.
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list.- Specified by:
removePropertyChangeListenerin 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 appropriatePropertyChangeEventto any registeredPropertyChangeListeners.
-
isEnabled
public boolean isEnabled()
Getter for property enabled.- Specified by:
isEnabledin interfaceHelpAction- Returns:
- Value of property enabled.
-
setEnabled
public void setEnabled(boolean enabled)
Setter for property enabled.- Specified by:
setEnabledin interfaceHelpAction- Parameters:
enabled- New value of property enabled.
-
getControl
public java.lang.Object getControl()
Getter for property control.- Specified by:
getControlin interfaceHelpAction- Returns:
- Value of property control.
-
getValue
public java.lang.Object getValue(java.lang.String key)
Gets theObjectassociated with the specified key.- Specified by:
getValuein interfaceHelpAction- Parameters:
key- a string containing the specifiedkey- Returns:
- the binding
Objectstored 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 theValueassociated with the specified key.- Specified by:
putValuein interfaceHelpAction- Parameters:
key- theStringthat identifies the stored objectnewValue- theObjectto store using this key- See Also:
Action#putValue
-
-