DOM.setStyleAttribute(label.getElement(), "marginTop", "150px");
final CheckBox checkBox = new CheckBox("Disable Option 2");
checkBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
public void onValueChange(ValueChangeEvent<Boolean> event) {
MenuItemBase item = contextMenu.getMenu().getItem("Options.option2");
item.setEnabled(!event.getValue());
}
});
main.add(checkBox);