|
TFORMer SDK - JAVA
7.5
|
Provides access to Project information of a Repository or a stand-alone link FormLayout. More...
Public Member Functions | |
| DataField | addDataField (String sName) throws TFormerException |
| Creates and adds a DataField to the Project. More... | |
| DataSource | addDataSource (DataSourceType type, String name) throws TFormerException |
| Creates and adds a DataSource to the Project. More... | |
| FormLayout | addFormLayout (String sName) throws TFormerException |
| Creates and adds a FormLayout to the Project. More... | |
| void | dispose () throws TFormerException |
| Releases the resources allocated by this instance. More... | |
| void | dump (PrintStream s) throws IOException, TFormerException |
| Dumps the current instance into a text stream. More... | |
| String | getComment () throws TFormerException |
| Gets the comment for the Project. More... | |
| DataField | getDataField (String name) throws TFormerException |
| Gets the DataField information from the Project. More... | |
| DataSource | getDataSource (String name) throws TFormerException |
| Gets the DataSource information from the Project. More... | |
| String | getDefaultDirectory () throws TFormerException |
| Gets the default directory of the Project. More... | |
| String | getDescription () throws TFormerException |
| Gets the description of the Project. More... | |
| DataField | getFirstDataField () throws TFormerException |
| Gets the first DataField of the Project. More... | |
| DataSource | getFirstDataSource () throws TFormerException |
| Gets the first DataSource defined in the Project. More... | |
| FormLayout | getFirstFormLayout () throws TFormerException |
| Gets the first FormLayout of the Project. More... | |
| FormLayout | getFormLayout (String sName) throws TFormerException |
| Gets the FormLayout information from the Project. More... | |
| String | getName () throws TFormerException |
| Gets the name of the Project. More... | |
| Project | getNext () throws TFormerException |
| Gets the next Project defined in the Repository. More... | |
| int | getNumberOfDataFields () throws TFormerException |
| Gets the number of DataFields defined in the Project. More... | |
| int | getNumberOfDataSources () throws TFormerException |
| Gets the number of DataSources defined in the Project. More... | |
| int | getNumberOfFormLayouts () throws TFormerException |
| Gets the number of FormLayouts defined in this Project. More... | |
| Repository | getRepository () |
| Return the repository in which the project is defined. More... | |
| void | removeDataField (DataField field) throws TFormerException |
| Removes a DataField from the Project. More... | |
| void | removeDataField (String name) throws TFormerException |
| Removes a DataField from the Project. More... | |
| void | removeDataSource (DataSource dataSource) throws TFormerException |
| Removes the DataSource from the Project. More... | |
| void | removeDataSource (String name) throws TFormerException |
| Removes the DataSource from the Project. More... | |
| void | removeFormLayout (FormLayout form) throws TFormerException |
| Removes a FormLayout from the Project. More... | |
| void | removeFormLayout (String name) throws TFormerException |
| Removes a FormLayout from the Project. More... | |
| void | setComment (String sComment) throws TFormerException |
| Sets the comment for the Project. More... | |
| void | setDescription (String sDescription) throws TFormerException |
| Sets the description of the Project. More... | |
| void | setName (String sName) throws TFormerException |
| Sets the name of the Project. More... | |
| String | toString () |
| Returns a string representation of the instance. More... | |
Provides access to Project information of a Repository or a stand-alone link FormLayout.
This class is used to retrieve or set information belonging to a user-defined Project or to the GlobalProject.
A Project is a logical container for related FormLayout, DataSource and DataField definitions. It divides a Repository into logical units.
Exactly one GlobalProject is available for both a Repository or a stand-alone FormLayout. In the case of a Repository additional Project objects can be created by the user.
In order to access the DataFields in a Project you may either use the method Project.getDataField or you may iterate through all available DataFields using Project.getFirstDataField and DataField.getNext. If you want to know, whether the returned DataField is actually used in a FormLayout you can use the method FormLayout.getDataFieldUsage.
To retrieve all Project objects within a Repository do the following:
| DataField addDataField | ( | String | sName | ) | throws TFormerException |
| DataSource addDataSource | ( | DataSourceType | type, |
| String | name | ||
| ) | throws TFormerException |
Creates and adds a DataSource to the Project.
| type | The type of the DataSource |
| name | The name of the DataSource to be added to the Project |
| FormLayout addFormLayout | ( | String | sName | ) | throws TFormerException |
Creates and adds a FormLayout to the Project.
| sName | The name of the FormLayout to be added to the Project |
| void dispose | ( | ) | throws TFormerException |
Releases the resources allocated by this instance.
Call this method in every case (even in case of exceptions) is this instance is not required anymore.
| void dump | ( | PrintStream | s | ) | throws IOException, TFormerException |
Dumps the current instance into a text stream.
| s | Instance of the stream |
| String getComment | ( | ) | throws TFormerException |
| DataField getDataField | ( | String | name | ) | throws TFormerException |
| DataSource getDataSource | ( | String | name | ) | throws TFormerException |
Gets the DataSource information from the Project.
| name | The name of the DataSource to be retrieved from the Project |
null| String getDefaultDirectory | ( | ) | throws TFormerException |
| String getDescription | ( | ) | throws TFormerException |
| DataField getFirstDataField | ( | ) | throws TFormerException |
| DataSource getFirstDataSource | ( | ) | throws TFormerException |
Gets the first DataSource defined in the Project.
| FormLayout getFirstFormLayout | ( | ) | throws TFormerException |
Gets the first FormLayout of the Project.
null if no FormLayout exists| FormLayout getFormLayout | ( | String | sName | ) | throws TFormerException |
Gets the FormLayout information from the Project.
| sName | The name of the FormLayout to be retrieved from the Project |
null| String getName | ( | ) | throws TFormerException |
| Project getNext | ( | ) | throws TFormerException |
Gets the next Project defined in the Repository.
A Repository stores a list of Project objects. You can use this method to iterate through the list. To retrieve the first Project in the Repository see Repository.getFirstProject.
null | int getNumberOfDataFields | ( | ) | throws TFormerException |
| int getNumberOfDataSources | ( | ) | throws TFormerException |
Gets the number of DataSources defined in the Project.
| int getNumberOfFormLayouts | ( | ) | throws TFormerException |
Gets the number of FormLayouts defined in this Project.
| Repository getRepository | ( | ) |
Return the repository in which the project is defined.
| void removeDataField | ( | DataField | field | ) | throws TFormerException |
| void removeDataField | ( | String | name | ) | throws TFormerException |
| void removeDataSource | ( | DataSource | dataSource | ) | throws TFormerException |
Removes the DataSource from the Project.
| dataSource | The DataSource to be removed from the Project |
| void removeDataSource | ( | String | name | ) | throws TFormerException |
Removes the DataSource from the Project.
| name | The name of the DataSource to be removed from the Project |
| void removeFormLayout | ( | FormLayout | form | ) | throws TFormerException |
| void removeFormLayout | ( | String | name | ) | throws TFormerException |
Removes a FormLayout from the Project.
| name | Name of the FormLayout to be removed |
| void setComment | ( | String | sComment | ) | throws TFormerException |
| void setDescription | ( | String | sDescription | ) | throws TFormerException |
| void setName | ( | String | sName | ) | throws TFormerException |
| String toString | ( | ) |
Returns a string representation of the instance.
| © 2006-2017 - all rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
| Generated on Fri Nov 3 2017 07:59:14 for TFORMer SDK - JAVA with doxygen 1.8.9.1 |