Public Member Functions

com.cosylab.logging.TransparentGlassPane Class Reference

Inherits javax::swing::JComponent, and java::awt::event::MouseListener.

List of all members.

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)

Detailed Description

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.

Author:
acaproni

Constructor & Destructor Documentation

com.cosylab.logging.TransparentGlassPane.TransparentGlassPane ( Container  c  ) 

Member Function Documentation

void com.cosylab.logging.TransparentGlassPane.mouseClicked ( java.awt.event.MouseEvent  e  ) 
void com.cosylab.logging.TransparentGlassPane.mouseEntered ( java.awt.event.MouseEvent  e  ) 
void com.cosylab.logging.TransparentGlassPane.mouseExited ( java.awt.event.MouseEvent  e  ) 
void com.cosylab.logging.TransparentGlassPane.mousePressed ( java.awt.event.MouseEvent  e  ) 
void com.cosylab.logging.TransparentGlassPane.mouseReleased ( java.awt.event.MouseEvent  e  ) 
void com.cosylab.logging.TransparentGlassPane.paint ( Graphics  g  ) 

Paint the panel in a light gray.

void com.cosylab.logging.TransparentGlassPane.setEventComponent ( Component  comp  ) 

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.

Parameters:
comp the component to receive mouse events; if null the mouse events are forwarded to the components of the content pane

Referenced by com.cosylab.logging.LoggingClient.errorAcknowledged(), com.cosylab.logging.TransparentGlassPane.setVisible(), and com.cosylab.logging.LoggingClient.showErrorMessage().

void com.cosylab.logging.TransparentGlassPane.setVisible ( boolean  b,
Component  comp 
)

Show/hide the component

Parameters:
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 com.cosylab.logging.TransparentGlassPane.setEventComponent().

Referenced by com.cosylab.logging.LoggingClient.acsLogConnDisconnected(), com.cosylab.logging.LoggingClient.acsLogConnEstablished(), and com.cosylab.logging.LoggingClient.acsLogConnLost().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties