|
JIGL v1.6 |
||||||||||
| 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.Frame
|
+--jigl.gui.CloseableFrame
CloseableFrame allows the user to create a frame that can be closed without exiting the program. With just java.awt.Frame it is not possible to close the frame if you don't implement the windowlistener.
Among all the methods of the WindowListener, only windowClosing() is implemented.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
| 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 |
| 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.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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
CloseableFrame()
Creates a CloseableFrame with no title |
|
CloseableFrame(String title)
Creates a CloseableFrame with title |
|
| Method Summary | |
void |
windowActivated(WindowEvent e)
empty |
void |
windowClosed(WindowEvent e)
empty |
void |
windowClosing(WindowEvent e)
Method that detects for when the window is closing and closes it. |
void |
windowDeactivated(WindowEvent e)
empty |
void |
windowDeiconified(WindowEvent e)
empty |
void |
windowIconified(WindowEvent e)
empty |
void |
windowOpened(WindowEvent e)
Empty now. |
| 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()
public CloseableFrame(String title)
title
title - string to display in title bar.| Method Detail |
public void windowClosing(WindowEvent e)
windowClosing in interface WindowListenere - windowClosing event.public void windowOpened(WindowEvent e)
windowOpened in interface WindowListenere - eventpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenere - eventpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenere - eventpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenere - eventpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenere - eventpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenere - event
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||