com.rapidminer.gui.tools
Class ResourceAction
java.lang.Object
javax.swing.AbstractAction
com.rapidminer.gui.ConditionalAction
com.rapidminer.gui.tools.ResourceAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Direct Known Subclasses:
- AboutAction, AccessRightsAction, AnovaCalculatorAction, AttributeDescriptionFileWizardAction, AttributeEditorAction, AutoWireAction, BrowseAction, CheckForJDBCDriversAction, ClearAction, ClearMessageAction, CloseAction, ConnectPortToRepositoryAction, CutCopyPasteAction, DeleteOperatorAction, EditViewAction, ExitAction, ExportProcessAction, ExportViewAction, GuessAllTypesAction, GuessTypeAction, ImportProcessAction, InfoOperatorAction, LoadDataAction, LoadSeriesDataAction, LoggingSearchAction, ManageBuildingBlocksAction, ManageTemplatesAction, MoveColumnAction, NewAction, NewBuildingBlockAction, NewOperatorAction, NewPerspectiveAction, NewRevisionAction, OpenAction, OpenAttributeFileAction, PageSetupAction, PauseAction, PrintAction, PrintPreviewAction, RedoAction, RefreshHelpTextFromWikiAction, RemoveColumnAction, RemoveRowAction, ResetAllProfilerAction, ResetProfilerAction, ResourceActionAdapter, ResourceActionTransmitter, ResultHistoryAction, RunAction, RunRemoteAction, SaveAction, SaveAsAction, SaveAsTemplateAction, SaveAttributeFileAction, SaveBuildingBlockAction, SaveCumulativeProfilerAction, SaveDataAction, SaveLogFileAction, SaveProfilerAction, SettingsAction, ShowHelpTextInBrowserAction, StopAction, StoreInRepositoryAction, ToggleAction, TutorialAction, UndoAction, UseRowAsNamesAction, ValidateProcessAction, WizardAction, WorkspaceAction
public abstract class ResourceAction
- extends ConditionalAction
This will create an action, whose settings are take from a .properties file being part of
the GUI Resource bundles of RapidMiner. These might be accessed using the I18N class.
A resource action needs a key specifier, which will be used to build the complete keys of
the form:
gui.action..label = Which will be the caption
gui.action..icon = The icon of this action. For examples used in menus or buttons
gui.action..acc = The accelerator key used for menu entries
gui.action..tip = Which will be the tool tip
gui.action..mne = Which will give you access to the mnemonics key. Please make it the same case as in the label
- Author:
- Simon Fischer, Sebastian Land
- See Also:
- Serialized Form
| Fields inherited from class com.rapidminer.gui.ConditionalAction |
DISALLOWED, DONT_CARE, EDIT_IN_PROGRESS, EXECUTION_UNIT_SELECTED, MANDATORY, NUMBER_OF_CONDITIONS, OPERATOR_CHAIN_SELECTED, OPERATOR_SELECTED, PARENT_ENABLED, PROCESS_PAUSED, PROCESS_RUNNING, PROCESS_STOPPED, ROOT_SELECTED, SIBLINGS_EXIST |
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
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 Summary |
ResourceAction(boolean smallIcon,
java.lang.String i18nKey,
java.lang.Object... i18nArgs)
|
ResourceAction(java.lang.String i18nKey,
java.lang.Object... i18nArgs)
|
|
Method Summary |
void |
addToActionMap(javax.swing.JComponent component,
int condition)
Adds the action to the input and action map of the component. |
java.lang.String |
getKey()
This returns the i18n key of this action. |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
ResourceAction
public ResourceAction(java.lang.String i18nKey,
java.lang.Object... i18nArgs)
ResourceAction
public ResourceAction(boolean smallIcon,
java.lang.String i18nKey,
java.lang.Object... i18nArgs)
addToActionMap
public void addToActionMap(javax.swing.JComponent component,
int condition)
- Adds the action to the input and action map of the component.
- Parameters:
condition - one out of WHEN_IN_FOCUES, ...
getKey
public java.lang.String getKey()
- This returns the i18n key of this action.
Copyright © 2001-2009 by Rapid-I