ModePanel.getMode() returns the action command of the currently selected button. The action commands are "None", "Edit", and "Add".