|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseAdapter
org.crosswire.common.swing.desktop.TabPopupListener
public class TabPopupListener
A mouse listener for a tabbed pane that can display a popup menu.
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
Field Summary | |
---|---|
private JPopupMenu |
popup
The popup for the tabs |
private JTabbedPane |
tabs
The tabs for which the popup applies |
Constructor Summary | |
---|---|
TabPopupListener(JTabbedPane tabbedPane,
JPopupMenu popupMenu)
Create a listener to mouse events on a JTabbedPane and show a popup if requested. |
Method Summary | |
---|---|
private void |
doPopup(MouseEvent e)
Popup if the mouse event indicates it should be shown |
void |
mouseClicked(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
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 |
---|
private JTabbedPane tabs
private JPopupMenu popup
Constructor Detail |
---|
public TabPopupListener(JTabbedPane tabbedPane, JPopupMenu popupMenu)
tabbedPane
- The tab pane on which to listen for popup eventspopupMenu
- the popup to displayMethod Detail |
---|
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class MouseAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
private void doPopup(MouseEvent e)
e
-
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |