| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public Font | |
| public String[] | |
| public int | |
| public String | Returns: the text of the selected item or null if no item is selectedthe initial size and location of the PopupList; the dialog will be
positioned so that it does not run off the screen and the largest number of items are visible rect)Launches the Popup List, waits for an item to be selected and then closes the PopupList. |
| public void | |
| public void | |
| public void | |
| public void |
| list | back to summary |
|---|---|
| pack-priv List list | |
| minimumWidth | back to summary |
|---|---|
| pack-priv int minimumWidth | |
| shell | back to summary |
|---|---|
| pack-priv Shell shell | |
| PopupList | back to summary |
|---|---|
| public PopupList(Shell parent) Creates a PopupList above the specified shell.
| |
| PopupList | back to summary |
|---|---|
| public PopupList(Shell parent, int style) Creates a PopupList above the specified shell.
| |
| checkStyle | back to summary |
|---|---|
| private static int checkStyle(int style) | |
| getFont | back to summary |
|---|---|
| public Font getFont() Gets the widget font.
| |
| getItems | back to summary |
|---|---|
| public String[] getItems() Gets the items. This operation will fail if the items cannot be queried from the OS.
| |
| getMinimumWidth | back to summary |
|---|---|
| public int getMinimumWidth() Gets the minimum width of the list.
| |
| open | back to summary |
|---|---|
| public String open(Rectangle rect) Launches the Popup List, waits for an item to be selected and then closes the PopupList. | |
| select | back to summary |
|---|---|
| public void select(String string) Selects an item with text that starts with specified String. If the item is not currently selected, it is selected. If the item at an index is selected, it remains selected. If the string is not matched, it is ignored.
| |
| setFont | back to summary |
|---|---|
| public void setFont(Font font) Sets the widget font. When new font is null, the font reverts to the default system font for the widget.
| |
| setItems | back to summary |
|---|---|
| public void setItems(String[] strings) Sets all items. The previous selection is cleared. The previous items are deleted. The new items are added. The top index is set to 0.
| |
| setMinimumWidth | back to summary |
|---|---|
| public void setMinimumWidth(int width) Sets the minimum width of the list.
| |