project35.desktopDeployment
Class Project35Service
java.lang.Object
project35.desktopDeployment.Project35Service
public class Project35Service
- extends java.lang.Object
This class is reasonably stable. It remains unclear how configurable Project35 should
be if it is to behave as a component in a larger system. for now, developers must
set the following four directories:
in the system component that invokes the service, have something like:
URL modelDirectory = ...
URL helpURL = ...
URL resourceBundleURL = ...
URL iconURL = ...
Project35Service service = new Project35Service();
service.setModelDirectory(modelDirectoryURL);
service.setProject35HelpDirectory(helpURL);
service.setResourceBundleDirectory(resourceBundleURL);
service.setIconDirectory(iconURL);
initialiseSchema();
The model directory will be the folder you would normally put under
project35/dist/models if you were going to use the tool as an application.
the help URL is where you would put project35/dist/help files.
The icon URL is where you would put project35/dist/img icon files.
Copyright (c) 2008 Kevin Garwood for Project35. The original code was
developed by Kevin Garwood for the University of Manchester. Revisions
have been made for Project35, a project that is independent of that
institution. This code is licensed under the Academic Free License
version 3.0. The code attribution for the original code is included here:
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Project35Service
public Project35Service(Project35ApplicationContext project35ApplicationContext,
javax.swing.JDialog dialog)
throws java.io.IOException,
Project35Exception
- Parameters:
project35ApplicationContext
- a HashMap that contains all the environment
variables needed to run the application. for more information on how to
create this variable, consult project35.desktopDeployment.Project35Applicationdialog
- the dialog owner of the Project35 Dialog
- Throws:
java.io.IOException
Project35Exception
Project35Service
public Project35Service(Project35ApplicationContext project35ApplicationContext)
throws java.io.IOException,
Project35Exception
- Parameters:
project35ApplicationContext
- a HashMap that contains all the environment
variables needed to run the application. for more information on how to
create this variable, consult project35.desktopDeployment.Project35Application
- Throws:
java.io.IOException
Project35Exception
Project35Service
public Project35Service(java.io.File servicePropertiesFile)
throws java.io.IOException,
Project35Exception
- Parameters:
servicePropertiesFile
- a file that describes where to find
the model folder and other files Project35 depends on
- Throws:
java.io.IOException
Project35Exception
openFile
public void openFile(java.io.File file)
openFile
public void openFile(java.net.URL url)
getData
public RecordModel getData()
setModal
public void setModal(boolean isModal)
setData
public void setData(java.lang.String dialogTitle,
RecordModel recordModel)
- Parameters:
dialogTitle
- title that will appear in the title bar of the Project35 DialogrecordModel
- the root record model of a data
tree supplied by a client application
start
public void start()
stop
public void stop()