Class FitPageOnceCommand
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.FitPageOnceCommand
- All Implemented Interfaces:
Command
This command fits the current page into the visible area. To ensure that all pages are fit use
the
FitPageCommand.-
Nested Class Summary
Nested classes/interfaces inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
AbstractDocumentCommand.Scope -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.levigo.jadice.web.client.commands.AbstractDocumentCommand
canExecute, getDocument, getRenderControls, getScope, setScopeMethods 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
isAvailable, isAvailable
-
Constructor Details
-
FitPageOnceCommand
public FitPageOnceCommand(int zoomMode) UsePageViewSettings.ZOOM_MODE_FIT_BOTH,PageViewSettings.ZOOM_MODE_FIT_HEIGHTorPageViewSettings.ZOOM_MODE_FIT_WIDTHas input.- Parameters:
zoomMode- the zoome mode
-
-
Method Details
-
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
-
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.- Specified by:
getIDin interfaceCommand- Overrides:
getIDin classAbstractDocumentCommand- Returns:
- the ID of the command
-