|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pietschy.command.Command
org.pietschy.command.ActionCommand
org.pietschy.command.LazyCommand
public abstract class LazyCommand
The LazyCommand defers the construction of the command until the first execution.
Subclasses must implement the build()
and lazyExecute()
methods.
Field Summary |
---|
Fields inherited from class org.pietschy.command.ActionCommand |
---|
HINT_ACTION_EVENT, HINT_INVOKER, HINT_INVOKER_WINDOW, HINT_MODIFIERS |
Fields inherited from class org.pietschy.command.Command |
---|
internalLog, listenerList, pcs |
Constructor Summary | |
---|---|
LazyCommand()
|
|
LazyCommand(CommandManager commandManager,
java.lang.String commandId)
|
|
LazyCommand(java.lang.String commandId)
|
Method Summary | |
---|---|
protected void |
afterExecute()
Deprecated. Use ActionCommandInterceptor instead. |
protected void |
beforeExecute()
Deprecated. Use ActionCommandInterceptor instead. |
abstract void |
build()
Invoked on the first time the command is executed. |
void |
handleExecute()
This implementation will call build() on the first execution and delegate
the handling of the request to lazyExecute() . |
abstract void |
lazyExecute()
Invoked after build and then again whenever the command is executed. |
Methods inherited from class org.pietschy.command.ActionCommand |
---|
addCommandListener, addInterceptor, areEqual, attach, configureButtonStates, detach, execute, execute, getActionAdapter, getActionAdapter, getActionCommand, getActionEvent, getHint, getHint, getHints, getInvoker, getInvokerWindow, getModifiers, installShortCut, installShortCut, postExecute, preExecute, putHint, putHints, removeCommandListener, removeInterceptor, requestDefautIn, setActionCommand, uninstallShortCut, uninstallShortCut |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.pietschy.command.ActionCommandExecutor |
---|
addPropertyChangeListener, addPropertyChangeListener, isEnabled, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public LazyCommand()
public LazyCommand(java.lang.String commandId)
public LazyCommand(CommandManager commandManager, java.lang.String commandId)
Method Detail |
---|
public void handleExecute()
build()
on the first execution and delegate
the handling of the request to lazyExecute()
.
handleExecute
in class ActionCommand
protected void beforeExecute()
ActionCommandInterceptor
instead.
protected void afterExecute()
ActionCommandInterceptor
instead.
public abstract void build()
public abstract void lazyExecute()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |