public class DefaultAction
extends org.bushe.swing.action.BasicAction
implements org.bushe.swing.action.EnabledUpdater
changeSupport, enabledACCELERATOR_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 |
|---|
DefaultAction() |
DefaultAction(String id) |
DefaultAction(String id,
Icon icon) |
DefaultAction(String id,
Integer mnemonic,
KeyStroke accelerator,
Icon icon) |
DefaultAction(String id,
String shortDesc,
String longDesc,
Integer mnemonic,
KeyStroke accelerator,
Icon icon) |
DefaultAction(String id,
String actionName,
String actionCommandName,
String shortDesc,
String longDesc,
Integer mnemonic,
KeyStroke accelerator,
Icon icon) |
DefaultAction(String id,
String actionName,
String actionCommandName,
String shortDesc,
String longDesc,
Integer mnemonic,
KeyStroke accelerator,
Icon icon,
boolean toolbarShowsText,
boolean menuShowsIcon) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformedCatch(Throwable t)
Catch all for anything thrown in the execute() method.
|
boolean |
shouldBeEnabled(Action action) |
boolean |
updateEnabled() |
actionPerformed, actionPerformedFinally, actionPerformedTemplate, actionPerformedTry, addActionListener, addItemListener, addShouldBeEnabledDelegate, clearContext, contextChanged, createIcon, createIcon, execute, getAccelerator, getActionCommandName, getActionName, getContext, getContextValue, getGroup, getId, getLongDescription, getMenuShowsIcon, getMnemonic, getRoles, getShortDescription, getSmallIcon, getToolbarShowsText, isSelected, propogateActionEvent, propogateItemEvent, putContextValue, putValue, removeActionListener, removeItemListener, removeShouldBeEnabledDelegate, setAccelerator, setActionCommandName, setActionName, setContext, setId, setLongDescription, setMenuShowsIcon, setMnemonic, setRoles, setSelected, setShortDescription, setSmallIcon, setToolbarShowsText, shouldBeEnabled, toString, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, removePropertyChangeListener, setEnabledpublic DefaultAction()
public DefaultAction(String id)
public DefaultAction(String id, String shortDesc, String longDesc, Integer mnemonic, KeyStroke accelerator, Icon icon)
public DefaultAction(String id, String actionName, String actionCommandName, String shortDesc, String longDesc, Integer mnemonic, KeyStroke accelerator, Icon icon)
public boolean updateEnabled()
updateEnabled in interface org.bushe.swing.action.EnabledUpdaterpublic boolean shouldBeEnabled(Action action)
shouldBeEnabled in interface org.bushe.swing.action.ShouldBeEnabledDelegateprotected void actionPerformedCatch(Throwable t)
actionPerformedCatch in class org.bushe.swing.action.BasicActionBasicAction.actionPerformedCatch(java.lang.Throwable)Copyright © 2016 Imatia Innovation S.L.. All rights reserved.