|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectti.chimera.Service
ti.chimera.service.WindowManager
The window manager service provides a way for other parts of the system to display dialogs/docks, toolbars, and menubar entries.
Nested Class Summary | |
static class |
WindowManager.DialogNotClosableException
This exception type is used to abort closing a dialog, if it is not closable for whatever reason. |
Constructor Summary | |
WindowManager()
Class Constructor. |
Method Summary | |
abstract void |
addDock(Dock dock)
|
abstract void |
addMenuBarItem(java.lang.String path,
javax.swing.Action a)
Add a menu bar item. |
abstract void |
addToolBar(javax.swing.JToolBar toolBar)
Add a tool-bar. |
abstract void |
dockUpdated(Dock dock)
|
abstract Dialog |
getDialog(java.lang.String title)
Get a dialog with the specified title. |
abstract boolean |
isVisible()
Show or hide the user interface. |
abstract void |
removeDock(Dock dock)
|
abstract void |
removeMenuBarItem(java.lang.String path,
javax.swing.Action a)
Remove a menu bar item. |
abstract void |
removeToolBar(javax.swing.JToolBar toolBar)
Remove a tool-bar. |
abstract void |
setLookAndFeel(java.lang.String lnfName)
Set the Look & Feel. |
abstract void |
setMode(WindowMode mode)
Set the mode. |
abstract void |
setVisible(boolean b)
Show or hide the user interface. |
Methods inherited from class ti.chimera.Service |
getName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WindowManager()
Method Detail |
public abstract void setMode(WindowMode mode)
mode
- the service implementing the mode which
realizes the display of dialogs/toolbars/menubarpublic abstract void setLookAndFeel(java.lang.String lnfName)
lnfName
- the full name of the class implementing the L&Fpublic abstract Dialog getDialog(java.lang.String title)
JDialog
, because this will behave
properly if the window manager is in DESKTOP_MODE
.
title
- the title of the dialog
public abstract void addDock(Dock dock)
public abstract void removeDock(Dock dock)
public abstract void dockUpdated(Dock dock)
public abstract void addToolBar(javax.swing.JToolBar toolBar)
toolBar
- the tool-bar to addpublic abstract void removeToolBar(javax.swing.JToolBar toolBar)
toolBar
- the tool-bar to removepublic abstract void addMenuBarItem(java.lang.String path, javax.swing.Action a)
actionPerformed
methods will be
in the order that the actions where added. If the action is null, a
separator will be added.
path
- which sub-menu the item should go undera
- the menu bar action to add.removeMenuBarItem(java.lang.String, javax.swing.Action)
public abstract void removeMenuBarItem(java.lang.String path, javax.swing.Action a)
path
- which sub-menu the item should go undera
- the menu bar action to remove.addMenuBarItem(java.lang.String, javax.swing.Action)
public abstract void setVisible(boolean b)
b
- true
to show the user interface, or
false
to hide itpublic abstract boolean isVisible()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |