-
- All Implemented Interfaces:
-
java.io.Serializable,javafx.beans.Observable,javafx.beans.property.Property,javafx.beans.property.ReadOnlyProperty,javafx.beans.value.ObservableObjectValue,javafx.beans.value.ObservableValue,javafx.beans.value.WritableObjectValue,javafx.beans.value.WritableValue
public class SerializableEnumProperty<T extends Enum<T>> extends ObjectPropertyBase<T> implements Serializable
javafx.beans.property.Property designed to wrap an enum.
It is based on
ObjectPropertyBaseand isSerializable.
-
-
Constructor Summary
Constructors Constructor Description SerializableEnumProperty()The constructor of ObjectPropertyBase.SerializableEnumProperty(T initialValue)The constructor of ObjectPropertyBase.SerializableEnumProperty(String name)The constructor of ObjectPropertyBase.SerializableEnumProperty(String name, T initialValue)The constructor of ObjectPropertyBase.
-
Method Summary
Modifier and Type Method Description StringgetName()Getter method for the name of the property. voidsetName(String name)Setter method for the name of the property. ObjectgetBean()Getter method for unused field bean. Array<T>values()Returns the elements of the enum class wrapped by this javafx.beans.property.Property. inthashCode()booleanequals(Object obj)-
Methods inherited from class javafx.beans.property.ObjectPropertyBase
addListener, bind, get, isBound, removeListener, set, toString, unbind -
Methods inherited from class javafx.beans.property.ObjectProperty
bindBidirectional, setValue, unbindBidirectional -
Methods inherited from class javafx.beans.binding.ObjectExpression
asString, getValue, isEqualTo, isNotEqualTo, isNotNull, isNull, objectExpression -
Methods inherited from class javafx.beans.property.ReadOnlyProperty
getName -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SerializableEnumProperty
SerializableEnumProperty()
The constructor ofObjectPropertyBase.
-
SerializableEnumProperty
SerializableEnumProperty(T initialValue)
The constructor ofObjectPropertyBase.- Parameters:
initialValue- the initial value of the wrapped value
-
SerializableEnumProperty
SerializableEnumProperty(String name)
The constructor ofObjectPropertyBase.- Parameters:
name- the name of thisSimpleObjectProperty
-
-
-
-