Class PreviousPageCommand
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.internal.AbstractSetCurrentPageCommand
com.levigo.jadice.web.client.commands.PreviousPageCommand
- All Implemented Interfaces:
Command
public final class PreviousPageCommand
extends com.levigo.jadice.web.client.commands.internal.AbstractSetCurrentPageCommand
Command that navigates to the previous page.
Positioning of the visible rectangle is configured via
PageView.setVisibleRectPositionOnPageChange(VisibleRectPositioningStrategy).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute()This method is called in order to execute the command.protected intMethods inherited from class com.levigo.jadice.web.client.commands.internal.AbstractSetCurrentPageCommand
canExecuteMethods inherited from class com.levigo.jadice.web.client.commands.AbstractMouseCommand
clearInjections, isDoubleClicked, setMouseEventMethods 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, 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
getID, isAvailable, isAvailable
-
Constructor Details
-
PreviousPageCommand
public PreviousPageCommand()
-
-
Method Details
-
getTargetPage
protected int getTargetPage()- Specified by:
getTargetPagein classcom.levigo.jadice.web.client.commands.internal.AbstractSetCurrentPageCommand
-
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.- Overrides:
executein classcom.levigo.jadice.web.client.commands.internal.AbstractSetCurrentPageCommand
-