alma::acs::logging::errorbrowser::TabComponent Class Reference

Inheritance diagram for alma::acs::logging::errorbrowser::TabComponent:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::logging::errorbrowser::TabComponent:
Collaboration graph
[legend]

List of all members.

Classes

class  TabButton

Public Member Functions

 TabComponent (final JTabbedPane pane)

Private Attributes

final JTabbedPane pane

Static Private Attributes

static final MouseListener buttonMouseListener

Detailed Description

The panel shows as title for the tabs of the error browser.

It is composed of a label and a button to close the tab

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::logging::errorbrowser::TabComponent::TabComponent ( final JTabbedPane  pane  )  [inline]

Constructor

Parameters:
pane The JTabbedPane having this component as title

Member Data Documentation

Initial value:
 new MouseAdapter() {
        @Override
        public void mouseEntered(MouseEvent e) {
            Component component = e.getComponent();
            if (component instanceof AbstractButton) {
                AbstractButton button = (AbstractButton) component;
                button.setBorderPainted(true);
            }
        }

        @Override
        public void mouseExited(MouseEvent e) {
            Component component = e.getComponent();
            if (component instanceof AbstractButton) {
                AbstractButton button = (AbstractButton) component;
                button.setBorderPainted(false);
            }
        }
    }

The listener for mouse events

Referenced by alma::acs::logging::errorbrowser::TabComponent::TabButton::TabButton().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2