Module is.codion.swing.common.ui
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 typeC
- 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.-
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
ModifierConstructorDescriptionprotected
AbstractTextComponentValue
(C component) Instantiates a newAbstractTextComponentValue
, with theUpdateOn.VALUE_CHANGE
update on policy and no null value.protected
AbstractTextComponentValue
(C component, T nullValue) Instantiates a newAbstractTextComponentValue
, with theUpdateOn.VALUE_CHANGE
update on policy.protected
AbstractTextComponentValue
(C component, 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, setValue
Methods inherited from class is.codion.common.value.AbstractValue
accept, addConsumer, addListener, addValidator, addWeakConsumer, addWeakListener, clear, createObserver, get, link, link, map, notifyListeners, nullable, observer, removeConsumer, removeListener, removeValidator, removeWeakConsumer, 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 is.codion.common.observer.Observer
addConsumer, addListener, addWeakConsumer, addWeakListener, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
Methods inherited from interface is.codion.common.value.Value
accept, addValidator, clear, link, link, map, observer, removeValidator, set, unlink, unlink, validate
Methods inherited from interface is.codion.common.value.ValueObserver
get, isEqualTo, isNotEqualTo, isNotNull, isNull, nullable, optional
-
Constructor Details
-
AbstractTextComponentValue
Instantiates a newAbstractTextComponentValue
, with theUpdateOn.VALUE_CHANGE
update on policy and no null value.- Parameters:
component
- the component
-
AbstractTextComponentValue
Instantiates a newAbstractTextComponentValue
, with theUpdateOn.VALUE_CHANGE
update 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
-