| java.lang.Object ti.chimera.Service ti.chimera.service.WindowManager
WindowManager | abstract public class WindowManager extends ti.chimera.Service (Code) | | The window manager service provides a way for other parts of the system
to display dialogs/docks, toolbars, and menubar entries.
author: Rob Clark version: 0.1 |
Inner Class :public static class DialogNotClosableException extends RuntimeException | |
WindowManager | public WindowManager()(Code) | | Class Constructor.
|
addDock | abstract public void addDock(Dock dock)(Code) | | |
addMenuBarItem | abstract public void addMenuBarItem(String path, Action a)(Code) | | Add a menu bar item. The path of the action is "/" seperated "path" of
the action, such as "/File/Open". Multiple actions with the same path
and name can exist, in which case when the user selects that entry from
the pull-down menus, the actionPerformed methods will be
in the order that the actions where added. If the action is null, a
separator will be added.
Parameters: path - which sub-menu the item should go under Parameters: a - the menu bar action to add. See Also: WindowManager.removeMenuBarItem |
addToolBar | abstract public void addToolBar(JToolBar toolBar)(Code) | | Add a tool-bar.
Parameters: toolBar - the tool-bar to add |
dockUpdated | abstract public void dockUpdated(Dock dock)(Code) | | |
getDialog | abstract public Dialog getDialog(String title)(Code) | | Get a dialog with the specified title. This method should be used,
rather than creating a JDialog , because this will behave
properly if the window manager is in DESKTOP_MODE .
Parameters: title - the title of the dialog a dialog |
isVisible | abstract public boolean isVisible()(Code) | | Show or hide the user interface.
Parameters: b - true to show the user interface, or false to hide it |
removeDock | abstract public void removeDock(Dock dock)(Code) | | |
removeMenuBarItem | abstract public void removeMenuBarItem(String path, Action a)(Code) | | Remove a menu bar item.
Parameters: path - which sub-menu the item should go under Parameters: a - the menu bar action to remove. See Also: WindowManager.addMenuBarItem |
removeToolBar | abstract public void removeToolBar(JToolBar toolBar)(Code) | | Remove a tool-bar.
Parameters: toolBar - the tool-bar to remove |
setLookAndFeel | abstract public void setLookAndFeel(String lnfName)(Code) | | Set the Look & Feel. Swing supports multiple look&feels, depending
on the platform. (For example: Metal, Motif, Windows, MacOSX, plus
any 3rd party L&F that the user has installed.)
Parameters: lnfName - the full name of the class implementing the L&F |
setMode | abstract public void setMode(WindowMode mode)(Code) | | Set the mode. The mode implements the actual display of the
user interface to the user.
Parameters: mode - the service implementing the mode whichrealizes the display of dialogs/toolbars/menubar |
setVisible | abstract public void setVisible(boolean b)(Code) | | Show or hide the user interface.
Parameters: b - true to show the user interface, or false to hide it |
|
|