| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | XChoicePeer.
Inner class for the unfurled Choice list Much, much more docs |
| Modifier and Type | Field and Description |
|---|---|
| private Component | |
| public static final int | |
| private XChoicePeerListener | |
| private boolean | |
| private int | |
| private boolean | |
| private boolean | |
| pack-priv static final Color | |
| private static final Insets | |
| private ListHelper | |
| public static final int | |
| private static final PlatformLogger | |
| private static final int | |
| private boolean | |
| public static final int | |
| public static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private boolean | |
| private XChoicePeer. | |
| private boolean | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(String item, int index)
Implements java. Adds an item with the string |
| public void | |
| public void | dispose()
Overrides sun. Implements java. Disposes all resources held by the component peer. |
| public void | focusGained(FocusEvent e)
Overrides sun. Called when component receives focus |
| public void | focusLost(FocusEvent e)
Overrides sun. Called when component loses focus |
| public Dimension | getMinimumSize()
Overrides sun. Implements java. Determines the minimum size of the component. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | |
| public boolean | handlesWheelScrolling()
Overrides sun. Implements java. Determines if the component handles wheel scrolling itself. |
| pack-priv void | |
| protected void | |
| public boolean | isFocusable()
Overrides sun. Implements java. Returns |
| private boolean | |
| public boolean | |
| public void | |
| public void | layout()
Overrides sun. Implements java. Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements. |
| public void | |
| public void | |
| public void | |
| protected void | |
| pack-priv void | |
| pack-priv void | postInit(XCreateWindowParams params)
Overrides sun. Called after window creation, descendants should override to initialize Window with class-specific values and perform post-initialization actions. |
| pack-priv void | preInit(XCreateWindowParams params)
Overrides sun. Called before window creation, descendants should override to initialize the data, initialize params. |
| pack-priv boolean | prePostEvent(final AWTEvent e)
Overrides sun. Returns true if the event has been handled and should not be posted to Java. |
| public void | remove(int index)
Implements java. Removes the item at index |
| public void | removeAll()
Implements java. Removes all items from the combo box list. |
| public void | |
| public void | |
| public void | |
| public void | setBackground(Color c)
Overrides sun. Implements java. Sets the background color of this component. |
| public void | setBounds(int x, int y, int width, int height, int op)
Overrides sun. Implements java. Sets the location or size or both of the component. |
| public void | |
| public void | setEnabled(boolean value)
Overrides sun. Implements java. Enables or disables a component. |
| public void | setFont(Font font)
Overrides sun. Implements java. Sets the font of this component. |
| public void | setForeground(Color c)
Overrides sun. Implements java. Sets the foreground color of this component. |
| public void | stateChangedICCCM(int oldState, int newState)
Implements sun.
|
| public void | stateChangedJava(int oldState, int newState)
Implements sun.
|
| pack-priv void |
| alignUnder | back to summary |
|---|---|
| private Component alignUnder | |
| BORDER_WIDTH | back to summary |
|---|---|
| public static final int BORDER_WIDTH | |
| choiceListener | back to summary |
|---|---|
| private XChoicePeerListener choiceListener | |
| dragging | back to summary |
|---|---|
| private boolean dragging | |
| dragStartIdx | back to summary |
|---|---|
| private int dragStartIdx | |
| drawSelectedItem | back to summary |
|---|---|
| private boolean drawSelectedItem | |
| firstPress | back to summary |
|---|---|
| private boolean firstPress | |
| focusColor | back to summary |
|---|---|
| pack-priv static final Color focusColor | |
| focusInsets | back to summary |
|---|---|
| private static final Insets focusInsets | |
| helper | back to summary |
|---|---|
| private ListHelper helper | |
| ITEM_MARGIN | back to summary |
|---|---|
| public static final int ITEM_MARGIN | |
| log | back to summary |
|---|---|
| private static final PlatformLogger log | |
| MAX_UNFURLED_ITEMS | back to summary |
|---|---|
| private static final int MAX_UNFURLED_ITEMS | |
| mouseInSB | back to summary |
|---|---|
| private boolean mouseInSB | |
| SCROLLBAR_WIDTH | back to summary |
|---|---|
| public static final int SCROLLBAR_WIDTH | |
| TEXT_SPACE | back to summary |
|---|---|
| public static final int TEXT_SPACE | |
| TEXT_XPAD | back to summary |
|---|---|
| pack-priv static final int TEXT_XPAD | |
| TEXT_YPAD | back to summary |
|---|---|
| pack-priv static final int TEXT_YPAD | |
| unfurled | back to summary |
|---|---|
| private boolean unfurled | |
| unfurledChoice | back to summary |
|---|---|
| private XChoicePeer. | |
| wasDragged | back to summary |
|---|---|
| private boolean wasDragged | |
| WIDGET_OFFSET | back to summary |
|---|---|
| pack-priv static final int WIDGET_OFFSET | |
| XChoicePeer | back to summary |
|---|---|
| pack-priv XChoicePeer(Choice target) | |
| add | back to summary |
|---|---|
| public void add(String item, int index) Implements java. Doc from java. Adds an item with the string
| |
| addXChoicePeerListener | back to summary |
|---|---|
| public void addXChoicePeerListener(XChoicePeerListener l) | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides sun. Implements java. Doc from java. Disposes all resources held by the component peer. This is called when the component has been disconnected from the component hierarchy and is about to be garbage collected.
| |
| focusGained | back to summary |
|---|---|
| public void focusGained(FocusEvent e) Overrides sun. Doc from sun. Called when component receives focus
| |
| focusLost | back to summary |
|---|---|
| public void focusLost(FocusEvent e) Overrides sun. Doc from sun. Called when component loses focus
| |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize() Overrides sun. Implements java. Doc from java. Determines the minimum size of the component.
| |
| handleJavaKeyEvent | back to summary |
|---|---|
| pack-priv void handleJavaKeyEvent(KeyEvent e) Overrides sun.
| |
| handleJavaMouseEvent | back to summary |
|---|---|
| pack-priv void handleJavaMouseEvent(MouseEvent e) Overrides sun.
| |
| handleJavaMouseWheelEvent | back to summary |
|---|---|
| pack-priv void handleJavaMouseWheelEvent(MouseWheelEvent e) Overrides sun.
| |
| handleMouseEventByChoice | back to summary |
|---|---|
| public boolean handleMouseEventByChoice(final MouseEvent me) | |
| handlesWheelScrolling | back to summary |
|---|---|
| public boolean handlesWheelScrolling() Overrides sun. Implements java. Doc from java. Determines if the component handles wheel scrolling itself. Otherwise it is delegated to the component's parent.
| |
| hidePopdownMenu | back to summary |
|---|---|
| pack-priv void hidePopdownMenu() | |
| initGraphicsConfiguration | back to summary |
|---|---|
| protected void initGraphicsConfiguration() Overrides sun.
| |
| isFocusable | back to summary |
|---|---|
| public boolean isFocusable() Overrides sun. Implements java. Doc from java. Returns
| |
| isMouseEventInChoice | back to summary |
|---|---|
| private boolean isMouseEventInChoice(MouseEvent e) | |
| isUnfurled | back to summary |
|---|---|
| public boolean isUnfurled() | |
| keyPressed | back to summary |
|---|---|
| public void keyPressed(KeyEvent e) | |
| layout | back to summary |
|---|---|
| public void layout() Overrides sun. Implements java. Doc from java. Used by lightweight implementations to tell a ComponentPeer to layout its sub-elements. For instance, a lightweight Checkbox needs to layout the box, as well as the text label.
| |
| mouseDragged | back to summary |
|---|---|
public void mouseDragged(MouseEvent e)
| |
| mousePressed | back to summary |
|---|---|
| public void mousePressed(MouseEvent e) | |
| mouseReleased | back to summary |
|---|---|
| public void mouseReleased(MouseEvent e) | |
| paintFocus | back to summary |
|---|---|
| protected void paintFocus(Graphics g, int x, int y, int w, int h) | |
| paintPeer | back to summary |
|---|---|
| pack-priv void paintPeer(final Graphics g) Overrides sun. Paint the choice
| |
| postInit | back to summary |
|---|---|
| pack-priv void postInit(XCreateWindowParams params) Overrides sun. Doc from sun. Called after window creation, descendants should override to initialize Window with class-specific values and perform post-initialization actions.
| |
| preInit | back to summary |
|---|---|
| pack-priv void preInit(XCreateWindowParams params) Overrides sun. Doc from sun. Called before window creation, descendants should override to initialize the data, initialize params.
| |
| prePostEvent | back to summary |
|---|---|
| pack-priv boolean prePostEvent(final AWTEvent e) Overrides sun. Doc from sun. Returns true if the event has been handled and should not be posted to Java.
| |
| remove | back to summary |
|---|---|
| public void remove(int index) Implements java. Doc from java. Removes the item at index
| |
| removeAll | back to summary |
|---|---|
| public void removeAll() Implements java. Doc from java. Removes all items from the combo box list.
| |
| removeXChoicePeerListener | back to summary |
|---|---|
| public void removeXChoicePeerListener() | |
| select | back to summary |
|---|---|
| public void select(int index) Implements java. Doc from java. Selects the item at index
| |
| setAlignUnder | back to summary |
|---|---|
| public void setAlignUnder(Component comp) | |
| setBackground | back to summary |
|---|---|
| public void setBackground(Color c) Overrides sun. Implements java. Doc from java. Sets the background color of this component.
| |
| setBounds | back to summary |
|---|---|
| public void setBounds(int x, int y, int width, int height, int op) Overrides sun. Implements java. Doc from java. Sets the location or size or both of the component. The location is
specified relative to the component's parent. The
| |
| setDrawSelectedItem | back to summary |
|---|---|
| public void setDrawSelectedItem(boolean value) | |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean value) Overrides sun. Implements java. Doc from java. Enables or disables a component. Disabled components are usually grayed out and cannot be activated.
| |
| setFont | back to summary |
|---|---|
| public void setFont(Font font) Overrides sun. Implements java. Doc from java. Sets the font of this component.
| |
| setForeground | back to summary |
|---|---|
| public void setForeground(Color c) Overrides sun. Implements java. Doc from java. Sets the foreground color of this component.
| |
| stateChangedICCCM | back to summary |
|---|---|
| public void stateChangedICCCM(int oldState, int newState) Implements sun.
| |
| stateChangedJava | back to summary |
|---|---|
| public void stateChangedJava(int oldState, int newState) Implements sun.
| |
| ungrabInputImpl | back to summary |
|---|---|
| pack-priv void ungrabInputImpl() Overrides sun.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| private boolean | |
| private boolean | isMouseInListArea(MouseEvent e)
Tests if the mouse cursor is in the Unfurled Choice, yet not in the vertical scrollbar |
| public void | |
| public void | |
| pack-priv Rectangle | |
| public void | preInit(XCreateWindowParams params)
Overrides sun. Called before window creation, descendants should override to initialize the data, initialize params. |
| public void | |
| public void | |
| public void | |
| private Point | toLocalCoords(MouseEvent e)
Return a MouseEvent's Point in coordinates relative to the UnfurledChoice. |
| public void | |
| private void |
| UnfurledChoice | back to summary |
|---|---|
| public UnfurledChoice(Component target) | |
| handleConfigureNotifyEvent | back to summary |
|---|---|
| public void handleConfigureNotifyEvent(XEvent xev) Overrides sun.
| |
| handleMapNotifyEvent | back to summary |
|---|---|
| public void handleMapNotifyEvent(XEvent xev) Overrides sun.
| |
| handleUnmapNotifyEvent | back to summary |
|---|---|
| public void handleUnmapNotifyEvent(XEvent xev) Overrides sun.
| |
| isMouseEventInside | back to summary |
|---|---|
| private boolean isMouseEventInside(MouseEvent e) | |
| isMouseInListArea | back to summary |
|---|---|
| private boolean isMouseInListArea(MouseEvent e) Tests if the mouse cursor is in the Unfurled Choice, yet not in the vertical scrollbar | |
| paintBackground | back to summary |
|---|---|
| public void paintBackground() | |
| paintPeer | back to summary |
|---|---|
| public void paintPeer(Graphics g) Overrides sun.
| |
| placeOnScreen | back to summary |
|---|---|
| pack-priv Rectangle placeOnScreen() | |
| preInit | back to summary |
|---|---|
| public void preInit(XCreateWindowParams params) Overrides sun. Doc from sun. Called before window creation, descendants should override to initialize the data, initialize params.
| |
| repaint | back to summary |
|---|---|
| public void repaint() Overrides sun.
| |
| setVisible | back to summary |
|---|---|
| public void setVisible(boolean vis) | |
| toFront | back to summary |
|---|---|
| public void toFront() Overrides sun.
| |
| toLocalCoords | back to summary |
|---|---|
| private Point toLocalCoords(MouseEvent e) Return a MouseEvent's Point in coordinates relative to the UnfurledChoice. | |
| trackMouse | back to summary |
|---|---|
| public void trackMouse(MouseEvent e) | |
| trackSelection | back to summary |
|---|---|
| private void trackSelection(int transX, int transY) | |