|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.jsf.dialog.VisualRepresentationId
The VisualRepresentationId defines the parameters which identify a
VisualRepresentation. The parameters are added to a response as
hidden fiels (addIdToPage(PostParameters) or as url parameters
(addIdToRequestParameters(GetParameters)).
They could also be addad as token to the view id (getIdAsToken()).
Thus, in any case the corresponding VisualRepresentation will be
identified at the next request from this page
(identifyVisualRepresentation(HttpServletRequest, BrowserWindow)).
The Id of a VisualRepresentation is build out of the dialog id and
the dialog instance id of the dialog of the VisualRepresentation.
| Field Summary | |
static java.lang.String |
DIALOGID_REQUEST_PARAMETER_NAME
the tag identifying the dialog-id information |
static java.lang.String |
DIALOGINSTANCEID_REQUEST_PARAMETER_NAME
the tag identifying the dialog-instance-id information |
| Constructor Summary | |
protected |
VisualRepresentationId(VisualRepresentation visualRepresentation)
|
| Method Summary | |
void |
addIdToPage(PostParameters postParameters)
Add the id parameters to the PostParameters. |
void |
addIdToRequestParameters(GetParameters parameters)
Add the id parameters to the GetParameters. |
protected static boolean |
check(com.sdm.quasar.client.jsf.dialog.InternalId internalId,
VisualRepresentation visualRepresentation)
|
protected static java.lang.String |
getDialogIdFromToken(java.lang.String token)
|
protected static java.lang.String |
getDialogInstanceIdFromToken(java.lang.String token)
|
java.lang.String |
getIdAsToken()
Returns a unique token for this dialog-instance id. |
static VisualRepresentation |
identifyVisualRepresentation(HttpServletRequest request,
BrowserWindow browserWindow)
A VisualRepresentation registered at a BrowserWindow is ideentified
from the parameters of the request. |
protected static com.sdm.quasar.client.jsf.dialog.InternalId |
readInternalId(HttpServletRequest request)
Reads the id parameters from the request and returns then. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String DIALOGID_REQUEST_PARAMETER_NAME
public static java.lang.String DIALOGINSTANCEID_REQUEST_PARAMETER_NAME
| Constructor Detail |
protected VisualRepresentationId(VisualRepresentation visualRepresentation)
| Method Detail |
public void addIdToRequestParameters(GetParameters parameters)
GetParameters.
parameters - the get parameters the id is added to
public void addIdToPage(PostParameters postParameters)
throws java.io.IOException
PostParameters.
java.io.IOExceptionpublic java.lang.String getIdAsToken()
public static VisualRepresentation identifyVisualRepresentation(HttpServletRequest request,
BrowserWindow browserWindow)
VisualRepresentation registered at a BrowserWindow is ideentified
from the parameters of the request. If no VisualRepresentation of the given
BrowserWindow matches the id parameters of the request, null is returned
request - the current requestbrowserWindow - the current BrowserWindow
VisualRepresentation or null if no VisualRepresentation
is found.protected static com.sdm.quasar.client.jsf.dialog.InternalId readInternalId(HttpServletRequest request)
request - the current request
protected static boolean check(com.sdm.quasar.client.jsf.dialog.InternalId internalId,
VisualRepresentation visualRepresentation)
protected static java.lang.String getDialogIdFromToken(java.lang.String token)
protected static java.lang.String getDialogInstanceIdFromToken(java.lang.String token)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||