Package org.opencms.widgets
Class CmsDataViewWidget
java.lang.Object
org.opencms.widgets.CmsDataViewWidget
- All Implemented Interfaces:
I_CmsComplexWidget
Complex widget for opening selecting data from a data source implementing the I_CmsDataView interface.
This widget can only be used
-
Constructor Summary
ConstructorDescriptionDefault constructor.CmsDataViewWidget
(String config) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this widget which has been configured with the given configuration string.getName()
Gets the name of the complex widget.getWidgetData
(CmsObject cms) Gets the data needed for the editor to render the complex widget.void
validateConfiguration
(String configuration) Validates the configuration.
-
Constructor Details
-
CmsDataViewWidget
public CmsDataViewWidget()Default constructor. -
CmsDataViewWidget
Creates a new instance.- Parameters:
config
- the widget configuration
-
-
Method Details
-
configure
Description copied from interface:I_CmsComplexWidget
Returns a copy of this widget which has been configured with the given configuration string.- Specified by:
configure
in interfaceI_CmsComplexWidget
- Parameters:
configuration
- the configuration string- Returns:
- the configured copy of the widget
- See Also:
-
getName
Description copied from interface:I_CmsComplexWidget
Gets the name of the complex widget.The string returned by this function should be a valid Javascript identifier.
- Specified by:
getName
in interfaceI_CmsComplexWidget
- Returns:
- the name of the complex widget
- See Also:
-
getWidgetData
Description copied from interface:I_CmsComplexWidget
Gets the data needed for the editor to render the complex widget.- Specified by:
getWidgetData
in interfaceI_CmsComplexWidget
- Parameters:
cms
- The CMS object to use for VFS operations- Returns:
- the data for the complex widget
- See Also:
-
validateConfiguration
Validates the configuration.- Parameters:
configuration
- the configuration
-