|
|||||||
| 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.Frame
CloseableFrame
class CloseableFrame
Internal to hsa package.
The CloseableFrame class is the base class for Frame objects created by the hsa package. Frames based on this class will close when the window'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.Frame |
|---|
Frame.AccessibleAWTFrame |
| 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.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| 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 | |
|---|---|
CloseableFrame(String title)
Creates a closeable window with a close box that closes the window. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Closes the window. |
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 window. |
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.Frame |
|---|
addNotify, finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Constructor Detail |
|---|
public CloseableFrame(String title)
title - The title of the window.| Method Detail |
|---|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - The action eventpublic void positionDialog(Window window)
window - The window to centre the dialog onpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenere - The window eventpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenere - The window eventpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenere - The window eventpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenere - The window eventpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenere - The window eventpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenere - The window eventpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenere - The window event
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||