java.lang.Object
org.jhotdraw8.fxbase.beans.AbstractPropertyBean
- All Implemented Interfaces:
PropertyBean
- Direct Known Subclasses:
SimplePropertyBean
An abstrac implementation of the
PropertyBean interface.- Author:
- Werner Randelshofer
-
Field Summary
FieldsModifier and TypeFieldDescriptionHolds the properties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @Nullable Tget(MapAccessor<T> key) Gets a property value.<T> TgetNonNull(NonNullMapAccessor<T> key) Gets a nonnull property value.Returns an observable map of property keys and their values.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.fxbase.beans.PropertyBean
getProperty, put, remove, set, setNonNull, valueAt
-
Field Details
-
properties
Holds the properties.
-
-
Constructor Details
-
AbstractPropertyBean
public AbstractPropertyBean()
-
-
Method Details
-
getProperties
Description copied from interface:PropertyBeanReturns an observable map of property keys and their values.- Specified by:
getPropertiesin interfacePropertyBean- Returns:
- the map
-
get
Description copied from interface:PropertyBeanGets a property value.- Specified by:
getin interfacePropertyBean- Type Parameters:
T- the value type- Parameters:
key- the key- Returns:
- the value
-
getNonNull
Description copied from interface:PropertyBeanGets a nonnull property value.- Specified by:
getNonNullin interfacePropertyBean- Type Parameters:
T- the value type- Parameters:
key- the key- Returns:
- the value
-