From 54dc09812338b8222c0b9a988585bb570f0c1664 Mon Sep 17 00:00:00 2001 From: Biubiu <747441355@qq.com> Date: Wed, 15 Jan 2020 10:37:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8861f85..f32604d 100644 --- a/README.md +++ b/README.md @@ -205,18 +205,16 @@ public class MainController extends FXBaseController{ @FXML Label label; - + Student student; int count = 1; @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); //属性绑定 }