Class MapEntryProperty<K,V,T extends V>

java.lang.Object
javafx.beans.binding.ObjectExpression<T>
javafx.beans.property.ReadOnlyObjectProperty<T>
javafx.beans.property.ObjectProperty<T>
javafx.beans.property.ObjectPropertyBase<T>
org.jhotdraw8.fxcollection.MapEntryProperty<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.Property<T>, javafx.beans.property.ReadOnlyProperty<T>, javafx.beans.value.ObservableObjectValue<T>, javafx.beans.value.ObservableValue<T>, javafx.beans.value.WritableObjectValue<T>, javafx.beans.value.WritableValue<T>, javafx.collections.MapChangeListener<K,V>
Direct Known Subclasses:
KeyMapEntryProperty, ReadOnlyKeyMapEntryProperty

public class MapEntryProperty<K,V,T extends V> extends javafx.beans.property.ObjectPropertyBase<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 K
     
    protected javafx.collections.ObservableMap<K,V>
     
  • Constructor Summary

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

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

    Methods inherited from class javafx.beans.property.ObjectPropertyBase

    addListener, addListener, bind, fireValueChangedEvent, invalidated, isBound, removeListener, removeListener, toString

    Methods inherited from class javafx.beans.property.ObjectProperty

    bindBidirectional, setValue, unbindBidirectional

    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

    Methods inherited from interface javafx.beans.value.WritableValue

    getValue
  • Field Details

    • key

      protected K key
    • map

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

    • MapEntryProperty

      public MapEntryProperty(javafx.collections.ObservableMap<K,V> map, K key, Type tClazz)
  • Method Details

    • get

      public @Nullable T get()
      Specified by:
      get in interface javafx.beans.value.ObservableObjectValue<K>
      Specified by:
      get in interface javafx.beans.value.WritableObjectValue<K>
      Overrides:
      get in class javafx.beans.property.ObjectPropertyBase<T extends V>
    • 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(javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
      Specified by:
      onChanged in interface javafx.collections.MapChangeListener<K,V>
    • set

      public void set(@Nullable T value)
      Specified by:
      set in interface javafx.beans.value.WritableObjectValue<K>
      Overrides:
      set in class javafx.beans.property.ObjectPropertyBase<T extends V>
    • unbind

      public void unbind()
      Specified by:
      unbind in interface javafx.beans.property.Property<K>
      Overrides:
      unbind in class javafx.beans.property.ObjectPropertyBase<T extends V>