public abstract class AbstractTuttiAction<M extends org.jdesktop.beans.AbstractBean,UI extends TuttiUI<M,?>,H extends AbstractTuttiUIHandler<M,UI>> extends AbstractAction
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractTuttiAction.ActionTimerTask<A extends AbstractTuttiAction> |
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| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTuttiAction(H handler,
String name,
String icon,
String text,
String tip,
boolean hideBody) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent event) |
protected String |
decorate(Object object) |
protected abstract void |
doAction(ActionEvent event) |
String |
getActionDescription() |
protected String |
getActionName() |
protected TuttiApplicationConfig |
getConfig() |
TuttiUIContext |
getContext() |
protected <O> org.nuiton.util.decorator.Decorator<O> |
getDecorator(Class<O> type,
String name) |
H |
getHandler() |
static AbstractTuttiAction |
getMainAction() |
M |
getModel() |
protected <S extends TuttiService> |
getService(Class<S> serviceType) |
UI |
getUI() |
boolean |
isFailed() |
boolean |
isHideBody() |
protected boolean |
prepareAction(ActionEvent event) |
protected void |
releaseAction(ActionEvent event) |
protected void |
runAction(boolean useTimer,
ActionEvent event) |
protected void |
sendMessage(String message) |
void |
setFailed(boolean failed) |
protected void |
setMnemonic(int key) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected abstract void doAction(ActionEvent event) throws Exception
Exceptionpublic final UI getUI()
protected String getActionName()
public String getActionDescription()
protected boolean prepareAction(ActionEvent event)
protected void releaseAction(ActionEvent event)
public boolean isFailed()
public void setFailed(boolean failed)
public final void actionPerformed(ActionEvent event)
protected void runAction(boolean useTimer,
ActionEvent event)
public TuttiUIContext getContext()
public H getHandler()
public M getModel()
protected <S extends TuttiService> S getService(Class<S> serviceType)
protected TuttiApplicationConfig getConfig()
protected void setMnemonic(int key)
public boolean isHideBody()
public static AbstractTuttiAction getMainAction()
protected void sendMessage(String message)
protected <O> org.nuiton.util.decorator.Decorator<O> getDecorator(Class<O> type, String name)
Copyright © 2012-2013 Ifremer. All Rights Reserved.