Class ValuePanel<T>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
DateValuePanel, ParsableValuePanel, TimeWindowValuePanel

public abstract class ValuePanel<T> extends JPanel
A ValuePanel hold an object value and allows the user to change it. Property change events are fired when the object value is changed by the user.
Since:
3.3.2
Author:
Peter Hollemans
See Also:
  • Field Details

    • VALUE_PROPERTY

      public static final String VALUE_PROPERTY
      The name for value property change events.
      See Also:
  • Constructor Details

    • ValuePanel

      public ValuePanel()
  • Method Details

    • setValue

      public abstract void setValue(T value)
      Sets the value in this panel. Calling this method does not cause the panel to fire a property change event.
      Parameters:
      value - the new object value.
    • getValue

      public abstract T getValue()
      Gets the object value for this panel.
      Returns:
      the object value.
    • signalValueChanged

      protected void signalValueChanged()
      Fires a property change event with a new value.