Class AbstractValuedPanel<V>

Type Parameters:
V - The type of value displayed within the component.
All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, com.globalmentor.model.MutableValued<V>, com.globalmentor.model.Valued<V>, io.clogr.Clogged, Box, Component, CompositeComponent, Container, LayoutComponent, Panel, ValuedComponent<V>, Displayable, InfoModel, LabelModel, Model, PresentationModel, DepictedObject, Iterable<Component>
Direct Known Subclasses:
AbstractEditValuePanel

public abstract class AbstractValuedPanel<V> extends AbstractPanel implements ValuedComponent<V>
An abstract panel that represents a value.
Author:
Garret Wilson
  • Constructor Details

    • AbstractValuedPanel

      public AbstractValuedPanel(Class<V> valueClass, Layout<? extends Constraints> layout)
      Value class and layout constructor.
      Parameters:
      valueClass - The class indicating the type of value displayed within the component.
      layout - The layout definition for the container.
      Throws:
      NullPointerException - if the given value class and/or layout is null.
  • Method Details

    • getValueClass

      public Class<V> getValueClass()
      Specified by:
      getValueClass in interface ValuedComponent<V>
      Returns:
      The class representing the type of value displayed in the component.