public class CmsTypeComboWidget extends CmsComboWidget
A_CmsWidget.CmsDummyWidgetDialog
CONFIGURATION_HEIGHT
HELP_POSTFIX, LABEL_PREFIX
构造器和说明 |
---|
CmsTypeComboWidget()
Default constructor.
|
CmsTypeComboWidget(java.lang.String config)
Constructor with a configuration parameter.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
java.util.List<java.lang.String> |
getCssResourceLinks(CmsObject cms)
Returns a list of CSS resources required by the widget.
|
java.lang.String |
getInitCall()
Returns the java script initialization call.
|
java.util.List<java.lang.String> |
getJavaScriptResourceLinks(CmsObject cms)
Returns a list of java script resources required by the widget.
|
boolean |
isInternal()
Returns if this is an internal widget.
|
I_CmsWidget |
newInstance()
Creates a duplicate of this widget instance.
|
void |
setConfiguration(java.lang.String config)
Sets the configuration of this widget.
|
getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogWidget, getWidgetName
addSelectOption, getConfiguration, getDefaultDisplayType, getHeight, getResourcePath, getSelectedValue, getSelectedValues, getSelectOptions, parseSelectOptions, setSelectOptions
equals, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, isCompactViewEnabled, setEditorValue
getDialogInitMethod, getHelpBubble, getHelpText, getWidgetStringValue, isCompactViewEnabled, setEditorValue
public CmsTypeComboWidget()
public CmsTypeComboWidget(java.lang.String config)
config
- the configuration stringpublic java.lang.String getConfiguration(CmsObject cms, A_CmsXmlContentValue schemaType, CmsMessages messages, CmsResource resource, java.util.Locale contentLocale)
I_CmsADEWidget
getConfiguration
在接口中 I_CmsADEWidget
getConfiguration
在类中 A_CmsSelectWidget
cms
- the OpenCms contextschemaType
- the schema typemessages
- the messagesresource
- the edited resourcecontentLocale
- the content localeI_CmsADEWidget.getConfiguration(org.opencms.file.CmsObject, org.opencms.xml.types.A_CmsXmlContentValue, org.opencms.i18n.CmsMessages, org.opencms.file.CmsResource, java.util.Locale)
public java.util.List<java.lang.String> getCssResourceLinks(CmsObject cms)
A_CmsSelectWidget
getCssResourceLinks
在接口中 I_CmsADEWidget
getCssResourceLinks
在类中 A_CmsSelectWidget
cms
- the current OpenCms contextI_CmsADEWidget.getCssResourceLinks(org.opencms.file.CmsObject)
public java.lang.String getInitCall()
A_CmsSelectWidget
getInitCall
在接口中 I_CmsADEWidget
getInitCall
在类中 A_CmsSelectWidget
I_CmsADEWidget.getInitCall()
public java.util.List<java.lang.String> getJavaScriptResourceLinks(CmsObject cms)
A_CmsSelectWidget
getJavaScriptResourceLinks
在接口中 I_CmsADEWidget
getJavaScriptResourceLinks
在类中 A_CmsSelectWidget
cms
- the current OpenCms contextI_CmsADEWidget.getJavaScriptResourceLinks(org.opencms.file.CmsObject)
public boolean isInternal()
A_CmsSelectWidget
Only widgets belonging to the OpenCms core should be marked as internal.
isInternal
在接口中 I_CmsADEWidget
isInternal
在类中 A_CmsSelectWidget
true
if this is an internal widgetI_CmsADEWidget.isInternal()
public I_CmsWidget newInstance()
I_CmsWidget
newInstance
在接口中 I_CmsWidget
newInstance
在类中 CmsComboWidget
I_CmsWidget.newInstance()
public void setConfiguration(java.lang.String config)
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
在接口中 I_CmsWidget
setConfiguration
在类中 A_CmsSelectWidget
config
- the configuration to setA_CmsWidget.setConfiguration(java.lang.String)