/** * * @param bean * @param propertyName * @return {@link BooleanProperty} */ protected BooleanProperty booleanProperty(Object bean, String propertyName) { try { return JavaBeanBooleanPropertyBuilder.create().bean(bean).name(propertyName).build(); } catch (NoSuchMethodException e) { throw new IllegalStateException(e); } }
public static JavaBeanBooleanProperty boolProp(Object t, String fieldName) throws NoSuchMethodException { return new JavaBeanBooleanPropertyBuilder().bean(t).name(fieldName).build(); }
/** * 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 BooleanProperty bindBoolean(String property) throws NoSuchMethodException { return observePropertyChanges(JavaBeanBooleanPropertyBuilder.create().bean(getWrappedObject()).name(property).build()); }