charvax.swing
public class JPopupMenu extends JFrame
Modifier and Type | Field and Description |
---|---|
protected boolean |
_leftWasPressed |
protected boolean |
_rightWasPressed |
protected boolean |
_wasCancelled |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
JPopupMenu(java.util.Vector items_)
Constructs a JPopupMenu that contains the specified items.
|
Modifier and Type | Method and Description |
---|---|
int |
getComponentIndex(Component c) |
JMenuItem |
getFirstMenuItem() |
Component |
getInvoker()
Returns the component that invoked this popup menu.
|
JMenuItem |
getMenuItem(int index_)
Returns the menu item at the specified index.
|
void |
processKeyEvent(KeyEvent e)
Invoke all the KeyListener callbacks that may have been registered
for this component.
|
void |
setInvoker(Component invoker_)
Sets the "invoker" of this popup menu; must be a JMenuBar
or another JPopupMenu.
|
java.lang.String |
toString() |
boolean |
wasCancelled() |
getContentPane, minimumSize, setBackground, setDefaultCloseOperation, setForeground, setJMenuBar
addWindowListener, adjustLocation, debug, getLocationOnScreen, getOwner, hide, isDisplayed, isFocusTraversable, pack, processEvent, processWindowEvent, run, show
add, add, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getInsets, getSize, getWidth, invalidate, isValid, nextFocus, previousFocus, remove, requestFocus, setBounds, setBounds, setBounds, setFocus, setHeight, setLayout, setSize, setSize, setWidth, validate
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getName, getParent, hasFocus, isEnabled, isRecursivelyVisible, isTotallyObscured, isVisible, processFocusEvent, processMouseEvent, repaint, requestSync, setEnabled, setLocation, setLocation, setName, setParent, setVisible, validateCursesColor
protected boolean _wasCancelled
protected boolean _leftWasPressed
protected boolean _rightWasPressed
public JPopupMenu(java.util.Vector items_)
public void setInvoker(Component invoker_)
public Component getInvoker()
public JMenuItem getMenuItem(int index_)
public JMenuItem getFirstMenuItem()
public int getComponentIndex(Component c)
public void processKeyEvent(KeyEvent e)
Component
processKeyEvent
in class Container
public boolean wasCancelled()
public java.lang.String toString()
toString
in class java.lang.Object