Package org.opencms.ui.dialogs.embedded
Class CmsDataViewParams
java.lang.Object
org.opencms.ui.dialogs.embedded.CmsDataViewParams
Class representing the configuration passed to the Vaadin data view dialog by the client.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsDataViewParams(I_CmsDialogContext context) Creates a new instance by parsing the query string of the given URI. -
Method Summary
Modifier and TypeMethodDescriptioncreateViewInstance(CmsObject cms, Locale locale) Creates the data view instance.booleanReturn true if the list should have multi-selection enabled.prepareCallbackScript(List<I_CmsDataViewItem> result) Creates the script which calls the callback with the result.
-
Constructor Details
-
CmsDataViewParams
Creates a new instance by parsing the query string of the given URI.- Parameters:
context- the dialog context
-
-
Method Details
-
createViewInstance
Creates the data view instance.- Parameters:
cms- the CMS contextlocale- the locale- Returns:
- the new data view instance
-
isMultiSelect
Return true if the list should have multi-selection enabled.- Returns:
- true if multi-selection should be enabled
-
prepareCallbackScript
Creates the script which calls the callback with the result.- Parameters:
result- the list of result data items- Returns:
- the script to call the callback
-