public interface ViewDefinitionState extends ComponentState
It contains all ComponentStates of this view and other data necessary display this
view to client. Changing its data will also change state displayed to system user.
ComponentStateComponentState.MessageType| Modifier and Type | Method and Description |
|---|---|
ComponentState |
getComponentByReference(String reference)
Returns component state with specified reference name or null if no such component found
|
JSONObject |
getJsonContext()
Get context from url
|
boolean |
isViewAfterRedirect()
Checks whether the view is generated after redirect event
|
boolean |
isViewAfterReload()
Checks whether the view is generated for the first time or after reload
|
void |
openModal(String url)
Informs client that should open new modal window.
|
void |
openModal(String url,
Map<String,Object> parameters)
Informs client that should open new modal window and pass custom component parameters.
|
void |
redirectTo(String redirectToUrl,
boolean openInNewWindow,
boolean shouldSerialize)
Informs client that should redirect to some url.
|
void |
redirectTo(String redirectToUrl,
boolean openInNewWindow,
boolean shouldSerialize,
Map<String,Object> parameters)
Informs client that should redirect to some url and pass custom component parameters.
|
void |
setJsonContext(JSONObject jSONObject)
Set context form url
|
<T extends ComponentState> |
tryFindComponentByReference(String reference)
Returns Optional containing component with specified reference name or empty Optional if no such component found or found
component has other type than demanded (see T type parameter).
|
getFieldValue, getLocale, getName, getUuid, isEnabled, isHasError, isVisible, performEvent, setEnabled, setFieldValue, setVisibleaddMessage, addMessage, addMessage, addMessage, addMessage, addTranslatedMessage, addTranslatedMessage, addTranslatedMessageComponentState getComponentByReference(String reference)
reference - reference name of componentJSONObject getJsonContext()
boolean isViewAfterRedirect()
boolean isViewAfterReload()
void openModal(String url)
url - target url of opened windowvoid openModal(String url, Map<String,Object> parameters)
url - target url of opened windowvoid redirectTo(String redirectToUrl, boolean openInNewWindow, boolean shouldSerialize)
redirectToUrl - target url of redirectionopenInNewWindow - true if client should open given url in new windowshouldSerialize - true if before this redirection client should save window statevoid redirectTo(String redirectToUrl, boolean openInNewWindow, boolean shouldSerialize, Map<String,Object> parameters)
redirectToUrl - target url of redirectionopenInNewWindow - true if client should open given url in new windowshouldSerialize - true if before this redirection client should save window stateparameters - map of parameters which be passed between viewsvoid setJsonContext(JSONObject jSONObject)
jSONObject - <T extends ComponentState> com.google.common.base.Optional<T> tryFindComponentByReference(String reference)
reference - reference name of componentCopyright © 2010-2025 Qcadoo Limited