|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.widgets.A_CmsWidget
org.opencms.widgets.A_CmsHtmlWidget
public abstract class A_CmsHtmlWidget
Provides a widget that creates a rich input field using the matching component, for use on a widget dialog.
The matching component is determined by checking the installed editors for the best matching component to use.
Field Summary |
---|
Fields inherited from class org.opencms.widgets.A_CmsWidget |
---|
HELP_POSTFIX, LABEL_PREFIX |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 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. |
Methods inherited from class org.opencms.widgets.A_CmsWidget |
---|
equals, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode |
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 |
---|
getDialogWidget, newInstance |
Constructor Detail |
---|
public A_CmsHtmlWidget()
public A_CmsHtmlWidget(CmsHtmlWidgetOption configuration)
configuration
- the configuration to usepublic A_CmsHtmlWidget(java.lang.String configuration)
configuration
- the configuration to useMethod Detail |
---|
public java.lang.String getConfiguration()
A_CmsWidget
getConfiguration
in interface I_CmsWidget
getConfiguration
in class 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
in interface I_CmsWidget
setConfiguration
in class A_CmsWidget
configuration
- the configuration to setI_CmsWidget.setConfiguration(java.lang.String)
public void setEditorValue(CmsObject cms, java.util.Map formParameters, I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param)
I_CmsWidget
setEditorValue
in interface I_CmsWidget
setEditorValue
in class 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 widget
protected 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
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |