Class DefaultTextEditor
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<T>
-
- com.hybris.cockpitng.editors.impl.AbstractTextBasedEditorRenderer<T>
-
- com.hybris.cockpitng.editor.text.AbstractTextEditor<java.lang.String>
-
- com.hybris.cockpitng.editor.defaulttext.DefaultTextEditor
-
- All Implemented Interfaces:
CockpitEditorRenderer<java.lang.String>
public class DefaultTextEditor extends AbstractTextEditor<java.lang.String>
Default Editor forStringvalues.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOERCE_FROM_STRING_JSstatic java.lang.StringCOERCE_TO_STRING_JSstatic java.lang.StringZK_FUNCTION_COERCE_FROM_STRINGstatic java.lang.StringZK_FUNCTION_COERCE_TO_STRING-
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractTextBasedEditorRenderer
SETTING_INPUT_INSTANT
-
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINER
-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description DefaultTextEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringconvertToString(org.zkoss.zul.impl.InputElement editorView, java.lang.String initialValue)Converts component value to Stringprotected java.lang.StringgetRawValue(org.zkoss.zul.impl.InputElement viewComponent)Extracts value of the given editor component.protected voidinitAdditionalParameters(org.zkoss.zul.Textbox editorView, EditorContext<java.lang.String> context)Additional initialization of ui component according to specified contextprotected voidsetRawValue(org.zkoss.zul.impl.InputElement viewComponent, java.lang.String rawValue)Sets the value to the given editor component.-
Methods inherited from class com.hybris.cockpitng.editor.text.AbstractTextEditor
coerceFromString, render
-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractTextBasedEditorRenderer
clearInvalidInputAndNotify, handleChangeEvent, handleChangeEvent, handleChangingEvent, handleReadOnly, hasInvalidInput, initViewComponent, isPrimitive, onCancelEvent, onChangeEvent, onChangingEvent, onFocusEvent, onOkEvent
-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
-
-
-
Field Detail
-
ZK_FUNCTION_COERCE_FROM_STRING
public static final java.lang.String ZK_FUNCTION_COERCE_FROM_STRING
- See Also:
- Constant Field Values
-
ZK_FUNCTION_COERCE_TO_STRING
public static final java.lang.String ZK_FUNCTION_COERCE_TO_STRING
- See Also:
- Constant Field Values
-
COERCE_FROM_STRING_JS
public static final java.lang.String COERCE_FROM_STRING_JS
- See Also:
- Constant Field Values
-
COERCE_TO_STRING_JS
public static final java.lang.String COERCE_TO_STRING_JS
- See Also:
- Constant Field Values
-
-
Method Detail
-
initAdditionalParameters
protected void initAdditionalParameters(org.zkoss.zul.Textbox editorView, EditorContext<java.lang.String> context)Description copied from class:AbstractTextEditorAdditional initialization of ui component according to specified context- Overrides:
initAdditionalParametersin classAbstractTextEditor<java.lang.String>- Parameters:
editorView- ui componentcontext- context
-
setRawValue
protected void setRawValue(org.zkoss.zul.impl.InputElement viewComponent, java.lang.String rawValue)Description copied from class:AbstractTextBasedEditorRendererSets the value to the given editor component.- Overrides:
setRawValuein classAbstractTextEditor<java.lang.String>- Parameters:
viewComponent- the underlying editor componentrawValue- the value
-
getRawValue
protected java.lang.String getRawValue(org.zkoss.zul.impl.InputElement viewComponent)
Description copied from class:AbstractTextBasedEditorRendererExtracts value of the given editor component.- Overrides:
getRawValuein classAbstractTextEditor<java.lang.String>- Parameters:
viewComponent- the underlying editor component- Returns:
- the value
-
convertToString
protected java.lang.String convertToString(org.zkoss.zul.impl.InputElement editorView, java.lang.String initialValue)Description copied from class:AbstractTextEditorConverts component value to String- Overrides:
convertToStringin classAbstractTextEditor<java.lang.String>- Parameters:
editorView- ui componentinitialValue- vomponent value- Returns:
- string value
-
-