com.dat.cx
Class CxProjectManager

java.lang.Object
  |
  +--com.dat.cx.CxProjectManager

public class CxProjectManager
extends java.lang.Object


Constructor Summary
CxProjectManager(CxComponent rootComponent, java.util.Vector cars)
           
 
Method Summary
 void closeProject()
          Close the current project file
 boolean contains(java.lang.String projectName)
           
 void exportCxFile(CxComponent forComponent, java.lang.String fileName)
           
static CxProject getCurrentProject()
           
 CxProject getProject(java.lang.String projectName)
           
 void importCxFile(java.lang.String fileName)
           
 CxProject includeProject(java.lang.String projectName)
          Include a project file
 boolean isProjectOpen(java.lang.String projectName)
           
 void migrateProject(java.util.Vector excludingProjects)
          Migrate project to a new component tree excluding several includes
 void newProject()
          Initialize project manager with a new project
 java.io.OutputStream openOutputProjectFile(java.lang.String projectName)
          Open output project file
 CxProject openProject(java.lang.String projectName)
          Open a project file
 java.io.InputStreamReader openProjectFile(java.lang.String projectName)
          Open a project file
 void saveProject()
          Save Project
 void saveProjectAs(java.lang.String projectName)
          Save Project
 void setWorkingDirectory(java.lang.String workingDirectory)
          Set working directory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CxProjectManager

public CxProjectManager(CxComponent rootComponent,
                        java.util.Vector cars)
Method Detail

setWorkingDirectory

public void setWorkingDirectory(java.lang.String workingDirectory)
Set working directory
Parameters:
workingDirectory - the directory to write to when saving projects

newProject

public void newProject()
Initialize project manager with a new project

openProject

public CxProject openProject(java.lang.String projectName)
Open a project file
Parameters:
projectName - the (dotted path) name of the project to open

includeProject

public CxProject includeProject(java.lang.String projectName)
Include a project file
Parameters:
projectName - the (dotted path) name of the project to open

closeProject

public void closeProject()
Close the current project file

saveProject

public void saveProject()
                 throws java.io.IOException
Save Project

saveProjectAs

public void saveProjectAs(java.lang.String projectName)
                   throws java.io.IOException
Save Project

isProjectOpen

public boolean isProjectOpen(java.lang.String projectName)

migrateProject

public void migrateProject(java.util.Vector excludingProjects)
Migrate project to a new component tree excluding several includes

openProjectFile

public java.io.InputStreamReader openProjectFile(java.lang.String projectName)
Open a project file
Returns:
input stream for a project file

openOutputProjectFile

public java.io.OutputStream openOutputProjectFile(java.lang.String projectName)
Open output project file
Returns:
output stream for a project file

importCxFile

public void importCxFile(java.lang.String fileName)
                  throws java.io.FileNotFoundException,
                         java.io.IOException,
                         com.dat.cx.SAXException

exportCxFile

public void exportCxFile(CxComponent forComponent,
                         java.lang.String fileName)
                  throws java.io.IOException

getCurrentProject

public static CxProject getCurrentProject()

getProject

public CxProject getProject(java.lang.String projectName)

contains

public boolean contains(java.lang.String projectName)