net.sf.magicproject.zone
Class PopupManager

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

public final class PopupManager
extends java.lang.Object
implements java.awt.event.ActionListener

Since:
0.80
Author:
Fabrice Daugan

Field Summary
static javax.swing.JPopupMenu optionsMenu
          Popup menu allowing to change wallpaper, etc...
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
static void init()
          Initialize popup components.
 void mousePressed(java.awt.event.MouseEvent e, MZone zone)
          Is called when you click on the specified Zone.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optionsMenu

public static javax.swing.JPopupMenu optionsMenu
Popup menu allowing to change wallpaper, etc...

Method Detail

init

public static void init()
Initialize popup components.


actionPerformed

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

mousePressed

public void mousePressed(java.awt.event.MouseEvent e,
                         MZone zone)
Is called when you click on the specified Zone. If this is done the context menu button, a popup will be displayed.

Parameters:
e - is the mouse event
zone - is the zone associated to the popup that will appear.


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