|
||||||||||
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 | +--jwo.utils.JWFrame
Abstract class to use as basis for simple non-modal windows. Contains an OK return button. Uses the GridBag Layout manager for maximum portability with different window sizes.
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.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 | |
JWFrame()
Creates simple window with OK button. |
|
JWFrame(String winTitle)
Creates simple window with title, and OK button. |
|
JWFrame(String winTitle,
String mainTitle)
Creates simple window with titles, and OK button. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Closes the frame if the OK button is pressed. |
Component |
add(Component c)
Adds a component to the frame above the OK button if it is defined. |
void |
addReturnButtons()
Adds the return button to this frame. |
abstract void |
closeFrame()
Method that allows action to be performed when frame is closed. |
GridBagConstraints |
getGBConstraints()
Retrieves the default GridBag layout constraints associated with this frame. |
GridBagLayout |
getGBLayout()
Retrieves current GridBagLayout (needed to add new componets to the frame. |
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 JWFrame()
public JWFrame(String winTitle)
winTitle
- Title placed on window bar.public JWFrame(String winTitle, String mainTitle)
winTitle
- Title placed on window bar.mainTitle
- Main title displayed in dialogue window.Method Detail |
public GridBagConstraints getGBConstraints()
public GridBagLayout getGBLayout()
public Component add(Component c)
add
in class Container
public void addReturnButtons()
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- Event associated with OK button press.public abstract void closeFrame()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |