| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
jas.util.JASDialog
public class JASDialog
JASDialog extends the built in java dialog to provide a number of extra features
getContentPane(), 
Serialized Form| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog | 
|---|
JDialog.AccessibleJDialog | 
| Nested classes/interfaces inherited from class java.awt.Dialog | 
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType | 
| Nested classes/interfaces inherited from class java.awt.Window | 
|---|
Window.AccessibleAWTWindow | 
| Nested classes/interfaces inherited from class java.awt.Container | 
|---|
Container.AccessibleAWTContainer | 
| Nested classes/interfaces inherited from class java.awt.Component | 
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy | 
| Field Summary | |
|---|---|
static int | 
APPLY_BUTTON
Include this in your flags to include an Apply button.  | 
static int | 
CANCEL_BUTTON
Include this in your flags to include a Cancel button.  | 
static int | 
HELP_BUTTON
Include this in your flags to include a Help button.  | 
static int | 
OK_BUTTON
Include this in your flags to include an OK button.  | 
| Fields inherited from class javax.swing.JDialog | 
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled | 
| Fields inherited from class java.awt.Dialog | 
|---|
DEFAULT_MODALITY_TYPE | 
| Fields inherited from class java.awt.Component | 
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface javax.swing.WindowConstants | 
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE | 
| Fields inherited from interface java.awt.image.ImageObserver | 
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
|---|---|
JASDialog(Dialog dlg,
          String title)
Creates a modal dialog with OK and Cancel buttons.  | 
|
JASDialog(Dialog dlg,
          String title,
          boolean modal)
Creates a dialog with OK and Cancel buttons.  | 
|
JASDialog(Dialog dlg,
          String t,
          boolean modal,
          int flags)
Creates a dialog box with any combination of buttons.  | 
|
JASDialog(Frame frame,
          String title)
Creates a modal dialog with OK and Cancel buttons.  | 
|
JASDialog(Frame frame,
          String title,
          boolean modal)
Creates a dialog with OK and Cancel buttons.  | 
|
JASDialog(Frame f,
          String t,
          boolean modal,
          int flags)
Creates a dialog box with any combination of buttons.  | 
|
| Method Summary | |
|---|---|
protected  void | 
callEnable()
Forces the dialog to re-evaluate button enabling.  | 
 void | 
changedUpdate(DocumentEvent e)
Calls callEnable() by default. | 
static JASDialog | 
create(Component c,
       String t,
       boolean modal,
       int flags)
 | 
static JASDialog | 
create(Frame frame,
       String title)
 | 
static JASDialog | 
create(Frame frame,
       String title,
       boolean modal)
 | 
 void | 
defaultPack()
Causes default pack; does not move dialog.  | 
 boolean | 
doModal()
Forces a modal display of the dialog box  | 
protected  void | 
enableApply(JASState state)
Override to customize when Apply is enabled.  | 
protected  void | 
enableHelp(JASState state)
Override to customize when Help is enabled.  | 
protected  void | 
enableOK(JASState state)
Override to customize when OK is enabled.  | 
 Container | 
getContentPane()
Returns the content pane for the JASDialog, which is the panel (not including the buttons) where components can be added.  | 
 void | 
insertUpdate(DocumentEvent e)
Calls callEnable() by default. | 
 void | 
mouseClicked(MouseEvent e)
Does nothing by default.  | 
 void | 
mouseEntered(MouseEvent e)
Does nothing by default.  | 
 void | 
mouseExited(MouseEvent e)
Does nothing by default.  | 
 void | 
mousePressed(MouseEvent e)
Does nothing by default.  | 
 void | 
mouseReleased(MouseEvent e)
Does nothing by default.  | 
protected  void | 
onApply()
Called when the Apply button is pushed.  | 
protected  void | 
onCancel()
Called when the Cancel button is pushed.  | 
protected  void | 
onOK()
Called when the OK button is pushed.  | 
 void | 
pack()
Causes a default pack(), but also places the dialog in the center of the parent frame.  | 
 void | 
processEvent(AWTEvent e)
This method is public as an implementation side effect; do not call or override.  | 
 void | 
removeUpdate(DocumentEvent e)
Calls callEnable() by default. | 
 void | 
setApplyLabel(String label)
Set the label on the Apply button.  | 
 void | 
setApplyMnemonic(char mnemonic)
Sets the mnnemonic (or keyboard shortcut) for the Apply button.  | 
 void | 
setCancelLabel(String label)
Set the label on the Cancel button.  | 
 void | 
setCancelMnemonic(char mnemonic)
Sets the mnnemonic (or keyboard shortcut) for the Cancel button.  | 
 void | 
setContentPane(Container c)
Sets the content pane.  | 
 void | 
setHelpTopic(String topic)
Sets the name for the help topic that the Help button opens.  | 
 void | 
setOKLabel(String label)
Set the label on the OK button.  | 
 void | 
setOKMnemonic(char mnemonic)
Sets the mnnemonic (or keyboard shortcut) for the OK button.  | 
 void | 
show()
 | 
| Methods inherited from class java.awt.Dialog | 
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, toBack | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int OK_BUTTON
public static final int APPLY_BUTTON
public static final int CANCEL_BUTTON
public static final int HELP_BUTTON
| Constructor Detail | 
|---|
public JASDialog(Frame frame,
                 String title)
frame - the parent frametitle - the title for the dialog box
public JASDialog(Frame frame,
                 String title,
                 boolean modal)
frame - the parent frametitle - the title for the dialog boxmodal - whether the dialog box is modal
public JASDialog(Frame f,
                 String t,
                 boolean modal,
                 int flags)
flags
 parameter.  For example,JASDialog.OK_BUTTON | JASDialog.CANCEL_BUTTON | JASDialog.HELP_BUTTONflags parameter will create a button
 that has an OK button, a Cancel button, and a Help button.
dlg - the parent Dialogtitle - the title for the dialog boxmodal - whether the dialog box is modalflags - option flags
public JASDialog(Dialog dlg,
                 String title)
frame - the parent frametitle - the title for the dialog box
public JASDialog(Dialog dlg,
                 String title,
                 boolean modal)
dlg - the parent Dialogtitle - the title for the dialog boxmodal - whether the dialog box is modal
public JASDialog(Dialog dlg,
                 String t,
                 boolean modal,
                 int flags)
flags
 parameter.  For example,JASDialog.OK_BUTTON | JASDialog.CANCEL_BUTTON | JASDialog.HELP_BUTTONflags parameter will create a button
 that has an OK button, a Cancel button, and a Help button.
dlg - the parent Dialogtitle - the title for the dialog boxmodal - whether the dialog box is modalflags - option flags| Method Detail | 
|---|
public static JASDialog create(Frame frame,
                               String title)
public static JASDialog create(Frame frame,
                               String title,
                               boolean modal)
public static JASDialog create(Component c,
                               String t,
                               boolean modal,
                               int flags)
public void pack()
pack in class WindowWindow.pack()public void defaultPack()
public void processEvent(AWTEvent e)
processEvent in class Windowpublic boolean doModal()
public void show()
show in class Dialogpublic void setOKLabel(String label)
public void setOKMnemonic(char mnemonic)
setOKLabel(String) the default
 mnemonic ('O') may not be appropriate, so use
 this method to set a better one.
mnemonic - the new key shortcut to usesetOKLabel(String)public void setCancelLabel(String label)
public void setCancelMnemonic(char mnemonic)
setCancelLabel(String) the default
 mnemonic ('C') may not be appropriate, so use
 this method to set a better one.
mnemonic - the new key shortcut to usesetCancelLabel(String)public void setApplyLabel(String label)
public void setApplyMnemonic(char mnemonic)
setApplyLabel(String) the default
 mnemonic ('A') may not be appropriate, so use
 this method to set a better one.
mnemonic - the new key shortcut to usesetApplyLabel(String)protected void onOK()
protected void onCancel()
protected void onApply()
protected void callEnable()
protected void enableOK(JASState state)
protected void enableHelp(JASState state)
setHelpTopic(String)protected void enableApply(JASState state)
public Container getContentPane()
getContentPane in interface RootPaneContainergetContentPane in class JDialogpublic void setContentPane(Container c)
setContentPane in interface RootPaneContainersetContentPane in class JDialogpublic final void setHelpTopic(String topic)
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void insertUpdate(DocumentEvent e)
callEnable() by default.  To use this class
 as a DocumentListener, override only the method(s) you need.
insertUpdate in interface DocumentListenercallEnable()public void removeUpdate(DocumentEvent e)
callEnable() by default.  To use this class
 as a DocumentListener, override only the method(s) you need.
removeUpdate in interface DocumentListenercallEnable()public void changedUpdate(DocumentEvent e)
callEnable() by default.  To use this class
 as a DocumentListener, override only the method(s) you need.
changedUpdate in interface DocumentListenercallEnable()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||