use of org.apache.cayenne.swing.BindingBuilder in project cayenne by apache.
the class TemplatePreferences method initBindings.
protected void initBindings() {
BindingBuilder builder = new BindingBuilder(getApplication().getBindingFactory(), this);
builder.bindToAction(view.getAddButton(), "addTemplateAction()");
builder.bindToAction(view.getRemoveButton(), "removeTemplateAction()");
TableBindingBuilder tableBuilder = new TableBindingBuilder(builder);
tableBuilder.addColumn("Name", "#item.key", String.class, false, "XXXXXXXXXXXXXXX");
tableBuilder.addColumn("Path", "#item.path", String.class, false, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
tableBuilder.bindToTable(view.getTable(), "templateEntries").updateView();
}
Aggregations