| 
 [.hacks.] [.java.]  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--DialogBox
(#)DialogBox.java
| Field Summary | |
static java.awt.Image | 
Bsy
busy image for standard dialogboxes  | 
static java.lang.String | 
CANCEL
Cancel string for standard dialogboxes (no i18n)  | 
static java.awt.Image | 
Err
error image for standard dialogboxes  | 
static java.lang.String | 
ERR
Error string for standard dialogboxes (no i18n)  | 
static java.awt.Image | 
Inf
info image for standard dialogboxes  | 
static java.lang.String | 
INF
Info string for standard dialogboxes (no i18n)  | 
static java.lang.String | 
OK
OK string for standard dialogboxes (no i18n)  | 
static java.awt.Image | 
Wrn
warning image for standard dialogboxes  | 
static java.lang.String | 
WRN
Warning string for standard dialogboxes (no i18n)  | 
| Constructor Summary | |
DialogBox()
Construct a new Dialog.  | 
|
DialogBox(java.awt.Panel p,
                   java.lang.String t,
                   java.lang.String b)
Construct a new Dialog.  | 
|
| Method Summary | |
 void | 
actionPerformed(java.awt.event.ActionEvent e)
Implement the Action listener interface.  | 
 void | 
addActionListener(java.awt.event.ActionListener l)
Add ActionListener to this dialog  | 
 void | 
addButton(java.lang.String l)
Add a dialog button to this box.  | 
 void | 
addButton(java.lang.String l,
                   java.lang.String c)
Add a dialog button to this box.  | 
 void | 
addButtons(java.lang.String l)
Add a dialog buttons to this box.  | 
static DialogBox | 
busyDialog(java.lang.String msg)
Static utility method to create a standard busy dialog.  | 
 void | 
dispose(java.lang.Object retCode)
Destroys this dialog  | 
static DialogBox | 
errorDialog(java.lang.String msg)
Static utility method to create a standard error dialog  | 
 Knob | 
getButton(int i)
Get the button object for a specific dialog button.  | 
 java.lang.String | 
getCloseWindowCommand()
Get the close window command of this dialog.  | 
 java.awt.Frame | 
getFrame()
Get parent frame.  | 
 java.awt.Panel | 
getPanel()
Get the main panel (content of this dialog).  | 
 java.awt.Frame | 
getParent()
Get parent frame.  | 
 boolean | 
getResizable()
Dialog resizeable ?  | 
 java.lang.String | 
getTitle()
Get the title of this dialog.  | 
static DialogBox | 
infoDialog(java.lang.String msg)
Static utility method to create a standard info dialog.  | 
 boolean | 
isModal()
Get the modal behavior of this dialog.  | 
 boolean | 
isShowing()
Dialog on screen ?  | 
 void | 
notifyActionListeners(int but)
Notify all ActionListener  | 
 void | 
pack()
Make it nice looking  | 
 void | 
removeActionListener(java.awt.event.ActionListener l)
Remove ActionListener to this dialog  | 
 void | 
removeActionListeners()
Remove all ActionListener  | 
 void | 
setButtonAction(int i,
                               java.lang.String a)
Utility method to change the action string for a dialog button.  | 
 void | 
setButtonEnabled(int i,
                                 boolean e)
Utility method to en-/disable a dialog button.  | 
 void | 
setCloseWindowCommand(java.lang.String c)
Set the close window command of this dialog.  | 
 void | 
setModal(boolean m)
Set the modal behavior of this dialog.  | 
 void | 
setPanel(java.awt.Panel p)
Set the main panel (content of this dialog).  | 
 void | 
setParent(java.awt.Component c)
Set parent.  | 
 void | 
setResizable(boolean r)
Set if Dialog is resizeable  | 
 void | 
setTitle(java.lang.String t)
Set the title of this dialog.  | 
 java.lang.Object | 
show()
Shows this dialog.  | 
 java.lang.Object | 
show(boolean bep)
Shows this dialog.  | 
 java.lang.Object | 
show(java.awt.Component p)
Shows this dialog.  | 
 java.lang.Object | 
show(java.awt.Component p,
         boolean bep)
Shows this dialog.  | 
static DialogBox | 
standardDialog(java.lang.String tit,
                             java.lang.String msg,
                             java.lang.String but,
                             java.awt.Image img)
Static utility method to create a standard Dialog with optional image  | 
static DialogBox | 
warnDialog(java.lang.String msg)
Static utility method to create a standard warning dialog.  | 
 void | 
windowActivated(java.awt.event.WindowEvent e)
Implement the Window listener interface.  | 
 void | 
windowClosed(java.awt.event.WindowEvent e)
Implement the Window listener interface.  | 
 void | 
windowClosing(java.awt.event.WindowEvent e)
Implement the Window listener interface.  | 
 void | 
windowDeactivated(java.awt.event.WindowEvent e)
Implement the Window listener interface.  | 
 void | 
windowDeiconified(java.awt.event.WindowEvent e)
Implement the Window listener interface.  | 
 void | 
windowIconified(java.awt.event.WindowEvent e)
Implement the Window listener interface.  | 
 void | 
windowOpened(java.awt.event.WindowEvent e)
Implement the Window listener interface.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final java.awt.Image Err
public static final java.awt.Image Wrn
public static final java.awt.Image Inf
public static final java.awt.Image Bsy
public static final java.lang.String OK
public static final java.lang.String CANCEL
public static final java.lang.String ERR
public static final java.lang.String WRN
public static final java.lang.String INF
| Constructor Detail | 
public DialogBox(java.awt.Panel p,
                 java.lang.String t,
                 java.lang.String b)
p - the content of this dialog.t - title for dialog frame (window manager).b - comma separated list of buttons.public DialogBox()
setPanel and addButtons to make this
 DialogBox useable.
| Method Detail | 
public java.awt.Frame getFrame()
public java.awt.Frame getParent()
public void setParent(java.awt.Component c)
c - use this components parent frame.public java.awt.Panel getPanel()
public void setPanel(java.awt.Panel p)
p - use this panel for the dialogbox's content.public java.lang.String getTitle()
public void setTitle(java.lang.String t)
show()
public boolean isModal()
public void setModal(boolean m)
m - blocking or not ?public boolean isShowing()
public void setResizable(boolean r)
r - resizeable or not ?public boolean getResizable()
public void addActionListener(java.awt.event.ActionListener l)
l - ActionListener to addpublic void removeActionListener(java.awt.event.ActionListener l)
l - ActionListener to removepublic void removeActionListeners()
public void notifyActionListeners(int but)
but - Index of button that was pressedpublic java.lang.String getCloseWindowCommand()
public void setCloseWindowCommand(java.lang.String c)
c - the closing string
public void addButton(java.lang.String l,
                      java.lang.String c)
l - the label to showc - the action command for this button. 
              See setCloseWindowCommand.public void addButton(java.lang.String l)
l - the label and action commandpublic void addButtons(java.lang.String l)
l - comma separated list of labels and action commandspublic Knob getButton(int i)
i - which button ?
public void setButtonEnabled(int i,
                             boolean e)
i - which button ?e - active ?
public void setButtonAction(int i,
                            java.lang.String a)
i - which button ?a - new actionpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic java.lang.Object show()
public java.lang.Object show(boolean bep)
bep - seems handy for error dialogs.public java.lang.Object show(java.awt.Component p)
p - use this components parent frame.
public java.lang.Object show(java.awt.Component p,
                             boolean bep)
public void pack()
public void dispose(java.lang.Object retCode)
retCode - return this to the calling method
public static DialogBox standardDialog(java.lang.String tit,
                                       java.lang.String msg,
                                       java.lang.String but,
                                       java.awt.Image img)
tit - title stringmsg - message to showbut - comma separated list of dialog buttonsimg - optional image to show on left hand sidepublic static DialogBox errorDialog(java.lang.String msg)
public static DialogBox warnDialog(java.lang.String msg)
msg - the warning messagepublic static DialogBox infoDialog(java.lang.String msg)
msg - the info messagepublic static DialogBox busyDialog(java.lang.String msg)
msg - the info message
  | 
 [.hacks.] [.java.]  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||