|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--Canvas
|
+--org.ascentphase.suit.Panel
|
+--org.ascentphase.suit.InputPopup
|
+--org.ascentphase.suit.ListPopup
A component that contains a list of options the user can select from. Two buttons: "OK" and "Cancel" are displayed at the bottom. The options are mutually exclusive, therefore multiple items cannot be selected from the list.
| Field Summary | |
protected org.ascentphase.suit.ItemList |
items
ItemList which contains the options to display |
protected java.lang.String |
popupTitle
The form title of this popup |
protected org.ascentphase.suit.ScrollList |
scroll
Internal scroll list widget |
| Fields inherited from class org.ascentphase.suit.InputPopup |
CLOSE_CANCEL, CLOSE_OK, closeCmd, closeState |
| Fields inherited from class org.ascentphase.suit.Panel |
clearReq |
| Constructor Summary | |
|
ListPopup(java.lang.String title,
org.ascentphase.suit.ItemList list)
Initializes the popup with the given form title and list of options. |
protected |
ListPopup(java.lang.String title,
org.ascentphase.suit.ItemList list,
int rows)
Initializes the popup with the given form title and list of options and has the given number of visible items at a time. |
|
ListPopup(java.lang.String title,
org.ascentphase.suit.ItemList list,
java.lang.String selected,
int rows)
Initializes the popup with the given form title and list of options. |
| Method Summary | |
java.lang.String |
getText()
Returns the selected option that the user selected from the list. |
protected void |
initialize(int rows)
|
| Methods inherited from class org.ascentphase.suit.InputPopup |
getCloseState, handleCommandEvent, setCloseCommand |
| Methods inherited from class org.ascentphase.suit.Panel |
add, add, keyPressed, keyReleased, keyRepeated, paint, pointerDragged, pointerPressed, pointerReleased, remove, setCommandListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String popupTitle
protected org.ascentphase.suit.ItemList items
protected org.ascentphase.suit.ScrollList scroll
| Constructor Detail |
public ListPopup(java.lang.String title,
org.ascentphase.suit.ItemList list)
title - the String title of the popup.list - the list of items to be displayed.
public ListPopup(java.lang.String title,
org.ascentphase.suit.ItemList list,
java.lang.String selected,
int rows)
selected will be highlighted
by default.
title - the String title of the popup.list - the list of items to be displayed.selected - the option to be highlighted by default.rows - the number of rows that will be visible.
protected ListPopup(java.lang.String title,
org.ascentphase.suit.ItemList list,
int rows)
title - the String title of the popup.list - the list of items to be displayed.rows - the number of rows that will be visible.| Method Detail |
protected void initialize(int rows)
public java.lang.String getText()
getText in class InputPopup
|
Ascent Phase Corp. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||