|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBDialog
artofillusion.ui.ComponentsDialog
public class ComponentsDialog
A ComponentsDialog is a modal dialog containing a line of text, and one or more Widgets for the user to edit. Each Widget has a label next to it. At the bottom are two buttons labeled OK and Cancel.
Constructor Summary | |
---|---|
ComponentsDialog(WindowWidget parent,
java.lang.String prompt,
Widget[] components,
java.lang.String[] labels)
Create a modal dialog containing a set of labeled components. |
|
ComponentsDialog(WindowWidget parent,
java.lang.String prompt,
Widget[] components,
java.lang.String[] labels,
java.lang.Runnable onOK,
java.lang.Runnable onCancel)
Create a non-modal dialog containing a set of labeled components. |
Method Summary | |
---|---|
boolean |
clickedOk()
Return true if the user clicked OK, false if they clicked Cancel. |
void |
setOkEnabled(boolean enabled)
Set whether the OK button is enabled. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentsDialog(WindowWidget parent, java.lang.String prompt, Widget[] components, java.lang.String[] labels)
parent
- the parent of the dialogprompt
- a text string to appear at the top of the dialogcomponents
- the list of components to displaylabels
- the list of labels for each componentpublic ComponentsDialog(WindowWidget parent, java.lang.String prompt, Widget[] components, java.lang.String[] labels, java.lang.Runnable onOK, java.lang.Runnable onCancel)
parent
- the parent of the dialogprompt
- a text string to appear at the top of the dialogcomponents
- the list of components to displaylabels
- the list of labels for each componentonOK
- a callback to execute when the user clicks OKonCancel
- a callback to execute when the user clicks CancelMethod Detail |
---|
public boolean clickedOk()
public void setOkEnabled(boolean enabled)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |