Interface ComponentValue<T,C extends JComponent>

Type Parameters:
T - the value type
C - the component type
All Superinterfaces:
Consumer<T>, is.codion.common.event.EventObserver<T>, Supplier<T>, is.codion.common.value.Value<T>, is.codion.common.value.ValueObserver<T>
All Known Implementing Classes:
AbstractComponentValue, AbstractTextComponentValue

public interface ComponentValue<T,C extends JComponent> extends is.codion.common.value.Value<T>
A Value represented by an input component of some sort.
Components is a factory for ComponentValue implementations.
  • 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>
  • Method Summary

    Modifier and Type
    Method
    Description
     

    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 java.util.function.Supplier

    get

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

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

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

    isEqualTo, isNotEqualTo, isNotNull, isNull, nullable, optional
  • Method Details

    • component

      C component()
      Returns:
      the input component representing the value