Class ZoomSnapIn
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.levigo.jadice.web.client.ui.status.ZoomSnapIn
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
,SnapIn
- Direct Known Subclasses:
FancyZoomSnapIn
Widget to zoom the PageView.
This command changes the page view based render settings. If any zooming is performed on document level this might not work well together.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Style for the ZoomSnapInNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
Field Summary
FieldsFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newZoomSnapIn
withUIStyler#get()#zoomSnapInStyle()
as the style.ZoomSnapIn
(ZoomSnapIn.ZoomSnapInStyle style, boolean addFitCommands, boolean compact, int... values) Create a newZoomSnapIn
with the given style and the given zoom values.ZoomSnapIn
(ZoomSnapIn.ZoomSnapInStyle style, boolean addFitCommands, int... values) Create a newZoomSnapIn
with the given style and the given zoom values.ZoomSnapIn
(ZoomSnapIn.ZoomSnapInStyle style, int... values) Create a newZoomSnapIn
with the given style and the given zoom values. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
onEnsureDebugId
(String baseID) void
Determines the zoom factor and updates the ui with it - uses the current pages zoom factor if existing - uses the document wide zoom factor if the page does not have its ownMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
-
Field Details
-
STANDARD_VALUES
public static final int[] STANDARD_VALUES
-
-
Constructor Details
-
ZoomSnapIn
public ZoomSnapIn()Create a newZoomSnapIn
withUIStyler#get()#zoomSnapInStyle()
as the style. -
ZoomSnapIn
Create a newZoomSnapIn
with the given style and the given zoom values. If no values are given the default values are used.- Parameters:
style
- theZoomSnapIn.ZoomSnapInStyle
values
- the zoom values which should be used
-
ZoomSnapIn
Create a newZoomSnapIn
with the given style and the given zoom values. If no values are given the default values are used. Additionally it can be configured whether the fit commands should be included.- Parameters:
style
- theZoomSnapIn.ZoomSnapInStyle
addFitCommands
- whether the fit command should be contained or not. By default they are containedvalues
- the zoom values which should be used
-
ZoomSnapIn
public ZoomSnapIn(ZoomSnapIn.ZoomSnapInStyle style, boolean addFitCommands, boolean compact, int... values) Create a newZoomSnapIn
with the given style and the given zoom values. If no values are given the default values are used. Additionally it can be configured whether the fit commands should be included.- Parameters:
style
- theZoomSnapIn.ZoomSnapInStyle
addFitCommands
- whether the fit command should be contained or not. By default they are containedcompact
- whether to use a compact displayvalues
- the zoom values which should be used
-
-
Method Details
-
onEnsureDebugId
- Overrides:
onEnsureDebugId
in classcom.google.gwt.user.client.ui.UIObject
-
updateInfo
public void updateInfo()Determines the zoom factor and updates the ui with it - uses the current pages zoom factor if existing - uses the document wide zoom factor if the page does not have its own
-