Class ReadOnlyMapEntryProperty<K,V,T extends V>

java.lang.Object
javafx.beans.binding.ObjectExpression<T>
javafx.beans.property.ReadOnlyObjectProperty<T>
javafx.beans.property.ReadOnlyObjectPropertyBase<T>
org.jhotdraw8.fxcollection.ReadOnlyMapEntryProperty<K,V,T>
Type Parameters:
K - key type
V - map value type
T - entry value type
All Implemented Interfaces:
javafx.beans.Observable, javafx.beans.property.ReadOnlyProperty<T>, javafx.beans.value.ObservableObjectValue<T>, javafx.beans.value.ObservableValue<T>, javafx.collections.MapChangeListener<K,V>

public class ReadOnlyMapEntryProperty<K,V,T extends V> extends javafx.beans.property.ReadOnlyObjectPropertyBase<T> implements javafx.collections.MapChangeListener<K,V>
This property is weakly bound to an entry in a map.
Author:
Werner Randelshofer
  • Nested Class Summary

    Nested classes/interfaces inherited from interface javafx.collections.MapChangeListener

    javafx.collections.MapChangeListener.Change<K,V>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final @NonNull K
     
    protected final @NonNull javafx.collections.ObservableMap<K,V>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReadOnlyMapEntryProperty(@NonNull javafx.collections.ObservableMap<K,V> map, @NonNull K key, @NonNull Type tClazz)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
     
     
    void
    onChanged(@NonNull javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
     

    Methods inherited from class javafx.beans.property.ReadOnlyObjectPropertyBase

    addListener, addListener, fireValueChangedEvent, removeListener, removeListener

    Methods inherited from class javafx.beans.property.ReadOnlyObjectProperty

    toString

    Methods inherited from class javafx.beans.binding.ObjectExpression

    asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface javafx.beans.Observable

    subscribe

    Methods inherited from interface javafx.beans.value.ObservableValue

    flatMap, getValue, map, orElse, subscribe, subscribe, when
  • Field Details

    • key

      protected final @NonNull K key
    • map

      protected final @NonNull javafx.collections.ObservableMap<K,V> map
  • Constructor Details

  • Method Details

    • get

      public @Nullable T get()
      Specified by:
      get in interface javafx.beans.value.ObservableObjectValue<K>
    • getBean

      public @Nullable Object getBean()
      Specified by:
      getBean in interface javafx.beans.property.ReadOnlyProperty<K>
    • getName

      public String getName()
      Specified by:
      getName in interface javafx.beans.property.ReadOnlyProperty<K>
    • onChanged

      public void onChanged(@NonNull javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
      Specified by:
      onChanged in interface javafx.collections.MapChangeListener<K,V>