| | |
| | | import org.opends.guitools.controlpanel.datamodel.ConnectionHandlerDescriptor. |
| | | State; |
| | | import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent; |
| | | import org.opends.guitools.controlpanel.ui.StatusGenericPanel. |
| | | IgnoreItemListener; |
| | | import org.opends.guitools.controlpanel.ui.renderer.CustomListCellRenderer; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.opends.guitools.controlpanel.util.ViewPositions; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Message getTitle() |
| | | { |
| | | return INFO_CTRL_PANEL_CONNECTION_HANDLER_MONITORING_TITLE.get(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public JMenuBar getMenuBar() |
| | | { |
| | | if (menuBar == null) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Component getPreferredFocusComponent() |
| | | { |
| | | return connectionHandlers; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void okClicked() |
| | | { |
| | | // No ok button |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public GenericDialog.ButtonType getButtonType() |
| | | { |
| | | return GenericDialog.ButtonType.CLOSE; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean requiresBorder() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public boolean requiresScroll() |
| | | { |
| | | return false; |
| | |
| | | { |
| | | if (ch.getProtocol() != Protocol.LDIF) |
| | | { |
| | | cchs.add((ConnectionHandlerDescriptor)ch); |
| | | cchs.add(ch); |
| | | } |
| | | } |
| | | cchs.add(server.getAdminConnector()); |
| | |
| | | { |
| | | if (getConnectionHandlerLabel(ch).equals(name)) |
| | | { |
| | | cchs.add((ConnectionHandlerDescriptor)ch); |
| | | cchs.add(ch); |
| | | break; |
| | | } |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | protected void addMenus() |
| | | { |
| | | add(createViewMenuBar()); |
| | |
| | | * Creates the view menu bar. |
| | | * @return the view menu bar. |
| | | */ |
| | | @Override |
| | | protected JMenu createViewMenuBar() |
| | | { |
| | | JMenu menu = Utilities.createMenu( |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Component getListCellRendererComponent(JList list, Object value, |
| | | int index, boolean isSelected, boolean cellHasFocus) |
| | | { |