Class TakesValueEditor<T>

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

    public class TakesValueEditor<T>
    extends Object
    implements org.gwtproject.editor.client.LeafValueEditor<T>
    Adapts the TakesValue interface to the Editor framework.
    • Constructor Detail

      • TakesValueEditor

        protected TakesValueEditor​(org.gwtproject.editor.client.TakesValue<T> peer)
        Returns a new ValueEditor that modifies the given TakesValue peer instance.
        Parameters:
        peer - a TakesValue instance
    • Method Detail

      • of

        public static <T> TakesValueEditor<T> of​(org.gwtproject.editor.client.TakesValue<T> peer)
        Returns a new ValueEditor that modifies the given TakesValue peer instance.
        Parameters:
        peer - a TakesValue instance
        Returns:
        a TakesValueEditor instance of the same type as its peer
      • getValue

        public T getValue()
        Specified by:
        getValue in interface org.gwtproject.editor.client.LeafValueEditor<T>
      • setValue

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