| | |
| | | import javax.swing.ButtonGroup; |
| | | import javax.swing.JPanel; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.opends.guitools.controlpanel.datamodel.Action; |
| | | import org.opends.guitools.controlpanel.datamodel.Category; |
| | | import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent; |
| | | import org.opends.guitools.controlpanel.ui.components.ActionButton; |
| | | import org.opends.guitools.controlpanel.ui.components.CategoryPanel; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | |
| | | /** |
| | | * The panel on the left side of the main Control Center dialog. It contains |
| | |
| | | classes.add(WindowsServicePanel.class); |
| | | } |
| | | int classIndex = 0; |
| | | for (int i=0; i<labels.length; i++) |
| | | for (LocalizableMessage[] label : labels) |
| | | { |
| | | Category category = new Category(); |
| | | category.setName(labels[i][0]); |
| | | for (int j=1; j<labels[i].length; j++) |
| | | category.setName(label[0]); |
| | | for (int j = 1; j < label.length; j++) |
| | | { |
| | | Action action = new Action(); |
| | | action.setName(labels[i][j]); |
| | | action.setName(label[j]); |
| | | action.setAssociatedPanel(classes.get(classIndex)); |
| | | classIndex ++; |
| | | |
| | | category.getActions().add(action); |
| | | |
| | | } |
| | | categories.add(category); |
| | | } |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void configurationChanged(ConfigurationChangeEvent ev) |
| | | { |