-
- All Implemented Interfaces:
-
java.io.Serializable,javafx.beans.Observable,javafx.beans.binding.NumberExpression,javafx.beans.property.Property,javafx.beans.property.ReadOnlyProperty,javafx.beans.property.ReadOnlyProperty,javafx.beans.value.ObservableIntegerValue,javafx.beans.value.ObservableNumberValue,javafx.beans.value.ObservableValue,javafx.beans.value.ObservableValue,javafx.beans.value.WritableIntegerValue,javafx.beans.value.WritableNumberValue,javafx.beans.value.WritableValue,javafx.beans.value.WritableValue
public class RangedIntegerProperty extends IntegerPropertyBase implements Serializable
This javafx.beans.property.IntegerProperty is designed to have a range for the wrapped value and to be serializable.
-
-
Field Summary
Fields Modifier and Type Field Description private intlowerBoundprivate intupperBoundprivate Stringname
-
Constructor Summary
Constructors Constructor Description RangedIntegerProperty(String name, int initialValue, int lowerBound, int upperBound)Based on constructor of IntegerPropertyBase, adds the specified bounds. RangedIntegerProperty(String name, int lowerBound, int upperBound)Based on constructor of IntegerPropertyBase, adds the specified bounds. RangedIntegerProperty(int initialValue, int lowerBound, int upperBound)Based on constructor of IntegerPropertyBase, adds the specified bounds. RangedIntegerProperty(int lowerBound, int upperBound)Based on constructor of IntegerPropertyBase, adds the specified bounds. RangedIntegerProperty(String name, int initialValue)The constructor of IntegerPropertyBase. RangedIntegerProperty(String name)The constructor of IntegerPropertyBase. RangedIntegerProperty(int initialValue)The constructor of IntegerPropertyBase. RangedIntegerProperty()The constructor of IntegerPropertyBase.
-
Method Summary
Modifier and Type Method Description intgetLowerBound()Getter method for the lower bound. voidsetLowerBound(int lowerBound)Setter method for the lower bound. intgetUpperBound()Getter method for the upper bound. voidsetUpperBound(int upperBound)Setter method for the upper bound. 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. voidset(int value)voidsetValue(Number value)inthashCode()booleanequals(Object obj)static PropertyTypeAdapter<RangedIntegerProperty>getTypeAdapter()Returns a com.google.gson.JsonSerializer and com.google.gson.JsonDeserializer combo class to be used as a TypeAdapterfor thisRangedIntegerProperty.-
Methods inherited from class javafx.beans.property.IntegerPropertyBase
addListener, bind, get, isBound, removeListener, toString, unbind -
Methods inherited from class javafx.beans.property.IntegerProperty
asObject, bindBidirectional, integerProperty, unbindBidirectional -
Methods inherited from class javafx.beans.property.ReadOnlyIntegerProperty
asObject, readOnlyIntegerProperty -
Methods inherited from class javafx.beans.binding.IntegerExpression
add, add, add, add, asObject, divide, divide, divide, divide, doubleValue, floatValue, getValue, intValue, integerExpression, longValue, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract -
Methods inherited from class javafx.beans.binding.NumberExpressionBase
add, asString, divide, greaterThan, greaterThanOrEqualTo, isEqualTo, isNotEqualTo, lessThan, lessThanOrEqualTo, multiply, numberExpression, subtract -
Methods inherited from class javafx.beans.binding.NumberExpression
negate -
Methods inherited from class javafx.beans.value.ObservableValue
getValue -
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
-
RangedIntegerProperty
RangedIntegerProperty(String name, int initialValue, int lowerBound, int upperBound)
Based on constructor of IntegerPropertyBase, adds the specified bounds.- Parameters:
name- the name of thisIntegerPropertyinitialValue- the initial value of the wrapped valuelowerBound- the lower bound for the wrapped value to be considered acceptableupperBound- the upper bound for the wrapped value to be considered acceptable
-
RangedIntegerProperty
RangedIntegerProperty(String name, int lowerBound, int upperBound)
Based on constructor of IntegerPropertyBase, adds the specified bounds.- Parameters:
name- the name of thisIntegerPropertylowerBound- the lower bound for the wrapped value to be considered acceptableupperBound- the upper bound for the wrapped value to be considered acceptable
-
RangedIntegerProperty
RangedIntegerProperty(int initialValue, int lowerBound, int upperBound)
Based on constructor of IntegerPropertyBase, adds the specified bounds.- Parameters:
initialValue- the initial value of the wrapped valuelowerBound- the lower bound for the wrapped value to be considered acceptableupperBound- the upper bound for the wrapped value to be considered acceptable
-
RangedIntegerProperty
RangedIntegerProperty(int lowerBound, int upperBound)
Based on constructor of IntegerPropertyBase, adds the specified bounds.- Parameters:
lowerBound- the lower bound for the wrapped value to be considered acceptableupperBound- the upper bound for the wrapped value to be considered acceptable
-
RangedIntegerProperty
RangedIntegerProperty(String name, int initialValue)
The constructor of IntegerPropertyBase.- Parameters:
name- the name of thisIntegerPropertyinitialValue- the initial value of the wrapped value
-
RangedIntegerProperty
RangedIntegerProperty(String name)
The constructor of IntegerPropertyBase.- Parameters:
name- the name of thisIntegerProperty
-
RangedIntegerProperty
RangedIntegerProperty(int initialValue)
The constructor of IntegerPropertyBase.- Parameters:
initialValue- the initial value of the wrapped value
-
RangedIntegerProperty
RangedIntegerProperty()
The constructor of IntegerPropertyBase.
-
-
Method Detail
-
getLowerBound
int getLowerBound()
Getter method for the lower bound.
-
setLowerBound
void setLowerBound(int lowerBound)
Setter method for the lower bound.
- Parameters:
lowerBound- the lower bound
-
getUpperBound
int getUpperBound()
Getter method for the upper bound.
-
setUpperBound
void setUpperBound(int upperBound)
Setter method for the upper bound.
- Parameters:
upperBound- the upper bound
-
setName
void setName(String name)
Setter method for the name of the property.
- Parameters:
name- the name to set
-
set
void set(int value)
-
hashCode
int hashCode()
-
getTypeAdapter
static PropertyTypeAdapter<RangedIntegerProperty> getTypeAdapter()
Returns a com.google.gson.JsonSerializer and com.google.gson.JsonDeserializer combo class to be used as a
TypeAdapterfor thisRangedIntegerProperty.
-
-
-
-