public class IlpTGOProject extends IlpProject
This class represents a project file which encapsulates information about datasource and style sheets to be used in the graphic components.
The project file which can be parsed have the following syntax:
<tgo style="file1.css,file2.css,..."> [<datasource javaClass="class name" fileName="contents"/>] </tgo>
Note: This project class is able to handle data sources which
are either IlpDefaultDataSource
or one
of its subclasses. If you are interested in using other data source
implementations, refer to methods IlpProject.readCustomDataSource(org.w3c.dom.Element, ilog.cpl.datasource.IlpDataSource)
and
IlpProject.writeCustomDataSource(org.w3c.dom.Element, ilog.cpl.datasource.IlpDataSource)
.
The XML schema that defines a project file can be found in
(data/ilog/cpl/schema/project.xsd
).
longDescription, shortDescription
Constructor and Description |
---|
IlpTGOProject()
Creates an empty project with the default application context.
|
IlpTGOProject(IlpContext cxt)
Creates an empty project.
|
IlpTGOProject(IlpContext cxt,
URL url)
Reads a project from an XML file.
|
IlpTGOProject(IlpContext cxt,
URL url,
boolean validate)
Reads a project from an XML file.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getProjectSuffix()
Returns the suffix used for project files, in this case, "*.itpr".
|
protected String |
getProjectTag()
Returns the project tag in the XML description.
|
addPropertyChangeListener, addPropertyChangeListener, addStyleSheet, getDataSource, getProjectURL, getProperty, getProperty, getStyleSheet, getStyleSheets, read, readCustomDataSource, removePropertyChangeListener, removePropertyChangeListener, removeStyleSheet, setDataSource, setStyleSheet, setStyleSheets, write, writeCustomDataSource
public IlpTGOProject()
public IlpTGOProject(IlpContext cxt)
public IlpTGOProject(IlpContext cxt, URL url) throws IOException
cxt
- Application contexturl
- The URL of the file containing the XML description of the project.IOException
- If an exception occurred while reading the project file.public IlpTGOProject(IlpContext cxt, URL url, boolean validate) throws IOException
cxt
- Application contexturl
- The URL of the file containing the XML description of the project.validate
- Validates the XML document.IOException
- If an exception occurred while reading the project file.protected String getProjectTag()
getProjectTag
in class IlpProject
protected String getProjectSuffix()
getProjectSuffix
in class IlpProject
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.