image.setTooltiptext(node.getType());
return new View(node.getType(), image);
}
public static View asCheckbox(boolean state, final ActionListener action) {
final Checkbox checkbox = new Checkbox();
checkbox.setChecked(state);
checkbox.addCheckListener(action);
return new View(state ? I18N.get("Yes") : I18N.get("No"), checkbox);
}