Search in sources :

Example 1 with ImageRendererColumn

use of org.apache.cayenne.swing.ImageRendererColumn in project cayenne by apache.

the class ClassesTabController method initBindings.

protected void initBindings() {
    BindingBuilder builder = new BindingBuilder(getApplication().getBindingFactory(), this);
    builder.bindToAction(view.getCheckAll(), "checkAllAction()");
    TableBindingBuilder tableBuilder = new TableBindingBuilder(builder);
    tableBuilder.addColumn("", "parent.setCurrentClass(#item), selected", Boolean.class, true, Boolean.TRUE);
    tableBuilder.addColumn("Class", "parent.getItemName(#item)", JLabel.class, false, "XXXXXXXXXXXXXX");
    tableBuilder.addColumn("Comments, Warnings", "parent.getProblem(#item)", String.class, false, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    this.tableBinding = tableBuilder.bindToTable(view.getTable(), "parent.classes");
    view.getTable().getColumnModel().getColumn(1).setCellRenderer(new ImageRendererColumn());
}
Also used : BindingBuilder(org.apache.cayenne.swing.BindingBuilder) TableBindingBuilder(org.apache.cayenne.swing.TableBindingBuilder) TableBindingBuilder(org.apache.cayenne.swing.TableBindingBuilder) ImageRendererColumn(org.apache.cayenne.swing.ImageRendererColumn)

Aggregations

BindingBuilder (org.apache.cayenne.swing.BindingBuilder)1 ImageRendererColumn (org.apache.cayenne.swing.ImageRendererColumn)1 TableBindingBuilder (org.apache.cayenne.swing.TableBindingBuilder)1