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
Modifier and TypeFieldDescriptionstatic final String
Configuration key for the JSON configuration.Fields inherited from class org.opencms.widgets.CmsCheckboxWidget
HIDDEN_SUFFIX
Fields inherited from class org.opencms.widgets.A_CmsWidget
HELP_POSTFIX, LABEL_PREFIX
-
Constructor Summary
ConstructorDescriptionCreates 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, setEditorValue
Methods inherited from class org.opencms.widgets.A_CmsWidget
equals, getConfiguration, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, isCompactViewEnabled, setConfiguration
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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_CmsADEWidget
Returns the configuration string for the ADE content editor widget.- Specified by:
getConfiguration
in interfaceI_CmsADEWidget
- Overrides:
getConfiguration
in 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_CmsWidget
Creates a duplicate of this widget instance.- Specified by:
newInstance
in interfaceI_CmsWidget
- Overrides:
newInstance
in classCmsCheckboxWidget
- Returns:
- a duplicate of this widget instance
- See Also:
-