Class ValueBoxEditor<T>

  • Type Parameters:
    T - the type of value to be edited
    All Implemented Interfaces:
    org.gwtproject.editor.client.Editor<T>, org.gwtproject.editor.client.HasEditorDelegate<T>, org.gwtproject.editor.client.LeafValueEditor<T>
    Direct Known Subclasses:
    ExtendedValueBoxEditor

    public class ValueBoxEditor<T>
    extends TakesValueEditor<T>
    implements org.gwtproject.editor.client.HasEditorDelegate<T>
    Adapts the ValueBoxBase interface to the Editor framework. This adapter uses ValueBoxBase.getValueOrThrow() to report parse errors to the Editor framework.
    • Constructor Detail

      • ValueBoxEditor

        protected ValueBoxEditor​(ValueBoxBase<T> peer)
        Constructs a new ValueBoxEditor that adapts a ValueBoxBase peer instance.
        Parameters:
        peer - a ValueBoxBase instance of type T
    • Method Detail

      • getDelegate

        public org.gwtproject.editor.client.EditorDelegate<T> getDelegate()
        Returns the EditorDelegate for this instance.
        Returns:
        an EditorDelegate, or null
        See Also:
        setDelegate(EditorDelegate)
      • setDelegate

        public void setDelegate​(org.gwtproject.editor.client.EditorDelegate<T> delegate)
        Sets the EditorDelegate for this instance. This method is only called by the driver.
        Specified by:
        setDelegate in interface org.gwtproject.editor.client.HasEditorDelegate<T>
        Parameters:
        delegate - an EditorDelegate, or null
        See Also:
        getDelegate()
      • setValue

        public void setValue​(T value)
        Specified by:
        setValue in interface org.gwtproject.editor.client.LeafValueEditor<T>
        Overrides:
        setValue in class TakesValueEditor<T>