Package com.hybris.cockpitng.editors
Class ExampleTextEditor
- java.lang.Object
-
- com.hybris.cockpitng.editors.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.StringPARAM_IS_MULTILINEParameter specifying if the editor should be rendered as multiline text box.static java.lang.StringPARAM_ROWSParameter specifying the number of rows for the multiline case.-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description ExampleTextEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrender(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 specifiedComponentcomponent.
-
-
-
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
-
-
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:CockpitEditorRendererCreates a new editor component and attaches it to the specifiedComponentcomponent.- Specified by:
renderin interfaceCockpitEditorRenderer<java.lang.String>- Parameters:
parent- parent component the editor should be attached tocontext- the context for the editor creationlistener- the listener to notify the rest of the world about value changes and other events
-
-