| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | XListPeer.
Sometimes painter is called on Toolkit thread, so the lock sequence is: awtLock -> Painter -> awtLock Sometimes it is called on other threads: Painter -> awtLock Since we can't guarantee the sequence, use awtLock. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| private static final int | |
| pack-priv int | |
| public static final int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv boolean | |
| private int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| public static final int | |
| public static final int | |
| pack-priv XHorizontalScrollbar | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv Vector | |
| pack-priv int | |
| pack-priv int | |
| private static final PlatformLogger | |
| public static final int | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv XListPeer. | |
| public static final int | |
| public static final int | |
| pack-priv int[] | |
| public static final int | |
| public static final int | |
| pack-priv XVerticalScrollbar | |
| pack-priv boolean | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(String item, int index)
Implements java. Adds an item to the list at the specified index. |
| public void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public void | delItems(int s, int e)
Implements java. delete items starting with s (start position) to e (end position) including s and e if s < 0 then s = 0 if e >= items.size() then e = items.size() - 1 |
| public void | deselect(int index)
Implements java. ListPeer method focusedIndex isn't updated according to native (Window, Motif) behaviour |
| private void | |
| pack-priv void | |
| public void | focusGained(FocusEvent e)
Overrides sun. Called when component receives focus |
| public void | focusLost(FocusEvent e)
Overrides sun. Called when component loses focus |
| pack-priv int | |
| pack-priv int | |
| pack-priv Rectangle | |
| pack-priv Rectangle | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| private Color | getListBackground(Color[] colors)
Returns the color that should be used to paint the background of the list of items. |
| private Color | |
| pack-priv int | getListWidth()
returns the width of the list portion of the component (accounts for presence of vertical scrollbar) |
| public Dimension | getMinimumSize()
Overrides sun. Implements java. Determines the minimum size of the component. |
| public Dimension | getMinimumSize(int rows)
Implements java. Returns the minimum size for a list with the specified number of rows. |
| public Dimension | getPreferredSize(int rows)
Implements java. Returns the preferred size for a list with the specified number of rows. |
| public int[] | getSelectedIndexes()
Implements java. return the selected indexes |
| pack-priv Rectangle | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | handlesWheelScrolling()
Overrides sun. Implements java. Determines if the component handles wheel scrolling itself. |
| pack-priv boolean | hsbIsVisible(boolean vsbVisible)
return true if horizontal scrollbar is visible and false otherwise; vsbVisible is the visibility of the vertical scrollbar |
| pack-priv int | |
| pack-priv boolean | inHorizontalScrollbar(int x, int y)
return true if the x and y position is in the horizontal scrollbar |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | isFocusable()
Overrides sun. Implements java. Returns |
| pack-priv boolean | |
| pack-priv boolean | isItemHidden(int index)
returns whether the given index is currently scrolled off the top or bottom of the List. |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int | itemsInWindow(boolean scrollbarVisible)
return the number of items that can fit in the current window |
| pack-priv int | |
| pack-priv void | |
| pack-priv int | |
| public void | layout()
Overrides sun. Implements java. Layout the sub-components of the List - that is, the scrollbars and the list of items. |
| public void | makeVisible(int index)
Implements java. ensure that the given index is visible, scrolling the List if necessary, or doing nothing if the item is already visible. |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | notifyValue(XScrollbar obj, int type, int v, boolean isAdjusting)
Implements sun. return value from the scrollbar |
| pack-priv void | |
| pack-priv int | posInSel(int index)
return the position of the index in the selected array if the index isn't in the array selected return -1; |
| public 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. |
| public void | preInit(XCreateWindowParams params)
Overrides sun. Overridden from XWindow |
| pack-priv boolean | prePostEvent(final AWTEvent e)
Overrides sun. Returns true if the event has been handled and should not be posted to Java. |
| pack-priv boolean | |
| public void | |
| public void | |
| private void | |
| private void | |
| private void | repaint(int
the position of the first item of the range to repaint firstItem, int the position of the last item of the range to repaint lastItem, int specifies the particular area of the component to repaint options, Rectangle the area of the component to copy source, Point the distance to copy the source area distance)In most cases the entire area of the component doesn't have to be repainted. |
| public void | repaintScrollbarRequest(XScrollbar scrollbar)
Implements sun.
|
| pack-priv void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| public void | setBackground(Color c)
Overrides sun. Implements java. Sets the background color of this component. |
| pack-priv void | |
| public void | setFont(Font f)
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 | setMultipleMode(boolean b)
Implements java. Toggles multiple selection mode on or off. |
| public void | |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | vsbIsVisible(boolean hsbVisible)
return true if vertical scrollbar is visible and false otherwise; hsbVisible is the visibility of the horizontal scrollbar |
| pack-priv int |