net.xoetrope.xui
Class XProjectManager

java.lang.Object
  extended by net.xoetrope.xui.XProjectManager

public class XProjectManager
extends java.lang.Object

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.

Since:
1.03

Copyright (c) Xoetrope Ltd., 2002-2003

$Revision: 2.4 $

License: see License.txt


Field Summary
protected static XProject currentProject
          The current XProject being used
 
Constructor Summary
XProjectManager()
          null ctor
 
Method Summary
static XProject getActiveProject()
          Get the current or active project but unlike the getCurrentProject it does not instantiate a new project if there is no active project.
static XProject getCurrentProject()
          Get the current or active project
static XModel getModel()
          Gets the root instance of the XModel in the current project
static XPageManager getPageManager()
          Gets an instance of the page manager in the current project
static XStyleManager getStyleManager()
          Get a reference to the XStyleManager in the current project
static XmlParserFactory getXmlParserFactory()
          Gets the root instance of the XModel in the current project
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentProject

protected static XProject currentProject
The current XProject being used

Constructor Detail

XProjectManager

public XProjectManager()
null ctor

Method Detail

getCurrentProject

public static XProject getCurrentProject()
Get the current or active project

Returns:
the current project

getActiveProject

public static XProject getActiveProject()
Get the current or active project but unlike the getCurrentProject it does not instantiate a new project if there is no active project.

Returns:
the current project

getStyleManager

public static XStyleManager getStyleManager()
Get a reference to the XStyleManager in the current project

Returns:
the style manager

getPageManager

public static XPageManager getPageManager()
Gets an instance of the page manager in the current project

Returns:
the XPageManager instance

getModel

public static XModel getModel()
Gets the root instance of the XModel in the current project

Returns:
the root XModel node

getXmlParserFactory

public static XmlParserFactory getXmlParserFactory()
Gets the root instance of the XModel in the current project

Returns:
the root XModel node