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:
is.codion.common.event.EventObserver<T>, is.codion.common.value.Value<T>, is.codion.common.value.ValueObserver<T>, ComponentValue<T,C>, Consumer<T>, Supplier<T>

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

    Nested classes/interfaces inherited from interface is.codion.common.value.Value

    is.codion.common.value.Value.Notify, is.codion.common.value.Value.Validator<T extends Object>
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Instantiates a new AbstractTextComponentValue, with the UpdateOn.VALUE_CHANGE update on policy and no null value.
    protected
    AbstractTextComponentValue(C component, T nullValue)
    Instantiates a new AbstractTextComponentValue, with the UpdateOn.VALUE_CHANGE update on policy.
    protected
    AbstractTextComponentValue(C component, T nullValue, UpdateOn updateOn)
    Instantiates a new AbstractComponentValue
  • Method Summary

    Methods inherited from class is.codion.swing.common.ui.component.value.AbstractComponentValue

    component, get, getComponentValue, setComponentValue, setValue

    Methods inherited from class is.codion.common.value.AbstractValue

    accept, addDataListener, addListener, addValidator, addWeakDataListener, addWeakListener, link, link, notifyListeners, nullable, observer, removeDataListener, removeListener, removeValidator, removeWeakDataListener, removeWeakListener, set, unlink, unlink, validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Consumer

    andThen

    Methods inherited from interface is.codion.common.event.EventObserver

    addDataListener, addListener, addWeakDataListener, addWeakListener, removeDataListener, removeListener, removeWeakDataListener, removeWeakListener

    Methods inherited from interface is.codion.common.value.Value

    accept, addValidator, link, link, observer, removeValidator, set, unlink, unlink, validate

    Methods inherited from interface is.codion.common.value.ValueObserver

    equalTo, isNotNull, isNull, notEqualTo, nullable, optional
  • 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