Java 类javafx.beans.property.adapter.JavaBeanIntegerPropertyBuilder 实例源码

项目:photo-flow    文件:PhotoFlowController.java   
/**
 * 
 * @param bean
 * @param property
 * @return {@link ReadOnlyFloatProperty}
 */
protected static ReadOnlyFloatProperty numberProperty(Object bean, String property) {
    try {
        // Convert to float property so we can divide and get decimals if required.
        return ReadOnlyFloatProperty.readOnlyFloatProperty(
            JavaBeanIntegerPropertyBuilder.create().bean(bean).name(property).build()
        );
    } catch (NoSuchMethodException e) {
        throw new IllegalStateException(e);
    }

}
项目:lawless-legends    文件:PropertyHelper.java   
public static JavaBeanIntegerProperty intProp(Object t, String fieldName) throws NoSuchMethodException {
    return new JavaBeanIntegerPropertyBuilder().bean(t).name(fieldName).build();
}
项目:cayenne-modeler    文件:CayennePropertyAdapter.java   
/**
 * Binds a Java/Bean String property to a JavaFX property. Note: The JavaFX
 * property observes changes and marks the Cayenne project dirty when a
 * change occurs.
 *
 * @param property
 *            The Java/Bean property to bind to.
 * @return A new JavaFX property bound to the Java/Bean property.
 * @throws NoSuchMethodException
 *             If the specified Java/Bean property does not exist (check the
 *             property's spelling).
 */
public IntegerProperty bindInteger(String property) throws NoSuchMethodException
{
    return observePropertyChanges(JavaBeanIntegerPropertyBuilder.create().bean(getWrappedObject()).name(property).build());
}
项目:CMP    文件:CayennePropertyAdapter.java   
/**
 * Binds a Java/Bean String property to a JavaFX property. Note: The JavaFX
 * property observes changes and marks the Cayenne project dirty when a
 * change occurs.
 *
 * @param property
 *            The Java/Bean property to bind to.
 * @return A new JavaFX property bound to the Java/Bean property.
 * @throws NoSuchMethodException
 *             If the specified Java/Bean property does not exist (check the
 *             property's spelling).
 */
public IntegerProperty bindInteger(String property) throws NoSuchMethodException
{
    return observePropertyChanges(JavaBeanIntegerPropertyBuilder.create().bean(getWrappedObject()).name(property).build());
}