

Public Member Functions | |
| TransparentGlassPane (Container c) | |
| void | paint (Graphics g) |
| void | mouseClicked (java.awt.event.MouseEvent e) |
| void | mouseEntered (java.awt.event.MouseEvent e) |
| void | mouseExited (java.awt.event.MouseEvent e) |
| void | mousePressed (java.awt.event.MouseEvent e) |
| void | mouseReleased (java.awt.event.MouseEvent e) |
| void | setVisible (boolean b, Component comp) |
| void | setEventComponent (Component comp) |
Private Member Functions | |
| void | redispatchMouseEvent (MouseEvent e, boolean repaint) |
Private Attributes | |
| final Container | contentPane |
| Component | mouseEvtComponent = null |
The semi-transparent GlassPane visible when jlog runs offline. The purpose of this panel is to color the windows with a light gray.
When the component is made visible, it is possible to set one and only one component of the content pane to receive mouse events. This is especially useful when showing an error panel that the user must explicitly acknowledge.
| com::cosylab::logging::TransparentGlassPane::TransparentGlassPane | ( | Container | c | ) | [inline] |
References contentPane.
| void com::cosylab::logging::TransparentGlassPane::mouseClicked | ( | java.awt.event.MouseEvent | e | ) | [inline] |
References redispatchMouseEvent().
| void com::cosylab::logging::TransparentGlassPane::mouseEntered | ( | java.awt.event.MouseEvent | e | ) | [inline] |
References redispatchMouseEvent().
| void com::cosylab::logging::TransparentGlassPane::mouseExited | ( | java.awt.event.MouseEvent | e | ) | [inline] |
References redispatchMouseEvent().
| void com::cosylab::logging::TransparentGlassPane::mousePressed | ( | java.awt.event.MouseEvent | e | ) | [inline] |
References redispatchMouseEvent().
| void com::cosylab::logging::TransparentGlassPane::mouseReleased | ( | java.awt.event.MouseEvent | e | ) | [inline] |
References redispatchMouseEvent().
| void com::cosylab::logging::TransparentGlassPane::paint | ( | Graphics | g | ) | [inline] |
Paint the panel in a light gray.
| void com::cosylab::logging::TransparentGlassPane::redispatchMouseEvent | ( | MouseEvent | e, | |
| boolean | repaint | |||
| ) | [inline, private] |
References contentPane, and mouseEvtComponent.
Referenced by mouseClicked(), mouseEntered(), mouseExited(), mousePressed(), and mouseReleased().
| void com::cosylab::logging::TransparentGlassPane::setEventComponent | ( | Component | comp | ) | [inline] |
Set the component to receive mouse events.
If a component is set, it is the only one receiving mouse events. This means that all the other componets of the content pane are disabled.
| comp | the component to receive mouse events; if null the mouse events are forwarded to the components of the content pane |
References mouseEvtComponent.
Referenced by com::cosylab::logging::LoggingClient::errorAcknowledged(), setVisible(), and com::cosylab::logging::LoggingClient::showErrorMessage().
| void com::cosylab::logging::TransparentGlassPane::setVisible | ( | boolean | b, | |
| Component | comp | |||
| ) | [inline] |
Show/hide the component
| b | if true make the glass pane visible | |
| comp | If not null, mouse events are forwarded only to the comp component; otherwise all the events are forwarded to the components of the content pane; |
References setEventComponent().
Referenced by com::cosylab::logging::LoggingClient::acsLogConnDisconnected(), com::cosylab::logging::LoggingClient::acsLogConnEstablished(), and com::cosylab::logging::LoggingClient::acsLogConnLost().
final Container com::cosylab::logging::TransparentGlassPane::contentPane [private] |
The content pane below this glass pane
Referenced by redispatchMouseEvent(), and TransparentGlassPane().
Component com::cosylab::logging::TransparentGlassPane::mouseEvtComponent = null [private] |
The component receiving mouse events.
Referenced by redispatchMouseEvent(), and setEventComponent().
1.6.2