|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.Command
com.pietschy.command.ActionCommand
com.pietschy.command.LazyCommand
public abstract class LazyCommand
An ActionCommand that defers construction until the first
execution. Subclasses must implement the build() and
lazyExecute() methods.
| Field Summary |
|---|
| Fields inherited from class com.pietschy.command.ActionCommand |
|---|
PARAMETER_ACTION_EVENT, PARAMETER_INVOKER, PARAMETER_INVOKER_WINDOW, PARAMETER_MODIFIERS |
| Fields inherited from class com.pietschy.command.Command |
|---|
internalLog, PROPERTY_ENABLED, PROPERTY_VISIBLE |
| Constructor Summary | |
|---|---|
LazyCommand()
Constructs a new anonymous instance. |
|
LazyCommand(java.lang.String commandId)
Constructs a new command with the specified id. |
|
| Method Summary | |
|---|---|
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.pietschy.command.ActionCommandExecutor |
|---|
addPropertyChangeListener, addPropertyChangeListener, isEnabled, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface com.pietschy.command.Identifiable |
|---|
getId |
| Constructor Detail |
|---|
public LazyCommand()
public LazyCommand(java.lang.String commandId)
commandId - the command id.| Method Detail |
|---|
public void handleExecute()
build() on the first execution and delegate
the handling of the request to lazyExecute().
handleExecute in class ActionCommandpublic abstract void build()
public abstract void lazyExecute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||