Class DefaultTextEditor

    • 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
    • Constructor Detail

      • DefaultTextEditor

        public DefaultTextEditor()
    • Method Detail

      • initAdditionalParameters

        protected void initAdditionalParameters​(org.zkoss.zul.Textbox editorView,
                                                EditorContext<java.lang.String> context)
        Description copied from class: AbstractTextEditor
        Additional initialization of ui component according to specified context
        Overrides:
        initAdditionalParameters in class AbstractTextEditor<java.lang.String>
        Parameters:
        editorView - ui component
        context - context
      • setRawValue

        protected void setRawValue​(org.zkoss.zul.impl.InputElement viewComponent,
                                   java.lang.String rawValue)
        Description copied from class: AbstractTextBasedEditorRenderer
        Sets the value to the given editor component.
        Overrides:
        setRawValue in class AbstractTextEditor<java.lang.String>
        Parameters:
        viewComponent - the underlying editor component
        rawValue - the value
      • getRawValue

        protected java.lang.String getRawValue​(org.zkoss.zul.impl.InputElement viewComponent)
        Description copied from class: AbstractTextBasedEditorRenderer
        Extracts value of the given editor component.
        Overrides:
        getRawValue in class AbstractTextEditor<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: AbstractTextEditor
        Converts component value to String
        Overrides:
        convertToString in class AbstractTextEditor<java.lang.String>
        Parameters:
        editorView - ui component
        initialValue - vomponent value
        Returns:
        string value