| java.lang.Object java.awt.PopupBox java.awt.ChoicePopupBox
ChoicePopupBox | class ChoicePopupBox extends PopupBox (Code) | | Helper class: popup window containing list of
Choice items, implements popup and scrolling list behavior
of Choice component
|
Inner Class :class ChoiceScrollable implements Scrollable | |
Method Summary | |
Rectangle | calcBounds() | int | calcY(int y, int height, int screenHeight) | void | changeSelection(int incr) | boolean | closeOnUngrab(Point start, Point end) | void | dragScroll(int y) | Rectangle | getBounds() | Rectangle | getItemBounds(int pos) | public int | getWidth() | void | hide() | void | makeFirst(int idx) | void | onKeyEvent(int eventId, int vKey, long when, int modifiers) | void | onMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers, int wheelRotation) | void | paint(Graphics g) | void | repaint(Rectangle r) | void | repaint() | void | show() |
MAX_SKIP | final static int MAX_SKIP(Code) | | how many ticks to skip when scroll speed is minimum
|
PAGE_SIZE | final static int PAGE_SIZE(Code) | | how many items to scroll on PgUp/PgDn
|
focusedItem | int focusedItem(Code) | | |
scrollController | ScrollStateController scrollController(Code) | | |
scrollable | Scrollable scrollable(Code) | | |
scrollbarController | ScrollbarStateController scrollbarController(Code) | | |
selectedItem | int selectedItem(Code) | | |
calcBounds | Rectangle calcBounds()(Code) | | Calculates popup window screen bounds
using choice style and location on screen
list popup window bounds in screen coordinates |
calcY | int calcY(int y, int height, int screenHeight)(Code) | | Places list popup window below or above Choice component
Parameters: y - Choice component screen y-coordinate Parameters: height - list height Parameters: screenHeight - height of entire screen y screen coordinate of list popup window |
changeSelection | void changeSelection(int incr)(Code) | | Moves selection incr items up/down from current selected
item, scrolls list to the new selected item
|
dragScroll | void dragScroll(int y)(Code) | | Scrolls list to specified y position
|
getItemBounds | Rectangle getItemBounds(int pos)(Code) | | Gets item bounds inside popup list
Parameters: pos - item index item bounds rectangle relative topopup list window origin |
getWidth | public int getWidth()(Code) | | |
makeFirst | void makeFirst(int idx)(Code) | | Scrolls list to make item the first visible item
Parameters: idx - index of item to scroll to(make visible) |
onKeyEvent | void onKeyEvent(int eventId, int vKey, long when, int modifiers)(Code) | | |
onMouseEvent | void onMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers, int wheelRotation)(Code) | | Handles all mouse events on popup window
|
paint | void paint(Graphics g)(Code) | | Paints popup list and vertical scrollbar(if necessary)
|
Methods inherited from java.awt.PopupBox | void addNotify()(Code)(Java Doc) Rectangle calculateBounds()(Code)(Java Doc) boolean closeOnUngrab(Point start, Point end)(Code)(Java Doc) boolean contains(Point p)(Code)(Java Doc) final void dispatchKeyEvent(int eventId, int vKey, long when, int modifiers)(Code)(Java Doc) final PopupBox getActiveChild()(Code)(Java Doc) Graphics getGraphics(MultiRectArea clip)(Code)(Java Doc) int getHeight()(Code)(Java Doc) Point getLocation()(Code)(Java Doc) final NativeWindow getNativeWindow()(Code)(Java Doc) Window getOwner()(Code)(Java Doc) PopupBox getParent()(Code)(Java Doc) Point getScreenLocation()(Code)(Java Doc) Dimension getSize()(Code)(Java Doc) void hide()(Code)(Java Doc) boolean isMenu()(Code)(Java Doc) boolean isMenuBar()(Code)(Java Doc) final boolean isModal()(Code)(Java Doc) final boolean isVisible()(Code)(Java Doc) abstract void onKeyEvent(int eventId, int vKey, long when, int modifiers)(Code)(Java Doc) abstract void onMouseEvent(int eventId, Point where, int mouseButton, long when, int modifiers, int wheelRotation)(Code)(Java Doc) void paint(MultiRectArea clipArea)(Code)(Java Doc) abstract void paint(Graphics gr)(Code)(Java Doc) void removeNotify()(Code)(Java Doc) void setDefaultCursor()(Code)(Java Doc) final void setModal(boolean modal)(Code)(Java Doc) void setParent(PopupBox p)(Code)(Java Doc) void show(Frame owner)(Code)(Java Doc) void show(Point location, Dimension size, Window owner)(Code)(Java Doc)
|
|
|