Class DefaultRangeEditor<T>

    • Field Detail

      • ALLOW_INFINITE_ENDPOINTS_PARAMETER

        public static final java.lang.String ALLOW_INFINITE_ENDPOINTS_PARAMETER
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultRangeEditor

        public DefaultRangeEditor()
    • Method Detail

      • setCurrentValue

        public void setCurrentValue​(Range<T> value)
        Sets the given range value for the range editor.
        Parameters:
        value - Sets range value.
      • render

        public void render​(org.zkoss.zk.ui.Component parent,
                           EditorContext<Range<T>> context,
                           EditorListener<Range<T>> listener)
        Description copied from interface: CockpitEditorRenderer
        Creates a new editor component and attaches it to the specified Component component.
        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
      • createEditorListener

        protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createEditorListener​(EditorContext<Range<T>> editorContext,
                                                                                                        EditorListener<Range<T>> listener)
        Create a wrapper listener from embedded editor listeners to this range Editor listeners.
        Parameters:
        editorContext - range editor context
        listener - top level listener to be notified about value changes
        Returns:
        the listener
      • createEditorListener

        @Deprecated(since="6.5",
                    forRemoval=true)
        protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createEditorListener​(EditorListener<Range<T>> listener)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 6.5
        Create a wrapper listener from embedded editor listeners to Editor listeners.
        Returns:
        the listener
        See Also:
        createEditorListener(EditorContext, EditorListener)
      • getStartEditor

        public Editor getStartEditor()
        Returns:
        the startEditor
      • setStartEditor

        public void setStartEditor​(Editor startEditor)
        Parameters:
        startEditor - the startEditor to set
      • getEndEditor

        public Editor getEndEditor()
        Returns:
        the endEditor
      • setEndEditor

        public void setEndEditor​(Editor endEditor)
        Parameters:
        endEditor - the endEditor to set