org.sourcejammer.client.gui.listener
Class PopupListener

java.lang.Object
  |
  +--java.awt.event.MouseAdapter
        |
        +--org.sourcejammer.client.gui.listener.PopupListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener
Direct Known Subclasses:
FilePopupListener

public class PopupListener
extends java.awt.event.MouseAdapter

Title: $FileName: PopupListener.java$

Version:
$VerNum: 5$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $

Field Summary
private  boolean mbFireMousePressOnPopup
           
private  java.awt.Component mComponent
           
private  javax.swing.JPopupMenu mMenu
           
 
Constructor Summary
PopupListener()
           
PopupListener(javax.swing.JPopupMenu menu, java.awt.Component component)
           
PopupListener(javax.swing.JPopupMenu menu, java.awt.Component component, boolean fireMousePressOnPopup)
           
 
Method Summary
 java.awt.Component getComponent()
          Returns the Component.
 javax.swing.JPopupMenu getMenu()
          Returns the Menu.
 boolean isFireMousePressOnPopup()
          Returns the mbFireMousePressOnPopup.
static void main(java.lang.String[] args)
           
 void mouseClicked(java.awt.event.MouseEvent ev)
           
 void mousePressed(java.awt.event.MouseEvent ev)
           
 void mouseReleased(java.awt.event.MouseEvent ev)
           
 void setComponent(java.awt.Component component)
          Sets the mjComponent.
 void setFireMousePressOnPopup(boolean fireMousePressOnPopup)
          Sets the FireMousePressOnPopup.
 void setMenu(javax.swing.JPopupMenu menu)
          Sets the Menu.
protected  void showPopup(java.awt.event.MouseEvent ev)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mMenu

private javax.swing.JPopupMenu mMenu

mComponent

private java.awt.Component mComponent

mbFireMousePressOnPopup

private boolean mbFireMousePressOnPopup
Constructor Detail

PopupListener

public PopupListener()

PopupListener

public PopupListener(javax.swing.JPopupMenu menu,
                     java.awt.Component component)

PopupListener

public PopupListener(javax.swing.JPopupMenu menu,
                     java.awt.Component component,
                     boolean fireMousePressOnPopup)
Method Detail

mousePressed

public void mousePressed(java.awt.event.MouseEvent ev)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed in class java.awt.event.MouseAdapter

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent ev)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent ev)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class java.awt.event.MouseAdapter

showPopup

protected void showPopup(java.awt.event.MouseEvent ev)

main

public static void main(java.lang.String[] args)

isFireMousePressOnPopup

public boolean isFireMousePressOnPopup()
Returns the mbFireMousePressOnPopup.

Returns:
boolean

getComponent

public java.awt.Component getComponent()
Returns the Component.

Returns:
Component

getMenu

public javax.swing.JPopupMenu getMenu()
Returns the Menu.

Returns:
JPopupMenu

setFireMousePressOnPopup

public void setFireMousePressOnPopup(boolean fireMousePressOnPopup)
Sets the FireMousePressOnPopup.

Parameters:
fireMousePressOnPopup - The mbFireMousePressOnPopup to set

setComponent

public void setComponent(java.awt.Component component)
Sets the mjComponent.


setMenu

public void setMenu(javax.swing.JPopupMenu menu)
Sets the Menu.

Parameters:
menu - The menu to set


Copyright 2003 Soucejammer project.