kAWT Version 0.80

de.kawt
Class OptionDialog

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--de.kawt.OptionDialog

public class OptionDialog
extends Dialog
implements ActionListener


Field Summary
static int CANCEL_OPTION
           
static int CLOSED_OPTION
           
static int INPUT_OPTION
           
static int NO_OPTION
           
static int OK_OPTION
           
static int YES_OPTION
           
 
Fields inherited from class java.awt.Container
insets
 
Constructor Summary
OptionDialog(Component component, java.lang.String message, java.lang.String title, java.lang.String deflt, int options)
          The OptionDialog is similar to the swing class JOptionPane, except that it is derived from dialog directly.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
static Frame getFrame(Component component)
           
static int showConfirmDialog(Component component, java.lang.String msg, java.lang.String title)
           
static int showConfirmDialog(Component component, java.lang.String msg, java.lang.String title, int type)
           
static java.lang.String showInputDialog(Component component, java.lang.String msg)
           
static void showMessageDialog(Component component, java.lang.String msg)
           
 
Methods inherited from class java.awt.Dialog
getMinimumSize, paint, setTitle, setVisible
 
Methods inherited from class java.awt.Window
addWindowListener, dispose, getFocusOwner, getOwner, getToolkit, pack, proxyRequestFocus, show
 
Methods inherited from class java.awt.Container
add, add, add, doLayout, findComponentAt, getComponent, getLayout, isAncestorOf, paintAll, paintComponents, remove, setLayout, update, validate
 
Methods inherited from class java.awt.Component
addKeyListener, addMouseListener, contains, getFont, getFontMetrics, getGraphics, getHeight, getLocationOnScreen, getParent, getPreferredSize, getSize, getWidth, getX, getY, invalidate, isEnabled, isVisible, processKeyEvent, processMouseEvent, repaint, repaint, requestFocus, setBackground, setBounds, setEnabled, setForeground, setLocation, setSize, setSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSED_OPTION

public static final int CLOSED_OPTION

OK_OPTION

public static final int OK_OPTION

YES_OPTION

public static final int YES_OPTION

NO_OPTION

public static final int NO_OPTION

CANCEL_OPTION

public static final int CANCEL_OPTION

INPUT_OPTION

public static final int INPUT_OPTION
Constructor Detail

OptionDialog

public OptionDialog(Component component,
                    java.lang.String message,
                    java.lang.String title,
                    java.lang.String deflt,
                    int options)
The OptionDialog is similar to the swing class JOptionPane, except that it is derived from dialog directly. However, several of the static showXXX methods of JOptionPane are also available here.
Method Detail

getFrame

public static Frame getFrame(Component component)

actionPerformed

public void actionPerformed(ActionEvent e)
Description copied from interface: ActionListener
Invoked when an action occurs.
Specified by:
actionPerformed in interface ActionListener

showConfirmDialog

public static int showConfirmDialog(Component component,
                                    java.lang.String msg,
                                    java.lang.String title)

showConfirmDialog

public static int showConfirmDialog(Component component,
                                    java.lang.String msg,
                                    java.lang.String title,
                                    int type)

showInputDialog

public static java.lang.String showInputDialog(Component component,
                                               java.lang.String msg)

showMessageDialog

public static void showMessageDialog(Component component,
                                     java.lang.String msg)

kAWT Version 0.80