/** * Adds an item to a drop down button * * @param dropDownName name used for internal map * @param item item to add to drop down */ protected void addDropDownButtonItem(String dropDownName, DropDownButton.DropDownItem item) { final DropDownButton button = dropDownButtonMap.get(dropDownName); if (button != null && item != null) { button.addItem(item); } }