1 56 package org.objectstyle.cayenne.modeler.editor.datanode; 57 58 import java.awt.Component ; 59 60 import org.objectstyle.cayenne.modeler.ProjectController; 61 import org.objectstyle.cayenne.swing.BindingBuilder; 62 import org.objectstyle.cayenne.swing.BindingDelegate; 63 import org.objectstyle.cayenne.swing.ObjectBinding; 64 65 68 public class JNDIDataSourceEditor extends DataSourceEditor { 69 70 protected JNDIDataSourceView view; 71 72 public JNDIDataSourceEditor(ProjectController parent, 73 BindingDelegate nodeChangeProcessor) { 74 super(parent, nodeChangeProcessor); 75 } 76 77 public Component getView() { 78 return view; 79 } 80 81 protected void prepareBindings(BindingBuilder builder) { 82 this.view = new JNDIDataSourceView(); 83 84 fieldAdapters = new ObjectBinding[1]; 85 fieldAdapters[0] = builder.bindToTextField( 86 view.getJndiPath(), 87 "node.dataSourceLocation"); 88 } 89 } | Popular Tags |