|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.XProjectManager
public class XProjectManager
A central repository for XProjects. Several projects may be run within a single VM instance, for example in the case of a browser where a shared VM is used with multiple applets. The project manager allows only one active or current project.
Copyright (c) Xoetrope Ltd., 2002-2003
$Revision: 2.4 $
License: see License.txt
| Field Summary | |
|---|---|
protected static XProject |
currentProject
The current XProject being used |
protected static java.util.Hashtable |
projects
A store for projects. |
| Constructor Summary | |
|---|---|
XProjectManager()
null ctor |
|
| Method Summary | |
|---|---|
static java.lang.String |
addProject(java.lang.String name,
XProject proj)
Add a new project |
static XProject |
getCurrentProject()
Get the current or active project, in most cases getCurrentProject( XStartupObject ) should be called instead of getCurrentProject. |
static XProject |
getCurrentProject(XStartupObject so)
Get the current or active project. |
static XModel |
getModel()
Deprecated. please use currentProject.getModel() instead |
static XPageManager |
getPageManager()
Deprecated. please use currentProject.getPageManager() instead |
static XProject |
getProject(java.lang.String name)
Get a named project, the project is then set as the current project. |
java.lang.String[] |
getProjectNames()
Get the names of the projects currently loaded |
static XStyleManager |
getStyleManager()
Deprecated. please use currentProject.getStyleManager() instead |
static XmlParserFactory |
getXmlParserFactory()
Deprecated. please use currentProject.getXmlParserFactory() instead |
static void |
setCurrentProject(XProject proj)
Set the current project |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static XProject currentProject
protected static java.util.Hashtable projects
| Constructor Detail |
|---|
public XProjectManager()
| Method Detail |
|---|
public static XProject getCurrentProject()
public static XProject getCurrentProject(XStartupObject so)
so - the startup object that initiates/owns the project
public static void setCurrentProject(XProject proj)
proj - the new current projectpublic static XStyleManager getStyleManager()
public static XPageManager getPageManager()
public static XModel getModel()
public static XmlParserFactory getXmlParserFactory()
public java.lang.String[] getProjectNames()
public static XProject getProject(java.lang.String name)
public static java.lang.String addProject(java.lang.String name,
XProject proj)
name - the name by which the project will be know, if null is passed a
name will be synthesized for the project.proj - the project
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||