|
||||||||||
| 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
nl.tudelft.simulation.language.swing.JMultiToolbarFrame
public class JMultiToolbarFrame
JMultiToolbarFrame.java .
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
| 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 Vector |
containerStack
A stack of all the toolbar containers -- those "outside" of currentContentPane. |
protected Container |
currentContentPane
The pane you can fiddle with -- to which content can be added, of which the layout can be changed, and so on. |
protected boolean |
isEmpty
Whether the window is empty (i.e., has only an unedited, blank 'untitled' document in it). |
protected Vector |
toolbarStack
A stack of all the toolbars. |
protected Container |
topContainer
The container of currentContentPane. |
| 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.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| 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 | |
|---|---|
JMultiToolbarFrame()
Returns a new JMultiToolbarFrame. |
|
| Method Summary | |
|---|---|
void |
addJToolBar(JToolBar bar,
int align)
Adds another toolbar to the specified side of the frame. |
Container |
getContentPane()
Overrides JFrame.getContentPane(). |
boolean |
isEmpty()
Returns whether the window is empty. |
void |
removeJToolBar(JToolBar bar)
Removes the specified toolbar. |
void |
setEmpty(boolean empty)
Sets whether the window is empty |
| 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 |
|---|
protected Container currentContentPane
protected Vector containerStack
protected Vector toolbarStack
protected Container topContainer
protected boolean isEmpty
| Constructor Detail |
|---|
public JMultiToolbarFrame()
| Method Detail |
|---|
public boolean isEmpty()
public void setEmpty(boolean empty)
empty - Empty frame or notpublic Container getContentPane()
getContentPane in interface RootPaneContainergetContentPane in class JFrame
public void addJToolBar(JToolBar bar,
int align)
bar - The toolbar to add.align - One of SwingConstants.TOP,
SwingConstants.BOTTOM,SwingConstants.LEFT, and
SwingConstants.RIGHT.public void removeJToolBar(JToolBar bar)
bar - Toolbar to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||