org.shetline.gui
Class PopupNavigator
java.lang.Object
  
org.shetline.gui.PopupNavigator
- All Implemented Interfaces: 
 - EventListener, PopupMenuListener
 
public class PopupNavigator
- extends Object
- implements PopupMenuListener
  
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
acceptViaTab
protected boolean acceptViaTab
keysBound
protected boolean keysBound
needsToUnpop
protected boolean needsToUnpop
popup
protected JPopupMenu popup
popupUser
protected JComponent popupUser
readyToPop
protected boolean readyToPop
unpopTime
protected long unpopTime
REPOP_DELAY
protected static final long REPOP_DELAY
- See Also:
 - Constant Field Values
 
DISTANT_FUTURE
protected static final long DISTANT_FUTURE
- See Also:
 - Constant Field Values
 
ESCAPE_KEY
protected static final KeyStroke ESCAPE_KEY
UP_KEY
protected static final KeyStroke UP_KEY
DOWN_KEY
protected static final KeyStroke DOWN_KEY
ENTER_KEY
protected static final KeyStroke ENTER_KEY
TAB_KEY
protected static final KeyStroke TAB_KEY
PopupNavigator
public PopupNavigator(JComponent popupUser,
                      JPopupMenu popup)
PopupNavigator
public PopupNavigator(JComponent popupUser,
                      JPopupMenu popup,
                      boolean acceptViaTab)
bindNavigationKeys
public void bindNavigationKeys()
 
 
unbindNavigationKeys
public void unbindNavigationKeys()
 
 
togglePopup
public void togglePopup(int x,
                        int y)
 
 
getSelectedIndex
protected int getSelectedIndex()
 
 
setSelectedIndex
public void setSelectedIndex(int index)
 
 
isEnabled
protected boolean isEnabled(int index)
 
 
acceptSelection
protected void acceptSelection()
 
 
moveSelection
protected void moveSelection(int delta)
 
 
popupMenuCanceled
public void popupMenuCanceled(PopupMenuEvent event)
- Specified by:
 popupMenuCanceled in interface PopupMenuListener
 
 
popupMenuWillBecomeInvisible
public void popupMenuWillBecomeInvisible(PopupMenuEvent event)
- Specified by:
 popupMenuWillBecomeInvisible in interface PopupMenuListener
 
 
popupMenuWillBecomeVisible
public void popupMenuWillBecomeVisible(PopupMenuEvent event)
- Specified by:
 popupMenuWillBecomeVisible in interface PopupMenuListener
 
 
showPopupMenuWithinScreenBounds
public static void showPopupMenuWithinScreenBounds(JPopupMenu menu,
                                                   Component invoker,
                                                   int x,
                                                   int y)