Interface ValuedComponent<V>

    • Method Detail

      • getValueClass

        java.lang.Class<V> getValueClass()
        Returns:
        The class representing the type of value displayed in the component.
      • getValue

        V getValue()
        Specified by:
        getValue in interface com.globalmentor.model.Valued<V>
        Returns:
        The current value displayed in the component, or null if there is no value.
      • setValue

        void setValue​(V newValue)
               throws java.beans.PropertyVetoException
        Sets the new value to be displayed in the component.
        Specified by:
        setValue in interface com.globalmentor.model.MutableValued<V>
        Parameters:
        newValue - The new value.
        Throws:
        java.beans.PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.