|
Holger's Java API |
|||||||||
| 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
javax.swing.JFrame
com.antelmann.util.gui.JMainFrame
public class JMainFrame
a convenient JFrame providing some basic nice stuff
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected boolean |
hasStatusBar
|
protected Logger |
logger
Deprecated. |
protected JPanel |
statusBar
|
protected JLabel |
statusLabel
represents the status text if constructed with a status bar |
protected boolean |
verbose
Deprecated. |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| 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 javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JMainFrame()
|
|
JMainFrame(Component content)
|
|
JMainFrame(Component content,
boolean withDefaultMenu,
boolean withStatusBar)
places the given Component in the center of the content pane using BorderLayout |
|
JMainFrame(Component content,
boolean withDefaultMenu,
boolean withStatusBar,
GraphicsConfiguration gc)
places the given Component in the center of the content pane using BorderLayout |
|
JMainFrame(String name)
|
|
JMainFrame(String name,
boolean withMenu,
boolean withStatusBar)
if withStatusBar is set, the content pane will be using BorderLayout and places the status bar SOUTH |
|
| Method Summary | |
|---|---|
void |
complain(String text)
Deprecated. |
void |
dispose()
overwritten to avoid memory leaks as of JDK 1.6 |
String |
getStatusText()
|
boolean |
hasStatusBar()
returns true if the object was constructed with a status bar displayed at BorderLayout.SOUTH of the content pane |
protected void |
initStatusBar()
|
void |
say(String text)
Deprecated. |
void |
setCentralContent(Component content,
boolean pack)
|
void |
setStatusText(String text)
|
void |
updateStatusText(String text)
Deprecated. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
@Deprecated protected Logger logger
protected boolean hasStatusBar
hasStatusBar()protected JLabel statusLabel
protected JPanel statusBar
@Deprecated protected boolean verbose
out and
err respectively; if false, calls to those methods are ignored
say(String),
complain(String)| Constructor Detail |
|---|
public JMainFrame()
public JMainFrame(String name)
public JMainFrame(Component content)
public JMainFrame(String name,
boolean withMenu,
boolean withStatusBar)
public JMainFrame(Component content,
boolean withDefaultMenu,
boolean withStatusBar)
public JMainFrame(Component content,
boolean withDefaultMenu,
boolean withStatusBar,
GraphicsConfiguration gc)
| Method Detail |
|---|
public void setCentralContent(Component content,
boolean pack)
public void dispose()
dispose in class Windowprotected void initStatusBar()
public String getStatusText()
public void setStatusText(String text)
@Deprecated public void updateStatusText(String text)
public boolean hasStatusBar()
@Deprecated public void say(String text)
out if verbose is true
(and also writes the msg to the logger if not null)
@Deprecated public void complain(String text)
err if verbose is true
(and also writes the msg to the logger if not null)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||