diff options
Diffstat (limited to 'projects/net.wotonomy.test/src/main/java/net/wotonomy/test/BindingController.java')
| -rw-r--r-- | projects/net.wotonomy.test/src/main/java/net/wotonomy/test/BindingController.java | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/BindingController.java b/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/BindingController.java index be83eb4..c7f9c9b 100644 --- a/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/BindingController.java +++ b/projects/net.wotonomy.test/src/main/java/net/wotonomy/test/BindingController.java @@ -9,27 +9,25 @@ import net.wotonomy.ui.swing.TreeAssociation; import net.wotonomy.ui.swing.util.WindowUtilities; /** -* A simple editor panel with a few textfields. -*/ -public class BindingController -{ - public BindingController( EODisplayGroup titlesGroup, EODisplayGroup childGroup ) - { + * A simple editor panel with a few textfields. + */ +public class BindingController { + public BindingController(EODisplayGroup titlesGroup, EODisplayGroup childGroup) { BindingPanel bindingPanel = new BindingPanel(); - + EOAssociation ta; - ta = new TreeAssociation( bindingPanel.treeChooser, "People" ); - ta.bindAspect( EOAssociation.TitlesAspect, titlesGroup, "lastName" ); - ta.bindAspect( EOAssociation.ChildrenAspect, childGroup, "children" ); - ta.bindAspect( EOAssociation.IsLeafAspect, titlesGroup, "childCount" ); + ta = new TreeAssociation(bindingPanel.treeChooser, "People"); + ta.bindAspect(EOAssociation.TitlesAspect, titlesGroup, "lastName"); + ta.bindAspect(EOAssociation.ChildrenAspect, childGroup, "children"); + ta.bindAspect(EOAssociation.IsLeafAspect, titlesGroup, "childCount"); ta.establishConnection(); - + JDialog d = new JDialog(); - d.getContentPane().add( bindingPanel ); - d.setTitle( "Chooser Panel" ); + d.getContentPane().add(bindingPanel); + d.setTitle("Chooser Panel"); d.pack(); - WindowUtilities.cascade( d ); + WindowUtilities.cascade(d); d.show(); } - + } |
