Class ActivateRolloutSearchCommand
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.AbstractMouseCommand
com.levigo.jadice.web.client.commands.AbstractDocumentCommand
com.levigo.jadice.web.client.commands.AbstractToggleSearchCommand
com.levigo.jadice.web.client.commands.ActivateRolloutSearchCommand
- All Implemented Interfaces:
Command
Activates the
RolloutSearch
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
AbstractDocumentCommand.Scope
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Checks if this command can be executed.protected void
execute()
This method is called in order to execute the command.protected boolean
Returns the selected state of this command.void
setPreserveSearch
(boolean preserveSearch) Sets the flag that controls if the search is preserved if the document is changed for the underlying RolloutSearchMethods inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
getDocument, getID, getRenderControls, getScope, setScope
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractMouseCommand
clearInjections, isDoubleClicked, setMouseEvent
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractPageViewCommand
getPageView, setPageView
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractContextCommand
getContext, propagateContextChange, setContext
Methods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, execute, getKey, isSelected, setKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.levigo.jadice.web.client.util.command.Command
isAvailable, isAvailable
-
Constructor Details
-
ActivateRolloutSearchCommand
public ActivateRolloutSearchCommand()
-
-
Method Details
-
canExecute
protected boolean canExecute()Description copied from class:AbstractDocumentCommand
Checks if this command can be executed.- Overrides:
canExecute
in classAbstractToggleSearchCommand
- Returns:
- true, if
InjectedCommand.execute(java.util.Collection<java.lang.Object>)
can be called, false else
-
execute
protected void execute()Description copied from class:InjectedCommand
This 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:
execute
in classInjectedCommand
-
isSelected
protected boolean isSelected()Description copied from class:InjectedCommand
Returns the selected state of this command. This is typically used only for commands with a meaningful selection state.- Overrides:
isSelected
in classInjectedCommand
- Returns:
- the selected state
-
findRolloutSearch
-
setPreserveSearch
public void setPreserveSearch(boolean preserveSearch) Sets the flag that controls if the search is preserved if the document is changed for the underlying RolloutSearch- Parameters:
preserveSearch
- flag that controls if the search is preserved if the document is changed
-