artofillusion.ui
Class MessageDialog

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

public class MessageDialog
extends buoy.widget.BDialog

A MessageDialog is a modal dialog containing one or more lines of text, and one or more buttons for the user to select from. Clicking any of the buttons dismisses the dialog.

This class is provided mainly for backward compatibility. In most cases, it is better to use a BStandardDialog, since that will have the correct platform-specific appearance. This class does have two advantages over BStandardDialog, however: it can display an arbitrary number of custom buttons, and it automatically breaks text into multiple lines.


Constructor Summary
MessageDialog(buoy.widget.WindowWidget parent, java.lang.String message)
           
MessageDialog(buoy.widget.WindowWidget parent, java.lang.String[] message)
           
MessageDialog(buoy.widget.WindowWidget parent, java.lang.String[] message, java.lang.String[] choices)
           
MessageDialog(buoy.widget.WindowWidget parent, java.lang.String message, java.lang.String[] choices)
           
 
Method Summary
 int getChoice()
          Get the index of the button that was pressed.
 
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

MessageDialog

public MessageDialog(buoy.widget.WindowWidget parent,
                     java.lang.String message)

MessageDialog

public MessageDialog(buoy.widget.WindowWidget parent,
                     java.lang.String message,
                     java.lang.String[] choices)

MessageDialog

public MessageDialog(buoy.widget.WindowWidget parent,
                     java.lang.String[] message)

MessageDialog

public MessageDialog(buoy.widget.WindowWidget parent,
                     java.lang.String[] message,
                     java.lang.String[] choices)
Method Detail

getChoice

public int getChoice()
Get the index of the button that was pressed.



Copyright © 1999-2008 by Peter Eastman.