Class AbstractTextComponentValue<T,C extends JTextComponent>

java.lang.Object
is.codion.common.value.AbstractValue<T>
is.codion.swing.common.ui.component.value.AbstractComponentValue<T,C>
is.codion.swing.common.ui.component.text.AbstractTextComponentValue<T,C>
Type Parameters:
T - the value type
C - the component type
All Implemented Interfaces:
Observer<T>, Value<T>, ValueObserver<T>, ComponentValue<T,C>, Consumer<T>

public abstract class AbstractTextComponentValue<T,C extends JTextComponent> extends AbstractComponentValue<T,C>
An abstract ComponentValue implementation for a text component. Handles value notification.
  • Constructor Details

    • AbstractTextComponentValue

      protected AbstractTextComponentValue(C component)
      Instantiates a new AbstractTextComponentValue, with the UpdateOn.VALUE_CHANGE update on policy and no null value.
      Parameters:
      component - the component
    • AbstractTextComponentValue

      protected AbstractTextComponentValue(C component, T nullValue)
      Instantiates a new AbstractTextComponentValue, with the UpdateOn.VALUE_CHANGE update on policy.
      Parameters:
      component - the component
      nullValue - the value to use instead of null
    • AbstractTextComponentValue

      protected AbstractTextComponentValue(C component, T nullValue, UpdateOn updateOn)
      Instantiates a new AbstractComponentValue
      Parameters:
      component - the component
      nullValue - the value to use instead of null
      updateOn - the update on policy
      Throws:
      NullPointerException - in case component is null