Spec-Zone .ru
спецификации, руководства, описания, API
|
public final class ReadOnlyJavaBeanLongProperty extends ReadOnlyLongPropertyBase implements ReadOnlyJavaBeanProperty<java.lang.Number>
ReadOnlyJavaBeanLongProperty
provides an adapter between a regular
read only Java Bean property of type long
or Long
and a JavaFX
ReadOnlyLongProperty
. It cannot be created directly, but a
ReadOnlyJavaBeanLongPropertyBuilder
has to be used.
As a minimum, the Java Bean must implement a getter for the
property. If the getter of an instance of this class is called, the property of
the Java Bean is returned. If the Java Bean property is bound (i.e. it supports
PropertyChangeListeners), this ReadOnlyJavaBeanLongProperty
will be
aware of changes in the Java Bean. Otherwise it can be notified about
changes by calling fireValueChangedEvent()
.
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Signals to the JavaFX property that it will not be used anymore and any
references can be removed.
|
protected void |
finalize() |
void |
fireValueChangedEvent()
Sends notifications to all attached
InvalidationListeners and
ChangeListeners . |
long |
get()
Returns the current value of this
ObservableLongValue . |
java.lang.Object |
getBean()
Returns the
Object that contains this property. |
java.lang.String |
getName()
Returns the name of this property.
|
addListener, addListener, removeListener, removeListener
equals, hashCode, toString
add, add, add, add, divide, divide, divide, divide, doubleValue, floatValue, getValue, intValue, longExpression, longValue, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract
add, 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, subtract
addListener, getValue, removeListener
addListener, removeListener
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public long get()
ObservableLongValue
.get
in interface ObservableLongValue
java.lang.reflect.UndeclaredThrowableException
- if calling the getter of the Java Bean
property throws an IllegalAccessException
or an
InvocationTargetException
.public java.lang.Object getBean()
Object
that contains this property. If this property
is not contained in an Object
, null
is returned.getBean
in interface ReadOnlyProperty<java.lang.Number>
Object
or null
public java.lang.String getName()
String
.getName
in interface ReadOnlyProperty<java.lang.Number>
String
public void fireValueChangedEvent()
InvalidationListeners
and
ChangeListeners
.
This method needs to be called, if the value of this property changes.fireValueChangedEvent
in interface ReadOnlyJavaBeanProperty<java.lang.Number>
fireValueChangedEvent
in class ReadOnlyLongPropertyBase
public void dispose()
dispose
in interface ReadOnlyJavaBeanProperty<java.lang.Number>
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to