public abstract class StyleableIntegerProperty extends IntegerPropertyBase implements StyleableProperty<Number>
IntegerPropertyBase and provides a partial
implementation of a StyleableProperty. The method
StyleableProperty.getCssMetaData() is not implemented.
This class is used to make a IntegerProperty,
that would otherwise be implemented as a IntegerPropertyBase,
style‑able by CSS.IntegerPropertyBase,
CssMetaData,
StyleableProperty| Constructor and Description |
|---|
StyleableIntegerProperty()
The constructor of the
StyleableIntegerProperty. |
StyleableIntegerProperty(int initialValue)
The constructor of the
StyleableIntegerProperty. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyStyle(StyleOrigin origin,
Number v)
This method is called from CSS code to set the value of the property.
|
void |
bind(ObservableValue<? extends Number> observable)
Create a unidirection binding for this
Property. |
StyleOrigin |
getStyleOrigin()
Tells the origin of the value of the property.
|
void |
set(int v)
Set the wrapped value.
|
addListener, addListener, fireValueChangedEvent, get, invalidated, isBound, removeListener, removeListener, toString, unbindasObject, bindBidirectional, integerProperty, setValue, unbindBidirectionalreadOnlyIntegerPropertyadd, add, add, add, divide, divide, divide, divide, doubleValue, floatValue, getValue, integerExpression, integerExpression, intValue, longValue, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtractadd, asString, asString, asString, divide, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, 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, multiply, numberExpression, subtractclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCssMetaDatagetValue, setValuegetBean, getNamegetValuepublic StyleableIntegerProperty()
StyleableIntegerProperty.public StyleableIntegerProperty(int initialValue)
StyleableIntegerProperty.initialValue - the initial value of the wrapped Objectpublic void applyStyle(StyleOrigin origin, Number v)
applyStyle in interface StyleableProperty<Number>public void bind(ObservableValue<? extends Number> observable)
Property.
Note that JavaFX has all the bind calls implemented through weak listeners. This means the bound property can be garbage collected and stopped from being updated.
bind in interface Property<Number>bind in class IntegerPropertyBaseobservable - The observable this Property should be bound to.public void set(int v)
WritableIntegerValue.setValue(java.lang.Number),
this method uses primitive int.set in interface WritableIntegerValueset in class IntegerPropertyBasev - The new valuepublic StyleOrigin getStyleOrigin()
getStyleOrigin in interface StyleableProperty<Number>Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.