|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
gov.nih.nlm.swing.ListDialog
public class ListDialog
JDialog used to present a user with a list of choices.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ListDialog(Component parent,
Object message,
String title,
Object[] values,
Object[] initial_selections,
boolean single_selection_mode)
Instantiates a ListDialog from the specified parameters. |
|
| Method Summary | |
|---|---|
Object |
getValue()
This method returns the user selection. |
Object[] |
getValues()
This method returns the user selections. |
static Object[] |
showListMultipleMode(Component parent,
Object message,
String title,
Object[] values,
Object initial_selection)
Presents the user with a ListDialog containing a list of choices. |
static Object[] |
showListMultipleMode(Component parent,
Object message,
String title,
Object[] values,
Object[] initial_selections)
Presents the user with a ListDialog containing a list of choices. |
static Object |
showListSingleMode(Component parent,
Object message,
String title,
Object[] values,
Object initial_selection)
Presents the user with a ListDialog containing a list of choices. |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListDialog(Component parent,
Object message,
String title,
Object[] values,
Object[] initial_selections,
boolean single_selection_mode)
ListDialog from the specified parameters.
parent - the parent Component that this dialog should appear
relative tomessage - the message that should appear in the dialogtitle - the title that should appear at the top of the dialog windowvalues - the list of valuesinitial_selections - the initially selected valuessingle_selection_mode - a flag indicating whether or not multiple rows can be selected.| Method Detail |
|---|
public Object getValue()
ListDialog.
public Object[] getValues()
ListDialog.
public static Object showListSingleMode(Component parent,
Object message,
String title,
Object[] values,
Object initial_selection)
ListDialog containing a list of choices.
When the user selects, the value is returned.
parent - the parent Componentmessage - the message Objecttitle - the title Stringvalues - the values Object []initial_selection - the initial selection Object
public static Object[] showListMultipleMode(Component parent,
Object message,
String title,
Object[] values,
Object initial_selection)
ListDialog containing a list of choices.
When the user selects one or more entries, the selected values are
returned.
parent - the parent Componentmessage - the message Objecttitle - the title Stringvalues - the values Object []initial_selection - the initial selection Object
public static Object[] showListMultipleMode(Component parent,
Object message,
String title,
Object[] values,
Object[] initial_selections)
ListDialog containing a list of choices.
When the user selects one or more entries, the selected values are
returned.
parent - the parent Componentmessage - the message Objecttitle - the title Stringvalues - the values Object []initial_selections - the initial selections Object[]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||