Class SelectPageLayoutCommand
java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.client.commands.AbstractContextCommand
com.levigo.jadice.web.client.commands.AbstractPageViewCommand
com.levigo.jadice.web.client.commands.SelectPageLayoutCommand
- All Implemented Interfaces:
Command
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanSubclasses may override this method to perform argument validation beyond the validation that happens automatically during the injection phase.protected voidexecute()This method is called in order to execute the command.getID()The ID of the command.voidsetLayout(PageView.Layout layout) Methods inherited from class com.levigo.jadice.web.client.commands.AbstractPageViewCommand
getPageView, setPageViewMethods inherited from class com.levigo.jadice.web.client.commands.AbstractContextCommand
getContext, propagateContextChange, setContextMethods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, clearInjections, execute, getKey, isSelected, isSelected, setKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.levigo.jadice.web.client.util.command.Command
isAvailable, isAvailable
-
Constructor Details
-
SelectPageLayoutCommand
public SelectPageLayoutCommand() -
SelectPageLayoutCommand
-
-
Method Details
-
canExecute
protected boolean canExecute()Description copied from class:InjectedCommandSubclasses may override this method to perform argument validation beyond the validation that happens automatically during the injection phase. This method is called after the context has been found to match the requirements specified via the @ link Argument} annotations and the arguments have been injected.- Overrides:
canExecutein classAbstractPageViewCommand- Returns:
trueif the command can/may be executed in the current context,falseotherwise.
-
execute
protected void execute()Description copied from class:InjectedCommandThis method is called in order to execute the command. It is only called, after the arguments have been validated and injected and only ifInjectedCommand.canExecute()has returnedtrue.- Specified by:
executein classInjectedCommand
-
setLayout
-
getID
Description copied from interface:CommandThe ID of the command. This is typically the command class name. If the Command is parameterized the ID should comprise the class name + parameter information.- Returns:
- the ID of the command
-