state = aToolBar.getItem(button_id).getState(); aToolBar.getItem(button_id).value).setState(new_state);