Class ReadOnlyKeyMapEntryProperty<V>

java.lang.Object
javafx.beans.binding.ObjectExpression<V>
javafx.beans.property.ReadOnlyObjectProperty<V>
javafx.beans.property.ObjectProperty<V>
javafx.beans.property.ObjectPropertyBase<V>
org.jhotdraw8.fxcollection.MapEntryProperty<Key<?>,Object,V>
org.jhotdraw8.fxcollection.typesafekey.ReadOnlyKeyMapEntryProperty<V>
Type Parameters:
V - the value type
All Implemented Interfaces:
javafx.beans.Observable, javafx.beans.property.Property<V>, javafx.beans.property.ReadOnlyProperty<V>, javafx.beans.value.ObservableObjectValue<V>, javafx.beans.value.ObservableValue<V>, javafx.beans.value.WritableObjectValue<V>, javafx.beans.value.WritableValue<V>, javafx.collections.MapChangeListener<Key<?>,Object>

public class ReadOnlyKeyMapEntryProperty<V> extends MapEntryProperty<Key<?>,Object,V>
KeyMapEntryProperty.

FIXME currently only works fully if the provided MapAccessor is an instance of Key.

Author:
Werner Randelshofer
  • Nested Class Summary

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

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

    Fields inherited from class org.jhotdraw8.fxcollection.MapEntryProperty

    key, map
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReadOnlyKeyMapEntryProperty(@NonNull javafx.collections.ObservableMap<Key<?>,Object> map, MapAccessor<V> key)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
     
    void
    set(V value)
     

    Methods inherited from class org.jhotdraw8.fxcollection.MapEntryProperty

    getBean, onChanged, unbind

    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
  • Constructor Details

    • ReadOnlyKeyMapEntryProperty

      public ReadOnlyKeyMapEntryProperty(@NonNull javafx.collections.ObservableMap<Key<?>,Object> map, MapAccessor<V> key)
  • Method Details

    • get

      public @Nullable V get()
      Specified by:
      get in interface javafx.beans.value.ObservableObjectValue<V>
      Specified by:
      get in interface javafx.beans.value.WritableObjectValue<V>
      Overrides:
      get in class MapEntryProperty<Key<?>,Object,V>
    • set

      public void set(V value)
      Specified by:
      set in interface javafx.beans.value.WritableObjectValue<V>
      Overrides:
      set in class MapEntryProperty<Key<?>,Object,V>
    • getName

      public String getName()
      Specified by:
      getName in interface javafx.beans.property.ReadOnlyProperty<V>
      Overrides:
      getName in class MapEntryProperty<Key<?>,Object,V>