| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014-2015 ForgeRock AS. |
| | | * Portions Copyright 2014-2016 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.ui; |
| | |
| | | /** |
| | | * The panel on the left side of the main Control Center dialog. It contains |
| | | * all the actions on the pane divided in categories. |
| | | * |
| | | */ |
| | | public class MainActionsPane extends StatusGenericPanel |
| | | { |
| | | private static final long serialVersionUID = 7616418700758530191L; |
| | | |
| | | /** |
| | | * Default constructor. |
| | | * |
| | | */ |
| | | /** Default constructor. */ |
| | | public MainActionsPane() |
| | | { |
| | | super(); |
| | |
| | | actions.add(b); |
| | | b.addActionListener(new ActionListener() |
| | | { |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | // Constructs the panels using reflection. |
| | |
| | | createActionButtonListeners(actions); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public Component getPreferredFocusComponent() |
| | | { |
| | | return null; |
| | |
| | | { |
| | | ActionListener actionListener = new ActionListener() |
| | | { |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | for (ActionButton button : actions) |
| | |
| | | |
| | | MouseAdapter mouseListener = new MouseAdapter() |
| | | { |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void mousePressed(MouseEvent ev) |
| | | { |
| | | for (ActionButton button : actions) |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void mouseReleased(MouseEvent ev) |
| | | { |
| | | for (ActionButton button : actions) |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void mouseExited(MouseEvent ev) |
| | | { |
| | | for (ActionButton button : actions) |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void mouseEntered(MouseEvent ev) |
| | | { |
| | | for (ActionButton button : actions) |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public LocalizableMessage getTitle() |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void configurationChanged(ConfigurationChangeEvent ev) |
| | | { |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void okClicked() |
| | | { |
| | | } |