Class ExampleTextEditor

  • All Implemented Interfaces:
    CockpitEditorRenderer<java.lang.String>

    public class ExampleTextEditor
    extends java.lang.Object
    implements CockpitEditorRenderer<java.lang.String>
    An example of a Cockpit NG editor for text values.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PARAM_IS_MULTILINE
      Parameter specifying if the editor should be rendered as multiline text box.
      static java.lang.String PARAM_ROWS
      Parameter specifying the number of rows for the multiline case.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void render​(org.zkoss.zk.ui.Component parent, EditorContext<java.lang.String> context, EditorListener<java.lang.String> listener)
      Creates a new editor component and attaches it to the specified Component component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PARAM_IS_MULTILINE

        public static final java.lang.String PARAM_IS_MULTILINE
        Parameter specifying if the editor should be rendered as multiline text box.
        See Also:
        Constant Field Values
      • PARAM_ROWS

        public static final java.lang.String PARAM_ROWS
        Parameter specifying the number of rows for the multiline case.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExampleTextEditor

        public ExampleTextEditor()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           EditorContext<java.lang.String> context,
                           EditorListener<java.lang.String> listener)
        Description copied from interface: CockpitEditorRenderer
        Creates a new editor component and attaches it to the specified Component component.
        Specified by:
        render in interface CockpitEditorRenderer<java.lang.String>
        Parameters:
        parent - parent component the editor should be attached to
        context - the context for the editor creation
        listener - the listener to notify the rest of the world about value changes and other events