Class AbstractFeatureUIEditor

    • Constructor Detail

      • AbstractFeatureUIEditor

        public AbstractFeatureUIEditor()
    • Method Detail

      • createViewComponent

        public org.zkoss.zk.ui.HtmlBasedComponent createViewComponent​(java.lang.Object initialValue,
                                                                      java.util.Map<java.lang.String,​? extends java.lang.Object> 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
      • extractPropertyDescriptor

        protected ClassAttributePropertyDescriptor extractPropertyDescriptor​(java.util.Map<java.lang.String,​? extends java.lang.Object> parameters)
      • getEditorType

        public java.lang.String getEditorType()
      • getEditorInitialValue

        protected java.lang.Object getEditorInitialValue​(java.lang.Object initialValue)
      • setFocus

        public void setFocus​(org.zkoss.zk.ui.HtmlBasedComponent rootEditorComponent,
                             boolean selectAll)
        Description copied from interface: UIEditor
        Sets the focus on the given input component which can be the rootEditorComponent or a child of it
        Specified by:
        setFocus in interface UIEditor
        Overrides:
        setFocus in class AbstractUIEditor
        Parameters:
        rootEditorComponent - the rootEditorComponent which is returned on method createViewComponent
        selectAll - if true, select the whole input field after focus. It is not guaranteed that the editor supports selection.
      • setValue

        public void setValue​(java.lang.Object value,
                             java.lang.Object unitValue)
      • isNumber

        protected boolean isNumber()
      • supportUnits

        public boolean supportUnits()
      • setEditorFactory

        public void setEditorFactory​(EditorFactory editorFactory)
      • setModelService

        public void setModelService​(ModelService modelService)
      • setClassificationService

        public void setClassificationService​(ClassificationService classificationService)