Module is.codion.swing.common.ui
Class AbstractTextComponentValue<C extends JTextComponent,T>
java.lang.Object
is.codion.common.value.AbstractValue<T>
is.codion.swing.common.ui.component.value.AbstractComponentValue<C,T>
is.codion.swing.common.ui.component.text.AbstractTextComponentValue<C,T>
- Type Parameters:
C- the component typeT- the value type
- All Implemented Interfaces:
Observable<T>,Observer<T>,Value<T>,ComponentValue<C,T>
public abstract class AbstractTextComponentValue<C extends JTextComponent,T>
extends AbstractComponentValue<C,T>
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
Value.Builder<T,B extends Value.Builder<T, B>>, Value.BuilderFactory, Value.Notify, Value.Validator<T> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTextComponentValue(C component) Instantiates a newAbstractTextComponentValue, with theUpdateOn.VALUE_CHANGEupdate on policy and no null value.protectedAbstractTextComponentValue(C component, @Nullable T nullValue) Instantiates a newAbstractTextComponentValue, with theUpdateOn.VALUE_CHANGEupdate on policy.protectedAbstractTextComponentValue(C component, @Nullable T nullValue, UpdateOn updateOn) Instantiates a newAbstractComponentValue -
Method Summary
Methods inherited from class is.codion.swing.common.ui.component.value.AbstractComponentValue
component, getComponentValue, getValue, setComponentValue, setValueMethods inherited from class is.codion.common.value.AbstractValue
addValidator, clear, createObservable, get, isNullable, link, link, map, notifyObserver, observable, observer, removeValidator, set, unlink, unlink, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface is.codion.common.observer.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, get, getOrThrow, getOrThrow, is, isNot, isNull, isNullable, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListenerMethods inherited from interface is.codion.common.value.Value
addValidator, clear, link, link, map, observable, removeValidator, set, unlink, unlink, validate
-
Constructor Details
-
AbstractTextComponentValue
Instantiates a newAbstractTextComponentValue, with theUpdateOn.VALUE_CHANGEupdate on policy and no null value.- Parameters:
component- the component
-
AbstractTextComponentValue
Instantiates a newAbstractTextComponentValue, with theUpdateOn.VALUE_CHANGEupdate on policy.- Parameters:
component- the componentnullValue- the value to use instead of null
-
AbstractTextComponentValue
Instantiates a newAbstractComponentValue- Parameters:
component- the componentnullValue- the value to use instead of nullupdateOn- the update on policy- Throws:
NullPointerException- in case component is null
-