Interface ValuedComponent<V>

Type Parameters:
V - The type of value displayed within the component.
All Superinterfaces:
Component, DepictedObject, Displayable, InfoModel, LabelModel, Model, com.globalmentor.model.MutableValued<V>, PresentationModel, com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, com.globalmentor.model.Valued<V>
All Known Subinterfaces:
ActionValueControl<V>, CardControl, DialogFrame<V>, ListSelectControl<V>, OptionDialogFrame<O>, SelectControl<V>, ValueControl<V>
All Known Implementing Classes:
AbstractActionValueControl, AbstractBooleanSelectActionControl, AbstractCardPanel, AbstractContainerValueControl, AbstractDialogFrame, AbstractEditValueControl, AbstractEditValuePanel, AbstractLayoutValueControl, AbstractListSelectContainerControl, AbstractListSelectControl, AbstractOptionDialogFrame, AbstractSelectActionValueControl, AbstractTextControl, AbstractValueControl, AbstractValuedPanel, BooleanSelectButton, BooleanSelectLink, BooleanSelectToolButton, BooleanValueControlSelectControl, CalendarControl, CalendarDialogFrame, CardPanel, CardTabControl, CheckControl, DateTimeControl, DateTimeFieldsControl, DefaultDialogFrame, ImageBooleanSelectActionControl, ListControl, MessageOptionDialogFrame, NotificationOptionDialogFrame, ResourceImportControl, SequenceCardPanel, SliderControl, SpinnerControl, TabbedPanel, TabContainerControl, TabControl, TaskStateSelectLink, TextControl, ValueSelectButton, ValueSelectLink

public interface ValuedComponent<V> extends Component, com.globalmentor.model.MutableValued<V>
A component that can be initialized with a value and allows a value to be retrieved. This component is useful for editing complex values (such as contact information).
Author:
Garret Wilson
  • Method Details

    • getValueClass

      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 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:
      PropertyVetoException - if the provided value is not valid or the change has otherwise been vetoed.