artofillusion.ui
Class PanelDialog

java.lang.Object
  extended by buoy.event.EventSource
      extended by buoy.widget.Widget
          extended by buoy.widget.WidgetContainer
              extended by buoy.widget.WindowWidget
                  extended by buoy.widget.BDialog
                      extended by artofillusion.ui.PanelDialog

public class PanelDialog
extends buoy.widget.BDialog

A PanelDialog is a modal dialog containing a line of text at the top, and a single Widget (usually a container with other Widgets). At the bottom are two buttons labeled OK and Cancel.


Constructor Summary
PanelDialog(buoy.widget.WindowWidget parent, java.lang.String prompt, buoy.widget.Widget thePanel)
          Create a modal dialog containing a panel.
 
Method Summary
 boolean clickedOk()
          Return true if the user clicked OK, false if they clicked Cancel.
 
Methods inherited from class buoy.widget.BDialog
getChildCount, getChildren, getComponent, getMenuBar, getTitle, isModal, isResizable, pack, remove, removeAll, setMenuBar, setModal, setResizable, setTitle
 
Methods inherited from class buoy.widget.WindowWidget
dispose, getContent, getDefaultButton, isVisible, layoutChildren, setBounds, setContent, setDefaultButton, setVisible, toBack, toFront
 
Methods inherited from class buoy.widget.WidgetContainer
isOpaque, setOpaque
 
Methods inherited from class buoy.widget.Widget
addEventLink, dispatchEvent, getBackground, getBounds, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName
 
Methods inherited from class buoy.event.EventSource
addEventLink, addEventLink, removeEventLink
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelDialog

public PanelDialog(buoy.widget.WindowWidget parent,
                   java.lang.String prompt,
                   buoy.widget.Widget thePanel)
Create a modal dialog containing a panel.

Parameters:
parent - the parent of the dialog
prompt - a text string to appear at the top of the dialog (may be null)
thePanel - the panel to display
Method Detail

clickedOk

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



Copyright © 1999-2008 by Peter Eastman.