Class PageViewSettings
java.lang.Object
com.levigo.jadice.web.shared.model.settings.AbstractListenableRenderSettings
com.levigo.jadice.web.shared.model.settings.PageViewSettings
- All Implemented Interfaces:
RenderSettings
An implementation
RenderSettings pertaining and particular to the rendering within
com.levigo.jadice.web.client.PageView objectss.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA property key for the document offset bottom.static final StringA property key for the document offset top.static final StringA property key for the dynamic zoom mode.static final intUser-specific zoom modes bay be allocated starting from this constant.static final intDynamically fit pages vertical and horizontal.static final intDynamically fit pages vertical.static final intDynamically fit pages horizontal.static final intNo dynamic zoom. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfitBoth()Dynamically zoom pages so that they fit completely into the page view.voidDynamically zoom pages so that they fill the page view vertically.voidfitWidth()Dynamically zoom pages so that they fill the page view horizontally.intinthashCode()protected voidInitializes additional settings.voidsetDocumentOffsetBottom(Integer documentOffsetBottom) Set the bottom offset of the document.voidsetDocumentOffsetTop(Integer documentOffsetTop) Set the top offset of the document.voidsetDynamicZoomMode(int dynamicZoomMode) toString()voidupdate(String propertyName, RenderSettings other, Object... details) Updates this instance property specified by given property name with the value provided by the other processing setting.Methods inherited from class com.levigo.jadice.web.shared.model.settings.AbstractListenableRenderSettings
addListener, fireChanged, getParent, init, removeListener
-
Field Details
-
DYNAMIC_ZOOM_MODE
A property key for the dynamic zoom mode.- See Also:
-
DOCUMENT_OFFSET_TOP
A property key for the document offset top.- See Also:
-
DOCUMENT_OFFSET_BOTTOM
A property key for the document offset bottom.- See Also:
-
ZOOM_MODE_NONE
public static final int ZOOM_MODE_NONENo dynamic zoom.- See Also:
-
ZOOM_MODE_FIT_WIDTH
public static final int ZOOM_MODE_FIT_WIDTHDynamically fit pages horizontal.- See Also:
-
ZOOM_MODE_FIT_HEIGHT
public static final int ZOOM_MODE_FIT_HEIGHTDynamically fit pages vertical.- See Also:
-
ZOOM_MODE_FIT_BOTH
public static final int ZOOM_MODE_FIT_BOTHDynamically fit pages vertical and horizontal.- See Also:
-
START_OF_USER_ZOOM_MODES
public static final int START_OF_USER_ZOOM_MODESUser-specific zoom modes bay be allocated starting from this constant.- See Also:
-
-
Constructor Details
-
PageViewSettings
public PageViewSettings()
-
-
Method Details
-
setDefaults
protected void setDefaults()Description copied from class:AbstractListenableRenderSettingsInitializes additional settings.- Specified by:
setDefaultsin classAbstractListenableRenderSettings
-
createSnapshot
-
getDynamicZoomMode
public int getDynamicZoomMode() -
setDynamicZoomMode
public void setDynamicZoomMode(int dynamicZoomMode) -
fitWidth
public void fitWidth()Dynamically zoom pages so that they fill the page view horizontally.- See Also:
-
fitHeight
public void fitHeight()Dynamically zoom pages so that they fill the page view vertically.- See Also:
-
fitBoth
public void fitBoth()Dynamically zoom pages so that they fit completely into the page view.- See Also:
-
getDocumentOffsetTop
- Returns:
- the top offset of the document. By default 0.
-
setDocumentOffsetTop
Set the top offset of the document. By default this offset is 0.- Parameters:
documentOffsetTop- the top offset of the document
-
getDocumentOffsetBottom
- Returns:
- the bottom offset of the document. By default 0.
-
setDocumentOffsetBottom
Set the bottom offset of the document. By default this offset is 0.- Parameters:
documentOffsetBottom- the bottom offset of the document
-
hashCode
public int hashCode() -
equals
-
toString
-