T - the type of the wrapped objectpublic class LimitedComparableProperty<T extends Comparable<? super T>> extends SimpleObjectProperty<T> implements LimitedProperty<T>
LimitedProperty for a Comparable.| Type | Property and Description |
|---|---|
ObjectProperty<T> |
max
The maximum value.
|
ObjectProperty<T> |
min
The minimum value.
|
| Constructor and Description |
|---|
LimitedComparableProperty()
Creates a new instance of this class.
|
LimitedComparableProperty(Object bean,
String name)
Creates a new instance of this class
|
LimitedComparableProperty(Object bean,
String name,
T initialValue)
Creates a new instance of this class.
|
LimitedComparableProperty(Object bean,
String name,
T min,
T max)
Creates a new instance of this class.
|
LimitedComparableProperty(Object bean,
String name,
T initialValue,
T min,
T max)
Creates a new instance of this class.
|
LimitedComparableProperty(T initialValue)
Creates a new instance of this class.
|
LimitedComparableProperty(T min,
T max)
Creates a new instance of this class.
|
LimitedComparableProperty(T initialValue,
T min,
T max)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getMax()
Gets the maximum value.
|
T |
getMin()
Gets the minimum value.
|
ObjectProperty<T> |
maxProperty()
The maximum value.
|
ObjectProperty<T> |
minProperty()
The minimum value.
|
void |
set(T t) |
void |
setMax(T max)
Sets the maximum value.
|
void |
setMin(T min)
Sets the minimum value.
|
getBean, getNameaddListener, addListener, bind, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbindbindBidirectional, setValue, unbindBidirectionalasString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpressionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbind, bindBidirectional, isBound, unbind, unbindBidirectionalgetBean, getNameaddListener, getValue, removeListeneraddListener, removeListenergetValue, setValuepublic ObjectProperty<T extends Comparable<? super T>> minProperty
minProperty in interface LimitedProperty<T extends Comparable<? super T>>getMin(),
setMin(T)public ObjectProperty<T extends Comparable<? super T>> maxProperty
maxProperty in interface LimitedProperty<T extends Comparable<? super T>>getMax(),
setMax(T)public LimitedComparableProperty()
public LimitedComparableProperty(T initialValue)
initialValue - the initial value of this propertypublic LimitedComparableProperty(Object bean, String name)
bean - the bean of this propertyname - the name of this propertypublic LimitedComparableProperty(Object bean, String name, T initialValue)
bean - the bean of this propertyname - the name of this propertyinitialValue - the initial value of this propertypublic LimitedComparableProperty(T min, T max)
min - the min value allowed for this propertymax - the max value allowed for this propertypublic LimitedComparableProperty(T initialValue, T min, T max)
initialValue - the initial value of this propertymin - the min value allowed for this propertymax - the max value allowed for this propertypublic LimitedComparableProperty(Object bean, String name, T min, T max)
bean - the bean of this propertyname - the name of this propertymin - the min value allowed for this propertymax - the max value allowed for this propertypublic LimitedComparableProperty(Object bean, String name, T initialValue, T min, T max)
bean - the bean of this propertyname - the name of this propertyinitialValue - the initial value of this propertymin - the min value allowed for this propertymax - the max value allowed for this propertypublic ObjectProperty<T> minProperty()
minProperty in interface LimitedProperty<T extends Comparable<? super T>>getMin(),
setMin(T)public final T getMin()
getMin in interface LimitedProperty<T extends Comparable<? super T>>public final void setMin(T min)
setMin in interface LimitedProperty<T extends Comparable<? super T>>min - the minimum valuepublic ObjectProperty<T> maxProperty()
maxProperty in interface LimitedProperty<T extends Comparable<? super T>>getMax(),
setMax(T)public final T getMax()
getMax in interface LimitedProperty<T extends Comparable<? super T>>public final void setMax(T max)
setMax in interface LimitedProperty<T extends Comparable<? super T>>max - the maximum valuepublic void set(T t)
set in interface WritableObjectValue<T extends Comparable<? super T>>set in class ObjectPropertyBase<T extends Comparable<? super T>>Copyright © 2012–2019 Drombler. All rights reserved.