public class CmsUserWidget extends CmsSelectWidget
A_CmsWidget.CmsDummyWidgetDialog| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIGURATION_FLAGS
Configuration parameter to set the flags of the users to display, optional.
|
static java.lang.String |
CONFIGURATION_GROUP
Configuration parameter to set the group of users to display, optional.
|
CONFIGURATION_HEIGHTHELP_POSTFIX, LABEL_PREFIX| Constructor and Description |
|---|
CmsUserWidget()
Creates a new user selection widget.
|
CmsUserWidget(java.lang.Integer flags,
java.lang.String groupName)
Creates a new user selection widget with the parameters to configure the popup window behaviour.
|
CmsUserWidget(java.lang.String configuration)
Creates a new user selection widget with the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfiguration()
Returns the configuration string.
|
java.lang.String |
getDialogIncludes(CmsObject cms,
I_CmsWidgetDialog widgetDialog)
Generates the necessary JavaScript inclusion code for this widget.
|
java.lang.String |
getDialogWidget(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Generates the widget HTML for the provided widget parameter.
|
java.lang.Integer |
getFlags()
Returns the flags, or
null if all. |
java.lang.String |
getGroupName()
Returns the group name, or
null if all. |
java.lang.String |
getWidgetName()
Returns the class name of the widget.
|
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance.
|
protected java.util.List<CmsSelectWidgetOption> |
parseSelectOptions(CmsObject cms,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Returns the list of configured select options, parsing the configuration String if required.
|
void |
setConfiguration(java.lang.String configuration)
Sets the configuration of this widget.
|
getWidgetStringValueaddSelectOption, getConfiguration, getCssResourceLinks, getDefaultDisplayType, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, setSelectOptionsequals, getDialogHtmlEnd, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, isCompactViewEnabled, setEditorValueclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetDialogHtmlEnd, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, isCompactViewEnabled, setEditorValuepublic static final java.lang.String CONFIGURATION_FLAGS
public static final java.lang.String CONFIGURATION_GROUP
public CmsUserWidget()
public CmsUserWidget(java.lang.Integer flags, java.lang.String groupName)
flags - the group flags to restrict the group selection, can be nullgroupName - the group to restrict the user selection, can be nullpublic CmsUserWidget(java.lang.String configuration)
configuration - the configuration to usepublic java.lang.String getConfiguration()
A_CmsWidgetgetConfiguration in interface I_CmsWidgetgetConfiguration in class A_CmsSelectWidgetA_CmsWidget.getConfiguration()public java.lang.String getDialogIncludes(CmsObject cms, I_CmsWidgetDialog widgetDialog)
I_CmsWidgetgetDialogIncludes in interface I_CmsWidgetgetDialogIncludes in class A_CmsWidgetcms - the current users OpenCms contextwidgetDialog - the dialog where the widget is used onI_CmsWidget.getDialogIncludes(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog)public java.lang.String getDialogWidget(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
I_CmsWidgetgetDialogWidget in interface I_CmsWidgetgetDialogWidget in class CmsSelectWidgetcms - an initialized instance of a CmsObjectwidgetDialog - the dialog where the widget is used onparam - the widget parameter to generate the widget forI_CmsWidget.getDialogWidget(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)public java.lang.Integer getFlags()
null if all.null if allpublic java.lang.String getGroupName()
null if all.null if allpublic java.lang.String getWidgetName()
I_CmsADEWidgetgetWidgetName in interface I_CmsADEWidgetgetWidgetName in class CmsSelectWidgetI_CmsADEWidget.getWidgetName()public I_CmsWidget newInstance()
I_CmsWidgetnewInstance in interface I_CmsWidgetnewInstance in class CmsSelectWidgetI_CmsWidget.newInstance()public void setConfiguration(java.lang.String configuration)
I_CmsWidgetThis can be used to enable / disable certain widget features that should not always be available, or to pass specific initialization information to the widget. It depends on the widget implementation on how this information is used.
setConfiguration in interface I_CmsWidgetsetConfiguration in class A_CmsSelectWidgetconfiguration - the configuration to setA_CmsWidget.setConfiguration(java.lang.String)protected java.util.List<CmsSelectWidgetOption> parseSelectOptions(CmsObject cms, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
A_CmsSelectWidget
The list elements are of type .
The configuration String is parsed only once and then stored internally.CmsSelectWidgetOption
parseSelectOptions in class A_CmsSelectWidgetcms - the current users OpenCms contextwidgetDialog - the dialog of this widgetparam - the widget parameter of this dialogA_CmsSelectWidget.parseSelectOptions(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)