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
public class CmsAccessRestrictionWidget extends CmsCheckboxWidget
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
Fields Modifier and Type Field Description static java.lang.String
ATTR_GROUP
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
Constructors Constructor Description CmsAccessRestrictionWidget()
Creates a new instance.CmsAccessRestrictionWidget(java.lang.String configuration)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
Returns the configuration string for the ADE content editor widget.I_CmsWidget
newInstance()
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 Detail
-
ATTR_GROUP
public static final java.lang.String ATTR_GROUP
Configuration key for the JSON configuration.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsAccessRestrictionWidget
public CmsAccessRestrictionWidget()
Creates a new instance.
-
CmsAccessRestrictionWidget
public CmsAccessRestrictionWidget(java.lang.String configuration)
Creates a new instance.- Parameters:
configuration
- the configuration
-
-
Method Detail
-
getConfiguration
public java.lang.String getConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.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:
CmsCheckboxWidget.getConfiguration(org.opencms.file.CmsObject, org.opencms.xml.types.A_CmsXmlContentValue, org.opencms.i18n.CmsMessages, org.opencms.file.CmsResource, java.util.Locale)
-
newInstance
public I_CmsWidget 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:
CmsCheckboxWidget.newInstance()
-
-