@Override
public void decorate(UiCanvas canvas) {
JLabel label = createLabel();
BoxBuilder row = BoxBuilder.horizontal();
row.addAll(label, field);
row.decorate(canvas);
}
private JLabel createLabel() {
JLabel label = KongaLabel.withMnemonic("&Filter: ");
label.setLabelFor(field);