|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--org.moyoman.client.reference.util.BaseDialog
Provides a generic dialog base class.
Nested Class Summary |
Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private boolean |
_actionApproved
Flag to indicate if this dialog was closed with OK or cancel. |
private ActionManager |
_actionManager
Handle to the action manager. |
private JButton |
_applyButtonUI
Handle to the apply button. |
private JButton |
_cancelButtonUI
Handle to the cancel button. |
private boolean |
_initialLocationSet
Flag indicating whether the initial location has been set. |
private boolean |
_isDirty
Flag to indicate if data in this dialog has been changed. |
private JButton |
_okButtonUI
Handle to the OK button. |
private String |
_ownerTitle
The title string representing the owning application. |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.moyoman.client.reference.util.IGUIConstants |
DEBUG, DIRTY_PROPERTY, GAP, MARGIN, TRANSPARENT_COLOR |
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 | |
protected |
BaseDialog(Frame frame)
Construct this dialog with the given parameter. |
protected |
BaseDialog(Frame frame,
String ownerTitle)
Construct this dialog with the given parameters. |
protected |
BaseDialog(JDialog dialog)
Construct this dialog with the given parameter. |
protected |
BaseDialog(JDialog dialog,
String ownerTitle)
Construct this dialog with the given parameters. |
Method Summary | |
private void |
addButtonPanel(int numButtons)
Add a panel which contains the given number of buttons. |
protected void |
addOKButtonPanel()
Add a panel which contains the OK button. |
protected void |
addOKCancelApplyButtonsPanel()
Add a panel which contains the OK, cancel, and apply buttons. |
protected void |
addOKCancelButtonsPanel()
Add a panel which contains the OK and cancel buttons. |
protected void |
applyActionPerformed(ActionEvent event)
Apply this dialog's settings.. |
protected void |
cancelActionPerformed(ActionEvent event)
Close this dialog with no other action. |
protected void |
checkComponents()
Check components for their enable state. |
private JButton |
createApplyButton()
Create the apply button with the appropriate action listener. |
private JButton |
createCancelButton()
Create the cancel button with the appropriate action listener. |
protected JLabel |
createLabel(String key)
Create a right-aligned label using the given key. |
private JButton |
createOKButton()
Create the OK button with the appropriate action listener. |
protected ActionManager |
getActionManager()
Return the action manager, creating it if necessary. |
JButton |
getApplyButton()
Return the handle to the apply button. |
JButton |
getCancelButton()
Return the handle to the cancel button. |
JButton |
getOKButton()
Return the handle to the OK button. |
protected void |
init(String ownerTitle)
Initialize this dialog. |
boolean |
isActionApproved()
Return true if the action was approved. |
boolean |
isDirty()
Answer true if data was changed in the dialog. |
protected void |
okActionPerformed(ActionEvent event)
Callback for the OK button. |
void |
setCursorBusy(boolean busy)
Set the cursor to show busy. |
void |
setDirty(boolean isDirty)
Set the dirty flag. |
void |
setTitle(String title)
Set the title of this dialog. |
void |
show()
Show this dialog. |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ActionManager _actionManager
private JButton _applyButtonUI
private JButton _cancelButtonUI
private JButton _okButtonUI
private String _ownerTitle
private boolean _actionApproved
private boolean _initialLocationSet
private boolean _isDirty
Constructor Detail |
protected BaseDialog(Frame frame)
frame
- The owning frame.protected BaseDialog(JDialog dialog)
dialog
- The owning dialog.protected BaseDialog(Frame frame, String ownerTitle)
frame
- The owning frame.protected BaseDialog(JDialog dialog, String ownerTitle)
dialog
- The owning dialog.Method Detail |
public boolean isActionApproved()
public JButton getApplyButton()
public JButton getCancelButton()
public void setCursorBusy(boolean busy)
public void setDirty(boolean isDirty)
public boolean isDirty()
public JButton getOKButton()
public void setTitle(String title)
setTitle
in class Dialog
public void show()
show
in class Dialog
protected ActionManager getActionManager()
protected void addOKButtonPanel()
protected void addOKCancelApplyButtonsPanel()
protected void addOKCancelButtonsPanel()
protected void applyActionPerformed(ActionEvent event)
protected void cancelActionPerformed(ActionEvent event)
protected void checkComponents()
protected JLabel createLabel(String key)
protected void init(String ownerTitle)
protected void okActionPerformed(ActionEvent event)
private void addButtonPanel(int numButtons)
private JButton createApplyButton()
private JButton createCancelButton()
private JButton createOKButton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |