public class CSVirtualViewerApplet extends NgApplet implements ViewerComponent
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_FILE
Configuration file for this viewer component implementation.
|
static String |
CS_VIRTUAL_VIEWER_APPLET_PROPERTIES_PATH
Relative path to properties file.
|
static String |
ON_ANNOTATE
Event document annotation set.
|
static String |
ON_APPLET_LOADED
Event applet is loaded.
|
static String |
ON_DOCUMENT_ROTATE
Event document rotate.
|
static String |
ON_SAVE_COMPLETE
Event document save complete.
|
static String |
ON_VIEWER_READY
Event viewer ready.
|
static String |
VIRTUAL_VIEWER_PROPERTIES_FILE
Name of the properties file.
|
| Constructor and Description |
|---|
CSVirtualViewerApplet()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable()
Disables the viewer.
|
void |
displayDocument(String aDocumentUrl,
String aAnnotationsUrl,
DocumentArchiveMetaInfo.ElementArchiveMetaInfo elementInfo,
DocumentId documentId)
Displays a document.
|
void |
displayTemporaryDocument(String documentUrl,
TemporaryDocumentId id)
Displays a temporary (not yet archived) document.
|
void |
enable()
Enables the viewer.
|
String |
getConfigurationFile()
Returns the name of the configuration file needed for this implementation of ViewerComponent.
|
boolean |
hasOpenChanges()
Returns, if the viewer has open changes.
|
void |
init(String viewerId)
Called from parent component to initialize the viewer-component.
|
void |
invoke(String function)
Invokes the function of the applet running at the client.
|
void |
invoke(String function,
String argument)
Invokes the function of the applet running at the client with one argument.
|
void |
invoke(String function,
String[] arguments)
Invokes the function of the applet running at the client with variable number argument.
|
void |
onAnnotate(org.zkoss.zk.ui.event.Event event)
Event handler.
|
void |
onAppletLoaded(org.zkoss.zk.ui.event.Event event)
Event handler.
|
void |
onDocumentRotate(org.zkoss.zk.ui.event.Event event)
Event handler.
|
void |
onPageAttached(org.zkoss.zk.ui.Page newpage,
org.zkoss.zk.ui.Page oldpage) |
void |
onPageDetached(org.zkoss.zk.ui.Page page) |
void |
onSaveComplete(org.zkoss.zk.ui.event.Event event)
Event handler.
|
void |
onViewerReady(org.zkoss.zk.ui.event.Event event)
Event handler.
|
void |
refreshDocument()
Refreshes the viewer using the last opened document.
|
void |
resetView()
Resets the view so that the viewer applet will not re-open the last opened document.
|
void |
resetView(boolean showInitImage)
Resets the view so that the viewer applet will not re-open the last opened document.
|
void |
setParentViewComponent(DocumentView documentView)
Used to pass a reference to the parent component to this ViewerComponent.
|
void |
tabSelected()
Method used to notify the ViewerComponent that the tab it is contained in was selected.
|
getArchive, getCode, getCodebase, getParameters, isIgnoreInvokeErrors, notifyWhenReady, renderProperties, setArchive, setCode, setCodebase, setIgnoreInvokeErrors, setJsonParameters, setParam, setParameters, setParametersclone, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, containsVariable, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getUuid, getVariable, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, newChildren, newExtraCtrl, onChildAdded, onChildRemoved, onWrongValue, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, renderIdSpace, response, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setVariable, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, unsetVariable, updateByClient, willPassivate, willPassivate, willSerialize, willSerializefinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getDefinition, getDesktop, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getUuid, getVariable, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setVariable, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, unsetVariablepublic static final String CONFIG_FILE
public static final String ON_VIEWER_READY
public static final String ON_DOCUMENT_ROTATE
public static final String ON_ANNOTATE
public static final String ON_SAVE_COMPLETE
public static final String ON_APPLET_LOADED
public static final String CS_VIRTUAL_VIEWER_APPLET_PROPERTIES_PATH
public static final String VIRTUAL_VIEWER_PROPERTIES_FILE
public void displayDocument(String aDocumentUrl, String aAnnotationsUrl, DocumentArchiveMetaInfo.ElementArchiveMetaInfo elementInfo, DocumentId documentId)
displayDocument in interface ViewerComponentaDocumentUrl - the document urlaAnnotationsUrl - the annotation urlelementInfo - meta information about the page to be displayeddocumentId - Id of the documentpublic void displayTemporaryDocument(String documentUrl, TemporaryDocumentId id)
ViewerComponentdisplayTemporaryDocument in interface ViewerComponentdocumentUrl - The URL to the download servlet.id - The id of the temporary document.public void refreshDocument()
refreshDocument in interface ViewerComponentViewerComponent.refreshDocument()public void resetView()
resetView in interface ViewerComponentViewerComponent.resetView()public void disable()
disable in interface ViewerComponentViewerComponent.disable()public void enable()
enable in interface ViewerComponentViewerComponent.enable()public void onViewerReady(org.zkoss.zk.ui.event.Event event)
event - Eventpublic void onAppletLoaded(org.zkoss.zk.ui.event.Event event)
event - Event Applet is loaded.public void onAnnotate(org.zkoss.zk.ui.event.Event event)
event - Eventpublic void onSaveComplete(org.zkoss.zk.ui.event.Event event)
event - Eventpublic void onDocumentRotate(org.zkoss.zk.ui.event.Event event)
event - Eventpublic boolean hasOpenChanges()
hasOpenChanges in interface ViewerComponentViewerComponent.hasOpenChanges()public void init(String viewerId)
init in interface ViewerComponentviewerId - the id of the viewer, passed only as additional informationViewerComponent.init(java.lang.String)public void resetView(boolean showInitImage)
resetView in interface ViewerComponentshowInitImage - if true, the viewer will show an initial imageViewerComponent.resetView(boolean)public void onPageAttached(org.zkoss.zk.ui.Page newpage,
org.zkoss.zk.ui.Page oldpage)
onPageAttached in interface org.zkoss.zk.ui.sys.ComponentCtrlonPageAttached in class org.zkoss.zk.ui.AbstractComponentAbstractComponent.onPageAttached(org.zkoss.zk.ui.Page,
org.zkoss.zk.ui.Page)public void onPageDetached(org.zkoss.zk.ui.Page page)
onPageDetached in interface org.zkoss.zk.ui.sys.ComponentCtrlonPageDetached in class org.zkoss.zk.ui.AbstractComponentAbstractComponent.onPageDetached(org.zkoss.zk.ui.Page)public void setParentViewComponent(DocumentView documentView)
setParentViewComponent in interface ViewerComponentdocumentView - the new parent view componentViewerComponent.setParentViewComponent(com.saperion.ngc.viewer.DocumentView)public void tabSelected()
tabSelected in interface ViewerComponentViewerComponent.tabSelected()public void invoke(String function)
invoke in class NgAppletfunction - name of the functionNgApplet.invoke(java.lang.String)public void invoke(String function, String argument)
invoke in class NgAppletfunction - name of the functionargument - the argumentNgApplet.invoke(java.lang.String, java.lang.String)public void invoke(String function, String[] arguments)
invoke in class NgAppletfunction - name of the functionarguments - the argumentsNgApplet.invoke(java.lang.String, java.lang.String[])public String getConfigurationFile()
getConfigurationFile in interface ViewerComponentViewerComponent.getConfigurationFile()Copyright © 2016 SAPERION AG. All rights reserved.