Class FullscreenCommand
java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.demo.common.client.commands.FullscreenCommand
- All Implemented Interfaces:
Command
Button to make a Widget fullscreen
WARNING: This uses the RootLayoutPanel and removes it when closing fullscreen. When you need the
RootLayoutPanel, implement your own FullscreenButton.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceMarker for the Widget to make Fullscreen -
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.voidexecute()This method is called in order to execute the command.booleanReturns the selected state of this command.voidsetHandler(Set<FullscreenCommand.FullscreenHandler> handler) voidMethods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, clearInjections, execute, getKey, 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
getID, isAvailable, isAvailable
-
Constructor Details
-
FullscreenCommand
-
-
Method Details
-
setWidget
-
setHandler
-
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 classInjectedCommand- Returns:
trueif the command can/may be executed in the current context,falseotherwise.
-
execute
public 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
-
isSelected
public boolean isSelected()Description copied from class:InjectedCommandReturns the selected state of this command. This is typically used only for commands with a meaningful selection state.- Overrides:
isSelectedin classInjectedCommand- Returns:
- the selected state
-