N
- is the generic type of the internal numeric value
representation.public abstract class NumberProperty<N extends Number> extends AbstractRegularProperty<Number> implements WritableNumberProperty<N>
WritableNumberProperty
.AbstractProperty.PropertyBuilder<T extends AbstractProperty<? extends V>>
NO_PROPERTIES
PROPERTY_TYPE
Constructor and Description |
---|
NumberProperty(String name,
Bean bean)
The constructor.
|
NumberProperty(String name,
Bean bean,
AbstractValidator<? super Number> validator)
The constructor.
|
NumberProperty(String name,
Bean bean,
Supplier<? extends Number> expression)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doSetNumber(N newValue) |
protected boolean |
doSetValue(Number newValue)
Called from
AbstractValueProperty.setValue(Object) . |
addListener, addListener, fireValueChangedEvent, removeListener, removeListener
bind, bindBidirectional, clearValidationResult, copy, doGetValue, equals, getReadOnly, getValue, hashCode, invalidated, isBound, isReadOnly, isValid, markInvalid, requireWritable, setValue, unbind, unbindBidirectional, validate
assignValueFrom, clone, copy, copy, copy, copy, copy, getBean, getJsonUtil, getName, getValidator, isMandatory, toJson, toJson, toString, withValdidator, withValdidator
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, add, add, add, asString, asString, asString, divide, divide, divide, divide, divide, doubleValue, floatValue, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, intValue, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, longValue, multiply, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract, subtract
getReadOnly, getReadOnly, isMandatory, isReadOnly, isValid, validate
bind, bindBidirectional, isBound, unbind, unbindBidirectional
setValue
getBean, getName, getType
addListener, getValue, removeListener
fromJson, toJson
public NumberProperty(String name, Bean bean)
name
- - see AbstractProperty.getName()
.bean
- - see AbstractProperty.getBean()
.public NumberProperty(String name, Bean bean, AbstractValidator<? super Number> validator)
name
- - see AbstractProperty.getName()
.bean
- - see AbstractProperty.getBean()
.validator
- - see AbstractValueProperty.validate()
.public NumberProperty(String name, Bean bean, Supplier<? extends Number> expression)
name
- - see AbstractProperty.getName()
.bean
- - see AbstractProperty.getBean()
.expression
- the Supplier
providing
the actual value
.protected final boolean doSetValue(Number newValue)
AbstractValueProperty
AbstractValueProperty.setValue(Object)
.doSetValue
in class AbstractValueProperty<Number>
newValue
- the new value
to set.true
if the value
has changed, false
otherwise.Copyright © 2001–2016 mmm-Team. All rights reserved.