|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlapisx.swing.DelayedPopupMenu
A popup menu that appears only after the mouse is held down for a certain period of time.
| Constructor Summary | |
DelayedPopupMenu(Component frame,
Component trigger,
int delay)
Make a delayed popup menu. |
|
| Method Summary | |
Component |
getFrame()
Get the frame in which this menu will popup. |
Component |
getTrigger()
Get the component that triggers this menu. |
boolean |
isVisible()
Test whether menu is popped up. |
protected JPopupMenu |
makeMenu()
Callback that constructs the menu just before showing it. |
protected void |
showMenu(JPopupMenu menu)
Callback that shows the menu. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DelayedPopupMenu(Component frame,
Component trigger,
int delay)
frame - Component in which the popup menu will appear (see
JPopupMenu.show(java.awt.Component, int, int). This is often a JFrame.trigger - Component which should trigger the menu.delay - Delay before showing menu, in milliseconds.| Method Detail |
public boolean isVisible()
protected JPopupMenu makeMenu()
protected void showMenu(JPopupMenu menu)
menu - Menu about to be shownpublic Component getTrigger()
public Component getFrame()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||