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>
ImmutablePdfviewercomponentA 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 Classes Modifier and Type Interface Description static classIPdfviewer.BuilderBuilds instances of typeIPdfviewer.static classIPdfviewer.UpdaterBuilds an updater of typeIPdfviewerforUiAgent.smartUpdate(Locator, SmartUpdater).static classIPdfviewer.ZoomModeSpecifies the zoom mode withwithZoomMode(ZoomMode)
-
Field Summary
Fields Modifier and Type Field Description static IPdfviewerDEFAULTConstant for default attributes of this immutable component.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetRotation()Returns the rotation angle.java.lang.StringgetSrc()Returns the source URI of the PDF file.default java.lang.StringgetWidgetClass()Returns the client widget class.default doublegetZoom()Returns the zoom level.default IPdfviewer.ZoomModegetZoomMode()Returns the zoom mode.static IPdfviewerof(java.lang.String src)Returns the instance with the given src.static IPdfviewerof(IToolbar child)Returns the instance with the given child.static IPdfviewerofId(java.lang.String id)Returns the instance with the given id.IPdfviewerwithRotation(int rotation)Returns a copy ofthisimmutable component with the specifiedrotation.IPdfviewerwithSrc(java.lang.String src)Returns a copy ofthisimmutable component with the specifiedsrc.IPdfviewerwithZoom(double zoom)Returns a copy ofthisimmutable component with the specifiedzoom.IPdfviewerwithZoomMode(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, withWidgetOverrides
-
Methods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Methods inherited from interface org.zkoss.stateless.sul.ISingleChildable
getChild, withChild
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Field Detail
-
DEFAULT
static final IPdfviewer DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zkex.pdfviewer.Pdfviewer"- Specified by:
getWidgetClassin interfaceIComponent<IPdfviewer>
-
getSrc
@Nullable java.lang.String getSrc()
Returns the source URI of the PDF file.Default:
null.
-
withSrc
IPdfviewer withSrc(@Nullable java.lang.String src)
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
IPdfviewer withZoom(double zoom)
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
default IPdfviewer.ZoomMode getZoomMode()
Returns the zoom mode.Default:
IPdfviewer.ZoomMode.NORMAL
-
withZoomMode
IPdfviewer withZoomMode(IPdfviewer.ZoomMode zoomMode)
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
IPdfviewer withRotation(int rotation)
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
static IPdfviewer of(java.lang.String src)
Returns the instance with the given src.- Parameters:
src- The source URI of the component
-
of
static IPdfviewer of(IToolbar child)
Returns the instance with the given child.
-
ofId
static IPdfviewer ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
-