public abstract class IsisAction extends AbstractAction
| Modifier and Type | Field and Description |
|---|---|
protected JDialog |
dialog
dialog source of the action (of
null if none) |
protected boolean |
used
flag to say if something has been done in this action (is init in
prepare() method) |
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 |
IsisAction() |
protected |
IsisAction(JDialog dialog) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
protected void |
finish()
called inside
actionPerformed(java.awt.event.ActionEvent) after
perform(java.awt.event.ActionEvent) was invoked (so can't
be come here is nothing was to be done in this action. |
boolean |
isUsed() |
protected boolean |
needDispose() |
protected abstract void |
perform(ActionEvent e)
perform safelly action after
prepare() was invoked
This method is only called if used was true |
protected abstract boolean |
prepare()
Prepare data for action, and find out if there is really something to
do here.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected boolean used
prepare() method)protected JDialog dialog
null if none)protected IsisAction()
protected IsisAction(JDialog dialog)
public void actionPerformed(ActionEvent e)
protected abstract boolean prepare()
true if there is something to do here,
false otherwiseprotected abstract void perform(ActionEvent e)
prepare() was invoked
This method is only called if used was truee - event sourceprotected void finish()
actionPerformed(java.awt.event.ActionEvent) after
perform(java.awt.event.ActionEvent) was invoked (so can't
be come here is nothing was to be done in this action.protected boolean needDispose()
true if we have to dispose dialog,
false otherwisepublic boolean isUsed()
true if something was done in the action performed,
false otherwiseCopyright © 1999-2012 CodeLutin. All Rights Reserved.