| | |
| | | class StatusPanel extends StatusGenericPanel |
| | | { |
| | | private static final long serialVersionUID = -6493442314639004717L; |
| | | // The place holder where we display errors. |
| | | /** The place holder where we display errors. */ |
| | | private JEditorPane serverStatus; |
| | | private SelectableLabelWithHelpIcon currentConnections; |
| | | private JEditorPane hostName; |
| | |
| | | inScrollPanel.add(Box.createVerticalGlue(), gbc); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public Component getPreferredFocusComponent() |
| | | { |
| | | if (startButton.isVisible()) |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public boolean requiresBorder() |
| | | { |
| | | return false; |
| | |
| | | Utilities.updateTableSizes(connectionHandlersTable); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public LocalizableMessage getTitle() |
| | | { |
| | | return INFO_CTRL_PANEL_STATUS_PANEL_TITLE.get(); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void configurationChanged(final ConfigurationChangeEvent ev) |
| | | { |
| | | if (SwingUtilities.isEventDispatchThread()) |
| | |
| | | { |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void run() |
| | | { |
| | | updateContents(ev.getNewDescriptor()); |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void okClicked() |
| | | { |
| | | } |
| | |
| | | stopButton.setOpaque(false); |
| | | stopButton.addActionListener(new ActionListener() |
| | | { |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | stopServer(); |
| | |
| | | statusPanel.add(startButton, gbc); |
| | | startButton.addActionListener(new ActionListener() |
| | | { |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | startServer(); |
| | |
| | | restartButton.setOpaque(false); |
| | | restartButton.addActionListener(new ActionListener() |
| | | { |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void actionPerformed(ActionEvent ev) |
| | | { |
| | | restartServer(); |