net.sf.magicproject.tools
Class BringToFrontListener

java.lang.Object
  extended by net.sf.magicproject.tools.BringToFrontListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class BringToFrontListener
extends java.lang.Object
implements java.awt.event.ActionListener

Bring to front manager

Since:
0.84
Author:
Fabrice Daugan

Constructor Summary
BringToFrontListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 javax.swing.JComponent getBringToFrontComponent()
          Return the current bring to front component.
 boolean isBringToFront(javax.swing.JComponent component)
          Indicates the specified component is the bring to front one.
 void setBringToFrontComponent(javax.swing.JComponent component)
          Set the bring to front component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BringToFrontListener

public BringToFrontListener()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

setBringToFrontComponent

public void setBringToFrontComponent(javax.swing.JComponent component)
Set the bring to front component. This restore the previous bring to front component state, then bring this component to front. Bringing to front simply repaint a component.

Parameters:
component -

getBringToFrontComponent

public javax.swing.JComponent getBringToFrontComponent()
Return the current bring to front component. If none, retur null.

Returns:
the current bring to front component. If none, retur null.

isBringToFront

public boolean isBringToFront(javax.swing.JComponent component)
Indicates the specified component is the bring to front one.

Parameters:
component - the tested component.
Returns:
true if the specified component is the bring to front one.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.