cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgen...@apache.org
Subject [12/50] cayenne-modeler git commit: Updated DatabaseEntityAdapter to valid Property Adapter semantics.
Date Thu, 05 Jan 2017 22:09:20 GMT
Updated DatabaseEntityAdapter to valid Property Adapter semantics.


Project: http://git-wip-us.apache.org/repos/asf/cayenne-modeler/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne-modeler/commit/a6139a00
Tree: http://git-wip-us.apache.org/repos/asf/cayenne-modeler/tree/a6139a00
Diff: http://git-wip-us.apache.org/repos/asf/cayenne-modeler/diff/a6139a00

Branch: refs/heads/master
Commit: a6139a00814b78e919c899af26a0c0e8f6f10725
Parents: 885808f
Author: mrg <blacknext@gmail.com>
Authored: Mon Sep 26 09:03:44 2016 -0400
Committer: mrg <blacknext@gmail.com>
Committed: Mon Sep 26 09:03:44 2016 -0400

----------------------------------------------------------------------
 .../modeler/adapters/DatabaseEntityAdapter.java       | 14 ++++++--------
 .../modeler/project/DatabaseEntityTreeItem.java       |  2 +-
 2 files changed, 7 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-modeler/blob/a6139a00/src/main/java/org/apache/cayenne/modeler/adapters/DatabaseEntityAdapter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/cayenne/modeler/adapters/DatabaseEntityAdapter.java
b/src/main/java/org/apache/cayenne/modeler/adapters/DatabaseEntityAdapter.java
index 298e89a..3eaa5f7 100644
--- a/src/main/java/org/apache/cayenne/modeler/adapters/DatabaseEntityAdapter.java
+++ b/src/main/java/org/apache/cayenne/modeler/adapters/DatabaseEntityAdapter.java
@@ -69,13 +69,11 @@ public class DatabaseEntityAdapter extends CayennePropertyAdapter // implements
 //        this.dataMapAdapter = new BeanPathAdapter<DataMap>(dataMap);
     }
 
-    public StringProperty getNameProperty()
-    {
-        return nameProperty;
-    }
+    public StringProperty nameProperty() { return nameProperty; }
+    public String getName() { return nameProperty.get(); }
+    public void setName(final String value) { nameProperty.set(value); }
 
-    public StringProperty getLocationProperty()
-    {
-        return locationProperty;
-    }
+    public StringProperty locationProperty() { return locationProperty; }
+    public String getLocationProperty() { return locationProperty.get(); }
+    public void setLocationProperty(final String value) { locationProperty.set(value); }
 }

http://git-wip-us.apache.org/repos/asf/cayenne-modeler/blob/a6139a00/src/main/java/org/apache/cayenne/modeler/project/DatabaseEntityTreeItem.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/cayenne/modeler/project/DatabaseEntityTreeItem.java
b/src/main/java/org/apache/cayenne/modeler/project/DatabaseEntityTreeItem.java
index 34d5ca1..c957b71 100644
--- a/src/main/java/org/apache/cayenne/modeler/project/DatabaseEntityTreeItem.java
+++ b/src/main/java/org/apache/cayenne/modeler/project/DatabaseEntityTreeItem.java
@@ -33,7 +33,7 @@ public class DatabaseEntityTreeItem extends TreeItem<String> implements
CayenneT
     {
         this.databaseEntityAdapter = databaseEntityAdapter;
 
-        valueProperty().bindBidirectional(databaseEntityAdapter.getNameProperty());
+        valueProperty().bindBidirectional(databaseEntityAdapter.nameProperty());
         setGraphic(GlyphsDude.createIcon(FontAwesomeIcon.TABLE, TREE_ICON_SIZE));
         parent.getChildren().add(this);
         setExpanded(true);


Mime
View raw message