Package org.zkoss.stateless.sul
Interface IPdfviewer
- All Superinterfaces:
IAnyGroup<IPdfviewer>,IComponent<IPdfviewer>,IHtmlBasedComponent<IPdfviewer>,ISingleChildable<IPdfviewer,,IToolbar> IXulElement<IPdfviewer>
public interface IPdfviewer
extends IXulElement<IPdfviewer>, IAnyGroup<IPdfviewer>, ISingleChildable<IPdfviewer,IToolbar>
Immutable
Pdfviewer component
A PDF file viewer.
Support @Action
| Name | Action Type |
|---|---|
| onPaging | ActionData: PagingData
Notifies one of the pages is selected by the user. |
| onRender | Denotes the loading pdf file is finished rendering. |
| onZoom | ActionData: ZoomData
Denotes user has changed the zoom level. |
| onRotate | ActionData: RotationData
Denotes user has changed the rotation angle. |
- Author:
- katherine
- See Also:
-
Pdfviewer
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIPdfviewer.static classBuilds an updater of typeIPdfviewerforUiAgent.smartUpdate(Locator, SmartUpdater).static enumSpecifies the zoom mode withwithZoomMode(ZoomMode) -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IPdfviewerConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the rotation angle.getSrc()Returns the source URI of the PDF file.default StringReturns the client widget class.default doublegetZoom()Returns the zoom level.default IPdfviewer.ZoomModeReturns the zoom mode.static IPdfviewerReturns the instance with the given src.static IPdfviewerReturns the instance with the given child.static IPdfviewerReturns the instance with the given id.withRotation(int rotation) Returns a copy ofthisimmutable component with the specifiedrotation.Returns a copy ofthisimmutable component with the specifiedsrc.withZoom(double zoom) Returns a copy ofthisimmutable component with the specifiedzoom.withZoomMode(IPdfviewer.ZoomMode zoomMode) Returns a copy ofthisimmutable component with the specifiedzoom.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.ISingleChildable
getChild, withChildMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zkex.pdfviewer.Pdfviewer"- Specified by:
getWidgetClassin interfaceIComponent<IPdfviewer>
-
getSrc
Returns the source URI of the PDF file.Default:
null. -
withSrc
Returns a copy ofthisimmutable component with the specifiedsrc.Sets the source URI of the PDF file.
- Parameters:
src- The source URI of the PDF file.Default:
null- Returns:
- A modified copy of the
thisobject
-
getZoom
default double getZoom()Returns the zoom level.Default: 1.0.
-
withZoom
Returns a copy ofthisimmutable component with the specifiedzoom.Sets the zoom level.
- Parameters:
zoom- The zoom level.Default:
1.0- Returns:
- A modified copy of the
thisobject
-
getZoomMode
Returns the zoom mode.Default:
IPdfviewer.ZoomMode.NORMAL -
withZoomMode
Returns a copy ofthisimmutable component with the specifiedzoom.Sets the zoom mode for
IPdfviewer.ZoomMode.FIT_PAGE_WIDTHorIPdfviewer.ZoomMode.FIT_PAGE_HEIGHT.- Parameters:
zoomMode- The zoom mode.Default:
IPdfviewer.ZoomMode.NORMAL- Returns:
- A modified copy of the
thisobject
-
getRotation
default int getRotation()Returns the rotation angle.Default: 0.
-
withRotation
Returns a copy ofthisimmutable component with the specifiedrotation.Sets the rotation angle.
- Parameters:
rotation- The rotation angleDefault:
0- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given src.- Parameters:
src- The source URI of the component
-
of
Returns the instance with the given child. -
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-