@Test public void test() throws NoSuchFieldException, NoSuchMethodException, FormException { TestBean testBean = new TestBean(); Field field = TestBean.class.getDeclaredField("name"); PropertyMethodElement tested = new PropertyMethodElement(field); tested.setSource(testBean); Assert.assertEquals("1", tested.getValue()); tested.setValue("2"); Assert.assertEquals("2", testBean.name.getValue()); }
@Override public void setValue(WrappedType wrappedType) { getProperty().setValue(wrappedType); }
PropertyMethodElement extends ReadOnlyPropertyMethodElement<SourceType, WrappedType> implements PropertyElement<WrappedType> { @Override public void setValue(WrappedType wrappedType) { getProperty().setValue(wrappedType); } }
PropertyMethodElement extends ReadOnlyPropertyMethodElement<SourceType, WrappedType> implements PropertyElement<WrappedType> { @Override public void setValue(WrappedType wrappedType) { getProperty().setValue(wrappedType); } PropertyMethodElement(Field field); }
PropertyMethodElement extends ReadOnlyPropertyMethodElement<SourceType, WrappedType> implements PropertyElement<WrappedType> { @Override public void setValue(WrappedType wrappedType) { getProperty().setValue(wrappedType); } PropertyMethodElement(Field field); @Override void setValue(WrappedType wrappedType); void bind(ObservableValue<? extends WrappedType> observableValue); void unbind(); boolean isBound(); void bindBidirectional(Property<WrappedType> wrappedTypeProperty); void unbindBidirectional(Property<WrappedType> wrappedTypeProperty); }
PropertyMethodElement extends ReadOnlyPropertyMethodElement<SourceType, WrappedType> implements PropertyElement<WrappedType> { @Override public void setValue(WrappedType wrappedType) { getProperty().setValue(wrappedType); } PropertyMethodElement(Field field); @Override void setValue(WrappedType wrappedType); void bind(ObservableValue<? extends WrappedType> observableValue); void unbind(); boolean isBound(); void bindBidirectional(Property<WrappedType> wrappedTypeProperty); void unbindBidirectional(Property<WrappedType> wrappedTypeProperty);  }