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 String
A property key for the document offset bottom.static final String
A property key for the document offset top.static final String
A property key for the dynamic zoom mode.static final int
User-specific zoom modes bay be allocated starting from this constant.static final int
Dynamically fit pages vertical and horizontal.static final int
Dynamically fit pages vertical.static final int
Dynamically fit pages horizontal.static final int
No dynamic zoom. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
fitBoth()
Dynamically zoom pages so that they fit completely into the page view.void
Dynamically zoom pages so that they fill the page view vertically.void
fitWidth()
Dynamically zoom pages so that they fill the page view horizontally.int
int
hashCode()
protected void
Initializes additional settings.void
setDocumentOffsetBottom
(Integer documentOffsetBottom) Set the bottom offset of the document.void
setDocumentOffsetTop
(Integer documentOffsetTop) Set the top offset of the document.void
setDynamicZoomMode
(int dynamicZoomMode) toString()
void
update
(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:AbstractListenableRenderSettings
Initializes additional settings.- Specified by:
setDefaults
in 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
-