From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001
From: Sven Eisenhauer
+
+ This is the application side representation of the browser window.
+
+ The
+ Note: A deactivated but not closed dialog
+ is activated by user code only (i.e. a controlling dialog of the concerning dialog)
+ never by the framework.
+
+ The
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Overview
+ Package
+ Class
+ Use
+ Tree
+ Deprecated
+ Index
+ Help
+
+
+
+
+
+
+ PREV CLASS
+ NEXT CLASS
+
+ FRAMES
+ NO FRAMES
+
+
+
+
+
+
+
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD
+
+DETAIL: FIELD | CONSTR | METHOD
+
+
+
+
+com.sdm.quasar.client.jsf.dialog
+
+
+Class BrowserWindow
+java.lang.Object
+
+
com.sdm.quasar.client.jsf.dialog.BrowserWindow
+
+
+
+
+BrowserWindow is responsible for managing shown or hidden
+ VisualRepresentations.
+ The VisualRepresentation of a dialog is
+ shown when the dialog is activated and it is hidden, when
+ the dialog is deactevated. To be informed about your visibility state
+ register a listener at your VisualRepresentation.
+ BrowserWindow supports to show modal and non modal dialogs
+ and hide dialogs with four different strategies concerning backnavigation
+ to the corresponding page:
+
+
+ Default is hide and reopen. Be carefull using modal dialogs and other than the default hide
+ strategy: The browser navigation will not always match the users expection. If you use
+ modal dialogs, make them singletons to get less problems with multi windows!
+
+ Note: Up to now there will be only one instance of this at all, because we can't
+ control new browser windows sufficiently. This has shortcomming for correct
+ information about visibility of VisualRepresentation and
+ modal dialogs that are no singletons when more than one browser windows are opend.
+
+ +
+
| +Constructor Summary | +|
BrowserWindow(java.lang.String browserWindowId)
+
++ A BrowserWindow with no history is constructed |
+|
| +Method Summary | +|
+ java.lang.String |
+buildActionURL(java.lang.String requestContextPath)
+
++ |
+
+ java.lang.String |
+buildIdFromPostParameters()
+
++ |
+
+protected boolean |
+checkSequenceNumber(DialogInstanceId dialogInstanceId,
+ java.lang.Integer sequenceNumber)
+
++ Check correct sequece number to detect double submit |
+
+ boolean |
+determineVisualRepresentation(HttpServletRequest request,
+ BrowserWindowCallBack callBack)
+
++ Analyses the request parameters and determines the page to be shown. + |
+
+protected VisualRepresentation |
+findPredecessor(VisualRepresentation from)
+
++ |
+
+ java.lang.String |
+getBrowserWindowId()
+
++ |
+
+protected VisualRepresentation |
+getPredecessor(VisualRepresentation visRep)
+
++ |
+
+ java.util.Set |
+getRegisteredVisualRepresentations()
+
++ |
+
+ VisualRepresentation |
+getVisualRepresentation()
+
++ |
+
+protected VisualRepresentationInfo |
+getVisualRepresentationInfo(VisualRepresentation visRep)
+
++ |
+
+protected boolean |
+handleDoubleSubmit(HttpServletRequest request,
+ BrowserWindowCallBack callBack,
+ VisualRepresentation visRep)
+
++ Checks if this is a request to a previous state of the dialog. + |
+
+ boolean |
+hasCurrentPage()
+
++ |
+
+ void |
+hideVisualRepresentation(VisualRepresentation visRep,
+ boolean recreate,
+ java.lang.String redirectUrl,
+ java.lang.String replacingDialogId,
+ java.lang.Object context)
+
++ Marks the VisualRepresentation to be not shown any more. |
+
+protected void |
+setPredecessor(VisualRepresentation visRep,
+ VisualRepresentation predecessor)
+
++ |
+
+ void |
+setVisualRepresentation(VisualRepresentation newVisRep)
+
++ Sets a new VisualRepresentation to be shown in the current request. |
+
+ void |
+showRepresentation(VisualRepresentation visRep)
+
++ A VisualRepresentation - corresponding to a dialog -
+ will be shown in the browser. |
+
+ void |
+showVisualRepresentation(VisualRepresentation visRep,
+ boolean modal)
+
++ A VisualRepresentation - corresponding to a dialog -
+ will be shown in the browser. |
+
+ java.lang.String |
+toString()
+
++ |
+
+ void |
+writePostParameters(UIComponent component,
+ ResponseWriter writer)
+
++ |
+
| Methods inherited from class java.lang.Object | +
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
+public BrowserWindow(java.lang.String browserWindowId)+
BrowserWindow with no history is constructed
++
browserWindowId - the id of this BrowserWindow| +Method Detail | +
+public java.lang.String getBrowserWindowId()+
+public void showVisualRepresentation(VisualRepresentation visRep, + boolean modal)+
VisualRepresentation - corresponding to a dialog -
+ will be shown in the browser. You can set it modal: the page
+ could not be exited by browser navigation until it is hidden again.
+ Be careful with modal dialogs!
++
visRep - The VisualRepresentation to be shown in the browsermodal - true if ths VisualRepresentation will be shown modal+public void showRepresentation(VisualRepresentation visRep)+
VisualRepresentation - corresponding to a dialog -
+ will be shown in the browser.
++
visRep - The VisualRepresentation to be shown in the browser+public boolean hasCurrentPage()+
+public VisualRepresentation getVisualRepresentation()+
VisualRepresentation to be shown in the actual request.+public boolean determineVisualRepresentation(HttpServletRequest request, + BrowserWindowCallBack callBack)+
+
request - The current request containing the id to identify the requested pagecallBack - CallBack with exits when no page could be reconstructed or
+ other than the requested page will be shown.
++protected boolean handleDoubleSubmit(HttpServletRequest request, + BrowserWindowCallBack callBack, + VisualRepresentation visRep)+
ReactivationCallback is invoked.
++
request - the actual requestcallBack - a callback to handel other than the normal actionvisRep - the VisualRepresentation connected to the request
++protected boolean checkSequenceNumber(DialogInstanceId dialogInstanceId, + java.lang.Integer sequenceNumber)+
+
+public void setVisualRepresentation(VisualRepresentation newVisRep)+
VisualRepresentation to be shown in the current request.
++
newVisRep - the VisualRepresentation to be shown in the request.+public void hideVisualRepresentation(VisualRepresentation visRep, + boolean recreate, + java.lang.String redirectUrl, + java.lang.String replacingDialogId, + java.lang.Object context)+
VisualRepresentation to be not shown any more. If there
+ is a request to this hidden VisualRepresentation you can define
+ which of the following strategies shold be perfomed:
+ VisualRepresentation privious shown is now the current VisualRepresentation
+ for the request.
++
visRep - the VisualRepresentation to be hiddenrecreate - if true: Hide and recreate; false: redirect when redirect url or dialog is set
+ else hied and do not show againredirectUrl - if != null (and recreate == false): perform redrect to this urlreplacingDialogId - if != null (and recreate == false): perform redrect to this dialog+protected VisualRepresentationInfo getVisualRepresentationInfo(VisualRepresentation visRep)+
visRep - a VisualRepresentation
+VisualRepresentation+public java.lang.String buildActionURL(java.lang.String requestContextPath)+
ResponseParameterService.buildActionURL(java.lang.String)+public java.lang.String buildIdFromPostParameters()+
ResponseParameterService.buildIdFromPostParameters()+public void writePostParameters(UIComponent component, + ResponseWriter writer) + throws java.io.IOException+
java.io.IOExceptioncom.sdm.quasar.client.jsf.dialog.services.ResponseParameterService#writePostParameters(javax.faces.component.UIComponent, javax.faces.context.ResponseWriter)+public java.lang.String toString()+
+public java.util.Set getRegisteredVisualRepresentations()+
List of WebPages+protected VisualRepresentation findPredecessor(VisualRepresentation from)+
+protected void setPredecessor(VisualRepresentation visRep, + VisualRepresentation predecessor)+
+protected VisualRepresentation getPredecessor(VisualRepresentation visRep)+
+
+
|
++ + | +||||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + | +||||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +||||||||||