Class DefaultCharacterUIEditor

  • All Implemented Interfaces:
    UIEditor

    public class DefaultCharacterUIEditor
    extends AbstractTextBasedUIEditor
    UI editor for characters: used for cron jobs for field separator, comment character etc. User: tolik Date: Dec 1, 2009 Time: 1:48:01 PM
    • Constructor Detail

      • DefaultCharacterUIEditor

        public DefaultCharacterUIEditor()
    • Method Detail

      • createViewComponent

        public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent​(java.lang.Object initialValue,
                                                                      java.util.Map parameters,
                                                                      EditorListener listener)
        Description copied from interface: UIEditor
        Creates a new editor component and attaches it to the specified Page page.
        Parameters:
        initialValue - editor's initial value
        parameters - parameters passed via configuration for particular editor
        listener - the EditorListener that will receive events when the editor's value is changed
        Returns:
        the editor component
      • getEditorType

        public java.lang.String getEditorType()
      • isInline

        public boolean isInline()
        Description copied from interface: UIEditor
        Returns whether this editor is an inline editor or not.
        Returns:
        true, if inline
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: UIEditor
        Returns the value held by this editor.
        Specified by:
        getValue in interface UIEditor
        Overrides:
        getValue in class AbstractUIEditor
        Returns:
        this editor's value
      • setValue

        public void setValue​(java.lang.Object value)
        Description copied from interface: UIEditor
        Sets the value of this editor to value.

        Note: Does not have anything to do with value persistence, it is only for setting the value to be displayed. However, depending on the view component implementation and the specified EditorListener the underlying view component might generate an event which causes the EditorListener.valueChanged(Object) method to be called.

        Specified by:
        setValue in interface UIEditor
        Overrides:
        setValue in class AbstractUIEditor
        Parameters:
        value - the value to set