public class HelpAction extends AppAction
app, id, MODIFIERS_TOOLTIP_KEY, NO_MNEMONIC, SELECTED_ICON_KEY, UNSELECTED_ICON_KEY
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
HelpAction() |
Modifier and Type | Method and Description |
---|---|
void |
doIt()
Actually implements the action.
|
String |
getHelpId() |
void |
initApp(App app,
String id)
Specifies the App containing this part and the unique ID of this part
within the App.
|
void |
setHelpId(String helpId) |
void |
updateEnabled()
This action should enable or disable itself using standard method
setEnabled(boolean).
|
actionPerformed, activeEditorChanged, applyPreferences, destroyApp, editingContextChanged, flushPreferences, getAccelerator, getApp, getDialogTitle, getIcon, getId, getLabel, getMnemonic, getMnemonicIndex, getModifiersToolTip, getSelectedIcon, getToolTip, getUnselectedIcon, hasListeners, isEditingContextSensitive, isSelected, namespacePrefixesChanged, saveStateChanged, setAccelerator, setDisabledIcons, setIcon, setLabel, setMnemonic, setMnemonicIndex, setModifiersToolTip, setSelected, setSelectedIcon, setToolTip, setUnselectedIcon, undoStateChanged, validityStateChanged, wasCtrlClick, wasRightClick, wasShiftClick
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public void initApp(App app, String id)
AppAction
Default implementation simply stores its arguments in
AppAction.app
and AppAction.id
.
initApp
in interface AppPart
initApp
in class AppAction
AppPart.getApp()
,
AppPart.getId()
,
App.getPart(java.lang.String)
public void setHelpId(String helpId)
public String getHelpId()
public void doIt()
AppAction
actionPerformed(ActionEvent)
simply
invokes doIt()
.)
Will not be called if this action is not enabled (that is,
isEnabled() returns false
).
public void updateEnabled()
AppAction
This method is invoked:
updateEnabled
in class AppAction
AppAction.activeEditorChanged()
,
AppAction.editingContextChanged()