Package com.saperion.ngc.sapviewer
Class SAPViewer
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Window
-
- com.saperion.ngc.sapviewer.SAPViewer
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,org.zkoss.zk.ui.Component
,org.zkoss.zk.ui.ext.Scope
,org.zkoss.zk.ui.IdSpace
,org.zkoss.zk.ui.sys.ComponentCtrl
,org.zkoss.zul.ext.Framable
public class SAPViewer extends org.zkoss.zul.Window
- Author:
- rbo
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LINKTAG
static java.lang.String
SAP_VIEWER_ATTRIBUTE
Session attribute used to find out if SAPViewer is active.
-
Constructor Summary
Constructors Constructor Description SAPViewer()
Instantiates a new SAPViewer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDate()
java.lang.String
getMailingURL()
Creates a mailing URL.java.lang.String
getUrlMailingURL()
Creates a url mailing URL.java.lang.String
getUrlMailingURL(java.lang.String prefix, java.lang.String timeout)
Creates a url mailing URL.java.lang.String
getUrlMailingURL(java.lang.String mailText, java.lang.String prefix, java.lang.String timeout)
Creates a url mailing URL.void
onBookmarkChange(org.zkoss.zk.ui.event.Event event)
Bookmark change event handler.void
onCreate(org.zkoss.zk.ui.event.Event event)
On create event handler.void
onLogon(org.zkoss.zk.ui.event.Event event)
Logon event catched if a new login of the technical User is needed.boolean
reLogin()
Performs a re-login.void
showInfoDialog()
Open info dialog.-
Methods inherited from class org.zkoss.zul.Window
beforeChildAdded, clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMinheight, getMinwidth, getMode, getModeType, getPosition, getTitle, getZclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isCollapsible, isMaximizable, isMaximized, isMinimizable, isMinimized, isShadow, isSizable, onChildRemoved, onClose, onModal, onPageDetached, renderProperties, service, setBorder, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMaximizable, setMaximized, setMinheight, setMinimizable, setMinimized, setMinwidth, setMode, setMode, setMode, setPosition, setShadow, setSizable, setTitle, setTopmost, setVisible
-
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SAP_VIEWER_ATTRIBUTE
public static final java.lang.String SAP_VIEWER_ATTRIBUTE
Session attribute used to find out if SAPViewer is active.- See Also:
- Constant Field Values
-
LINKTAG
public static final java.lang.String LINKTAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
reLogin
public boolean reLogin()
Performs a re-login. Can be used to re-open the connection to the backend when the user was logged-off by timeout.- Returns:
- true, if login was successful
-
onLogon
public final void onLogon(org.zkoss.zk.ui.event.Event event)
Logon event catched if a new login of the technical User is needed. Reasons for that are for example if a session times out and a sub document shall be loaded after this timeout.- Parameters:
event
- Logon Event.
-
onCreate
public void onCreate(org.zkoss.zk.ui.event.Event event)
On create event handler.- Parameters:
event
- Event
-
onBookmarkChange
public void onBookmarkChange(org.zkoss.zk.ui.event.Event event)
Bookmark change event handler.- Parameters:
event
- Bookmark change event
-
getMailingURL
public java.lang.String getMailingURL()
Creates a mailing URL.- Returns:
- Mailing URL
-
getUrlMailingURL
public java.lang.String getUrlMailingURL()
Creates a url mailing URL.- Returns:
- Mailing URL
-
getUrlMailingURL
public java.lang.String getUrlMailingURL(java.lang.String prefix, java.lang.String timeout)
Creates a url mailing URL.- Parameters:
prefix
- URL prefixtimeout
- Timeout in days- Returns:
- Mailing URL
-
getUrlMailingURL
public java.lang.String getUrlMailingURL(java.lang.String mailText, java.lang.String prefix, java.lang.String timeout)
Creates a url mailing URL.- Parameters:
mailText
- Mail text (default: Mail URL to send: )prefix
- URL prefixtimeout
- Timeout in days- Returns:
- Mailing URL
-
getDate
public java.lang.String getDate()
- Returns:
- Actual date
-
showInfoDialog
public void showInfoDialog()
Open info dialog.
-
-