修改README

This commit is contained in:
Biubiu
2020-01-15 10:37:23 +08:00
parent 3147d9f9b7
commit 54dc098123

View File

@@ -212,11 +212,9 @@ public class MainController extends FXBaseController{
@Override
public void initialize() {
student = (Student) FXEntityFactory.getInstance().createJavaBeanProxy(Student.class); //工厂产生一个学生
student = (Student) FXEntityFactory.wrapFxBean(Student.class); //工厂产生一个学生
student.setName("Jack"); //设置学生姓名
FXEntityProxy fxEntityProxy = FXPlusContext.getProryByBeanObject(student); //获取学生代理
Property nameProperty = fxEntityProxy.getPropertyByFieldName("name"); //获取Bean对应的Property
//可以通过fxEntityProxy.getPropertyByFieldName("list"); 获得List的Property
Property nameProperty = FXPlusContext.getEntityPropertyByName(student, "name");
label.textProperty().bind(nameProperty); //属性绑定
}