public abstract class A_CmsHtmlWidget extends A_CmsWidget
The matching component is determined by checking the installed editors for the best matching component to use.
A_CmsWidget.CmsDummyWidgetDialog
HELP_POSTFIX, LABEL_PREFIX
构造器和说明 |
---|
A_CmsHtmlWidget()
Creates a new html editing widget.
|
A_CmsHtmlWidget(CmsHtmlWidgetOption configuration)
Creates a new html editing widget with the given configuration.
|
A_CmsHtmlWidget(java.lang.String configuration)
Creates a new html editing widget with the given configuration.
|
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
buildOpenCmsButtonRow(I_CmsWidgetDialog widgetDialog,
java.lang.String paramId)
Returns the HTML for the OpenCms specific button row for galleries and links.
|
protected java.lang.String |
buildOpenCmsButtonRow(int segment,
I_CmsWidgetDialog widgetDialog)
Returns the start or end HTML for the OpenCms specific button row.
|
java.lang.String |
getConfiguration()
Returns the configuration string.
|
CmsHtmlWidgetOption |
getHtmlWidgetOption()
Returns the configured Html widget options.
|
void |
setConfiguration(java.lang.String configuration)
Sets the configuration of this widget.
|
void |
setEditorValue(CmsObject cms,
java.util.Map<java.lang.String,java.lang.String[]> formParameters,
I_CmsWidgetDialog widgetDialog,
I_CmsWidgetParameter param)
Sets the value of in the given widget parameter by reading the "right"
value from the offered map of parameters.
|
void |
setHtmlWidgetOption(CmsHtmlWidgetOption htmlWidgetOption)
Sets the configured Html widget options.
|
equals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, isCompactViewEnabled
getDialogWidget, newInstance
public A_CmsHtmlWidget()
public A_CmsHtmlWidget(CmsHtmlWidgetOption configuration)
configuration
- the configuration to usepublic A_CmsHtmlWidget(java.lang.String configuration)
configuration
- the configuration to usepublic java.lang.String getConfiguration()
A_CmsWidget
getConfiguration
在接口中 I_CmsWidget
getConfiguration
在类中 A_CmsWidget
A_CmsWidget.getConfiguration()
public CmsHtmlWidgetOption getHtmlWidgetOption()
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
在接口中 I_CmsWidget
setConfiguration
在类中 A_CmsWidget
configuration
- the configuration to setI_CmsWidget.setConfiguration(java.lang.String)
public void setEditorValue(CmsObject cms, java.util.Map<java.lang.String,java.lang.String[]> formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
I_CmsWidget
setEditorValue
在接口中 I_CmsWidget
setEditorValue
在类中 A_CmsWidget
cms
- the current users OpenCms contextformParameters
- the map of parameters to get the value fromwidgetDialog
- the dialog where the widget is used onparam
- the widget parameter to generate the widget forI_CmsWidget.setEditorValue(org.opencms.file.CmsObject, java.util.Map, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
public void setHtmlWidgetOption(CmsHtmlWidgetOption htmlWidgetOption)
htmlWidgetOption
- the configured Html widget optionsprotected java.lang.String buildOpenCmsButtonRow(I_CmsWidgetDialog widgetDialog, java.lang.String paramId)
Use this method to generate a button row with OpenCms specific dialog buttons in the
I_CmsWidget.getDialogWidget(org.opencms.file.CmsObject, org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)
method to obtain the buttons.
Overwrite the method if the integrated editor needs a specific button generation (e.g. add format select or toggle source code button) or if some buttons should not be available.
widgetDialog
- the dialog where the widget is used onparamId
- the id of the current widgetprotected java.lang.String buildOpenCmsButtonRow(int segment, I_CmsWidgetDialog widgetDialog)
Use this method to generate the start and end html for the button row.
Overwrite the method if the integrated editor needs a specific layout for the button row start or end html.
segment
- the HTML segment (START / END)widgetDialog
- the dialog where the widget is used on