Class DefaultReferenceEditor<T>

    • Constructor Detail

      • DefaultReferenceEditor

        public DefaultReferenceEditor()
    • Method Detail

      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           EditorContext<T> context,
                           EditorListener<T> 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<T>
        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
      • setEditorParameters

        protected void setEditorParameters​(EditorContext<T> context)
      • setInitialValue

        protected void setInitialValue​(EditorContext<T> context)
      • isEditable

        public boolean isEditable()
        Specified by:
        isEditable in interface ReferenceEditorLogic<T>
        Returns:
        whether editor is in editable or readonly state
      • getRegexEditorPattern

        protected java.util.regex.Pattern getRegexEditorPattern()
        Description copied from class: AbstractReferenceEditor
        The pattern should match when the editor may be applied. If the pattern's matcher matches it should guarantee that group(1) on it's matcher returns the type code.
        Specified by:
        getRegexEditorPattern in class AbstractReferenceEditor<T,​T>
        Returns:
        Pattern that identifies the editor
        See Also:
        Pattern, Matcher