|
|||||||
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
CloseableDialog
class CloseableDialog
Internal to hsa package.
The CloseableDialog class is the base class for Dialog objects created by the hsa package. Dialogs based on this class will close when the dialog's close box is clicked.
Full documentation for the classes in the hsa package available at:
http://www.holtsoft.com/java/hsa_package.html
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog |
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CloseableDialog(Frame parent,
String title)
Creates a closeable dialog with a close box that closes the dialog. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Closes the dialog. |
void |
positionDialog(Window window)
Places the dialog in the centre of the window passed in, or in the centre of the screen if no window is provided. |
void |
windowActivated(WindowEvent e)
Does nothing. |
void |
windowClosed(WindowEvent e)
Does nothing. |
void |
windowClosing(WindowEvent e)
Closes the dialog. |
void |
windowDeactivated(WindowEvent e)
Does nothing. |
void |
windowDeiconified(WindowEvent e)
Does nothing. |
void |
windowIconified(WindowEvent e)
Does nothing. |
void |
windowOpened(WindowEvent e)
Does nothing. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CloseableDialog(Frame parent, String title)
parent
- The parent of the dialogtitle
- The window title of the dialogMethod Detail |
---|
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- The action eventpublic void positionDialog(Window window)
window
- The window to centre the dialog onpublic void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
e
- The window eventpublic void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
e
- The window eventpublic void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
e
- The window eventpublic void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
e
- The window eventpublic void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
e
- The window eventpublic void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
e
- The window eventpublic void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
e
- The window event
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |