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_HEIGHT
HELP_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.
|
getWidgetStringValue
addSelectOption, getConfiguration, getCssResourceLinks, getDefaultDisplayType, getHeight, getInitCall, getJavaScriptResourceLinks, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, isInternal, setSelectOptions
equals, getDialogHtmlEnd, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, hashCode, isCompactViewEnabled, setEditorValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getDialogHtmlEnd, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpText, isCompactViewEnabled, setEditorValue
public 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 null
groupName
- the group to restrict the user selection, can be null
public CmsUserWidget(java.lang.String configuration)
configuration
- the configuration to usepublic java.lang.String getConfiguration()
A_CmsWidget
getConfiguration
in interface I_CmsWidget
getConfiguration
in class A_CmsSelectWidget
A_CmsWidget.getConfiguration()
public java.lang.String getDialogIncludes(CmsObject cms, I_CmsWidgetDialog widgetDialog)
I_CmsWidget
getDialogIncludes
in interface I_CmsWidget
getDialogIncludes
in class A_CmsWidget
cms
- 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_CmsWidget
getDialogWidget
in interface I_CmsWidget
getDialogWidget
in class CmsSelectWidget
cms
- 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_CmsADEWidget
getWidgetName
in interface I_CmsADEWidget
getWidgetName
in class CmsSelectWidget
I_CmsADEWidget.getWidgetName()
public I_CmsWidget newInstance()
I_CmsWidget
newInstance
in interface I_CmsWidget
newInstance
in class CmsSelectWidget
I_CmsWidget.newInstance()
public void setConfiguration(java.lang.String configuration)
I_CmsWidget
This 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_CmsWidget
setConfiguration
in class A_CmsSelectWidget
configuration
- 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_CmsSelectWidget
cms
- 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)