| java.lang.Object java.awt.PopupBox
All known Subclasses: java.awt.ChoicePopupBox,
PopupBox | abstract class PopupBox (Code) | | Non-component window for displaying menus and drop-down lists
|
Method Summary | |
void | addNotify() | Rectangle | calculateBounds() | boolean | closeOnUngrab(Point start, Point end) | boolean | contains(Point p) | final void | dispatchKeyEvent(int eventId, int vKey, long when, int modifiers) | final PopupBox | getActiveChild() | Graphics | getGraphics(MultiRectArea clip) | int | getHeight() | Point | getLocation() | final NativeWindow | getNativeWindow() | Window | getOwner() | PopupBox | getParent() | Point | getScreenLocation() | Dimension | getSize() | void | hide() | boolean | isMenu() | boolean | isMenuBar() | final boolean | isModal() | final boolean | isVisible() | abstract void | onKeyEvent(int eventId, int vKey, long when, int modifiers) | abstract void | onMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers, int wheelRotation) | void | paint(MultiRectArea clipArea) | abstract void | paint(Graphics gr) | void | removeNotify() | void | setDefaultCursor() | final void | setModal(boolean modal) | void | setParent(PopupBox p) | void | show(Frame owner) | void | show(Point location, Dimension size, Window owner) |
nativeWindow | NativeWindow nativeWindow(Code) | | |
addNotify | void addNotify()(Code) | | |
closeOnUngrab | boolean closeOnUngrab(Point start, Point end)(Code) | | Determine if the pop-up box should be hidden if the mouse button was
pressed at the start position
and released at the end position
Parameters: start - - the location where mouse button was pressed Parameters: end - - the location where mouse button was released true if the pop-up box should be hidden; false otherwise |
dispatchKeyEvent | final void dispatchKeyEvent(int eventId, int vKey, long when, int modifiers)(Code) | | Pass the keyboard event to the topmost active pop-up box
Parameters: eventId - - one of the KeyEvent.KEY_* constants Parameters: vKey - - the key code Parameters: when - - event time Parameters: modifiers - - input event modifiers |
getHeight | int getHeight()(Code) | | |
getNativeWindow | final NativeWindow getNativeWindow()(Code) | | |
isMenuBar | boolean isMenuBar()(Code) | | |
isModal | final boolean isModal()(Code) | | |
isVisible | final boolean isVisible()(Code) | | |
onKeyEvent | abstract void onKeyEvent(int eventId, int vKey, long when, int modifiers)(Code) | | Keyboard events handler
Parameters: eventId - - one of the KeyEvent.KEY_* constants Parameters: vKey - - the key code Parameters: when - - event time Parameters: modifiers - - input event modifiers |
onMouseEvent | abstract void onMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers, int wheelRotation)(Code) | | Mouse events handler
Parameters: eventId - - one of the MouseEvent.MOUSE_* constants Parameters: where - - mouse location Parameters: mouseButton - - mouse button that was pressed or released Parameters: when - - event time Parameters: modifiers - - input event modifiers |
paint | void paint(MultiRectArea clipArea)(Code) | | |
removeNotify | void removeNotify()(Code) | | |
setDefaultCursor | void setDefaultCursor()(Code) | | |
setModal | final void setModal(boolean modal)(Code) | | |
|
|