org.opencms.xml.content
Class TestCustomInputWidgetImpl

java.lang.Object
  extended by org.opencms.widgets.A_CmsWidget
      extended by org.opencms.widgets.CmsInputWidget
          extended by org.opencms.xml.content.TestCustomInputWidgetImpl
All Implemented Interfaces:
I_CmsWidget

public class TestCustomInputWidgetImpl
extends CmsInputWidget

Extension of the base select widget for testing the "custom widget class" function in the XML content schema annotation.


Field Summary
 
Fields inherited from class org.opencms.widgets.A_CmsWidget
HELP_POSTFIX, LABEL_PREFIX
 
Constructor Summary
TestCustomInputWidgetImpl()
          Base constructor.
TestCustomInputWidgetImpl(String configuration)
          Base constructor with configuration String.
 
Method Summary
 I_CmsWidget newInstance()
          Creates a duplicate of this widget instance.
 void setConfiguration(String configuration)
          Sets the configuration of this widget.
 
Methods inherited from class org.opencms.widgets.CmsInputWidget
getDialogWidget
 
Methods inherited from class org.opencms.widgets.A_CmsWidget
equals, getConfiguration, getDialogHtmlEnd, getDialogIncludes, getDialogInitCall, getDialogInitMethod, getHelpBubble, getHelpKey, getHelpText, getJsHelpMouseHandler, getJSIncludeFile, getLabelKey, getWidgetStringValue, hashCode, setEditorValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCustomInputWidgetImpl

public TestCustomInputWidgetImpl()
Base constructor.


TestCustomInputWidgetImpl

public TestCustomInputWidgetImpl(String configuration)
Base constructor with configuration String.

Parameters:
configuration - the configuration String to use
Method Detail

newInstance

public I_CmsWidget newInstance()
Description copied from interface: I_CmsWidget
Creates a duplicate of this widget instance.

Specified by:
newInstance in interface I_CmsWidget
Overrides:
newInstance in class CmsInputWidget
Returns:
a duplicate of this widget instance
See Also:
CmsInputWidget.newInstance()

setConfiguration

public void setConfiguration(String configuration)
Description copied from interface: I_CmsWidget
Sets the configuration of this widget.

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.

Specified by:
setConfiguration in interface I_CmsWidget
Overrides:
setConfiguration in class A_CmsWidget
Parameters:
configuration - the configuration to set
See Also:
I_CmsWidget.setConfiguration(java.lang.String)