UiProvider p = layoutGrid();
new BorderLayoutBuilder().north(p).decorate(canvas);
}
private NColumnPanel layoutGrid() {
NColumnPanel p = new NColumnPanel(4, Anchor.EAST);
p.setFills(Fill.NONE, Fill.NONE, Fill.HORIZONTAL);
p.setWeights(0, 0.0, 0.0);
p.setWeights(1, 0.0, 0.0);
p.setWeights(2, 1.0, 0.0);
p.setWeights(3, 0.0, 0.0);
p.setInsets(0, 0, 10, 5);
for (Map.Entry<JCheckBox, PropertySearchField> e : fields.entrySet()) {
PropertySearchField f = e.getValue();
JButton replaceButton = null;
ReplaceAction replaceAction = replaceActions.get(f);
if (replaceAction != null) {
replaceButton = new KongaButton(replaceAction);
}
p.addRow(f.getProperty().getName(), e.getKey(), f, replaceButton);
}
return p;
}