artofillusion.ui
Class ComponentsDialog

java.lang.Object
  extended by BDialog
      extended by artofillusion.ui.ComponentsDialog

public class ComponentsDialog
extends BDialog

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

ComponentsDialog

public ComponentsDialog(WindowWidget parent,
                        java.lang.String prompt,
                        Widget[] components,
                        java.lang.String[] labels)
Create a modal dialog containing a set of labeled components.

Parameters:
parent - the parent of the dialog
prompt - a text string to appear at the top of the dialog
components - the list of components to display
labels - the list of labels for each component

ComponentsDialog

public 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.

Parameters:
parent - the parent of the dialog
prompt - a text string to appear at the top of the dialog
components - the list of components to display
labels - the list of labels for each component
onOK - a callback to execute when the user clicks OK
onCancel - a callback to execute when the user clicks Cancel
Method Detail

clickedOk

public boolean clickedOk()
Return true if the user clicked OK, false if they clicked Cancel.


setOkEnabled

public void setOkEnabled(boolean enabled)
Set whether the OK button is enabled.



Copyright © 1999-2011 by Peter Eastman.