Package org.opencms.widgets
Class CmsAccessRestrictionWidget
java.lang.Object
org.opencms.widgets.A_CmsWidget
org.opencms.widgets.CmsCheckboxWidget
org.opencms.widgets.CmsAccessRestrictionWidget
- All Implemented Interfaces:
I_CmsADEWidget,I_CmsWidget
Widget for restriction fields.
For now, this does nothing different from a checkbox.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.widgets.A_CmsWidget
A_CmsWidget.CmsDummyWidgetDialog -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConfiguration key for the JSON configuration.Fields inherited from class org.opencms.widgets.CmsCheckboxWidget
HIDDEN_SUFFIXFields inherited from class org.opencms.widgets.A_CmsWidget
HELP_POSTFIX, LABEL_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.CmsAccessRestrictionWidget(String configuration) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Returns the configuration string for the ADE content editor widget.Creates a duplicate of this widget instance.Methods inherited from class org.opencms.widgets.CmsCheckboxWidget
getCssResourceLinks, getDefaultDisplayType, getDialogWidget, getInitCall, getJavaScriptResourceLinks, getWidgetName, isInternal, setEditorValueMethods inherited from class org.opencms.widgets.A_CmsWidget
equals, getConfiguration, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, isCompactViewEnabled, setConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.widgets.I_CmsWidget
getConfiguration, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, getWidgetStringValue, isCompactViewEnabled, setConfiguration
-
Field Details
-
ATTR_GROUP
Configuration key for the JSON configuration.- See Also:
-
-
Constructor Details
-
CmsAccessRestrictionWidget
public CmsAccessRestrictionWidget()Creates a new instance. -
CmsAccessRestrictionWidget
Creates a new instance.- Parameters:
configuration- the configuration
-
-
Method Details
-
getConfiguration
public String getConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, Locale contentLocale) Description copied from interface:I_CmsADEWidgetReturns the configuration string for the ADE content editor widget.- Specified by:
getConfigurationin interfaceI_CmsADEWidget- Overrides:
getConfigurationin classCmsCheckboxWidget- Parameters:
cms- the OpenCms contextschemaType- the schema typemessages- the messagesresource- the edited resourcecontentLocale- the content locale- Returns:
- the configuration string
- See Also:
-
newInstance
Description copied from interface:I_CmsWidgetCreates a duplicate of this widget instance.- Specified by:
newInstancein interfaceI_CmsWidget- Overrides:
newInstancein classCmsCheckboxWidget- Returns:
- a duplicate of this widget instance
- See Also:
-