public abstract class EditorAction extends AbstractAction
Action
objects
related to Editor
s. Derived classes must implement
only the doAction
method, executing the required operations on the
supplied Editor
.Modifier and Type | Field and Description |
---|---|
Options |
options |
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 |
---|
EditorAction(String nameKey,
String iconKey,
String toolTipKey,
Options options) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ev) |
protected abstract void |
doAction(Editor e) |
protected Component |
getComponentSrc() |
protected EditorPanel |
getEditorPanelSrc() |
protected JComponent |
getJComponentSrc() |
void |
setActionOwner(Editor e) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public Options options
public final void actionPerformed(ActionEvent ev)
protected abstract void doAction(Editor e)
protected Component getComponentSrc()
protected JComponent getJComponentSrc()
protected EditorPanel getEditorPanelSrc()
public void setActionOwner(Editor e)
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.