|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.window.support.AbstractGUIWindow<B>
net.sf.doolin.gui.window.support.AbstractRootPaneGUIWindow<B>
B - Type of data for the windowpublic abstract class AbstractRootPaneGUIWindow<B>
Window implementation that allows the management of tool bars and menu bars.
It is based on the JRootPane of the window implementation. This pane
contains a root panel based on a DockLayout
and contains as its main content a window panel,
used to hold the actual content of the window.
| Field Summary | |
|---|---|
protected Map<String,ActionBarContext> |
menuBarContextMap
List of menu bars and their context |
| Constructor Summary | |
|---|---|
AbstractRootPaneGUIWindow()
|
|
| Method Summary | |
|---|---|
protected void |
build()
Builds the window. |
JPanel |
getRootPanel()
Gets the root panel for this window. |
JPanel |
getWindowPanel()
Content panel. |
protected void |
installMenuBar()
Installs the menu bar |
void |
installMenuBar(String id,
ActionBarContext menuBar)
Installs a menu bar in the window for a given context (which can be different form the window's one) |
void |
installToolBar(ToolBar toolBar,
ActionContext actionContext)
Installs a tool bar in the window |
void |
uninstallMenuBar(String id)
Uninstalls a menu bar with the given id |
void |
uninstallToolBar(String id)
Uninstalls a tool bar with the given id |
| Methods inherited from class net.sf.doolin.gui.window.support.AbstractGUIWindow |
|---|
addGUIWindowListener, addView, build, canClose, close, getActionContext, getApplication, getId, getOpenViews, getProperty, getView, getWindowData, getWindowDescriptor, getWindowListeners, isClosed, onPostCreate, removeView, setProperty, showView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.gui.window.GUIWindow |
|---|
display, setWindowIcon, setWindowTitle |
| Field Detail |
|---|
protected final Map<String,ActionBarContext> menuBarContextMap
| Constructor Detail |
|---|
public AbstractRootPaneGUIWindow()
| Method Detail |
|---|
protected void build()
AbstractGUIWindow
build in class AbstractGUIWindow<B>AbstractGUIWindow.getApplication(),
AbstractGUIWindow.getWindowData()public JPanel getRootPanel()
public JPanel getWindowPanel()
GUIWindow
public void installMenuBar(String id,
ActionBarContext menuBar)
GUIWindow
id - ID of the menu barmenuBar - Action bar contextpublic void uninstallMenuBar(String id)
GUIWindow
id - ID of the menu bar to uninstall
public void installToolBar(ToolBar toolBar,
ActionContext actionContext)
GUIWindow
toolBar - Tool bar to installactionContext - Action contextpublic void uninstallToolBar(String id)
GUIWindow
id - ID of the tool bar to uninstallprotected void installMenuBar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||