|
TFORMer SDK - JAVA
7.5
|
Provides access to a FormLayout which is referenced by a Repository or available as stand-alone FormLayout. More...
Public Member Functions | |
| void | design (String designer, boolean showSplashScreen, boolean maximizeWindow, boolean useExistingInstance, String extraParameters) throws TFormerException |
| Opens the FormLayout with TFORMer Designer. 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 FormLayout. More... | |
| DataFieldUsage | getDataFieldUsage (String dataFieldName) throws TFormerException |
| Retrieves the usage of a specific DataField in a FormLayout. More... | |
| String | getDescription () throws TFormerException |
| Gets the description of the FormLayout. More... | |
| String | getFileName () throws TFormerException |
| Gets the filename of the FormLayout. More... | |
| String | getName () throws TFormerException |
| Gets the name of the FormLayout. More... | |
| FormLayout | getNext () throws TFormerException |
| Gets the next FormLayout in the Project. More... | |
| void | setComment (String sComment) throws TFormerException |
| Sets the comment for the FormLayout. More... | |
| void | setDescription (String sDescription) throws TFormerException |
| Sets the description of the FormLayout. More... | |
| void | setFileName (String sFilename) throws TFormerException |
| Sets the filename of the FormLayout. More... | |
| void | setName (String sName) throws TFormerException |
| Sets the name of the FormLayout. More... | |
| String | toString () |
| Returns a string representation of the instance. More... | |
Provides access to a FormLayout which is referenced by a Repository or available as stand-alone FormLayout.
A FormLayout is a document which was created with TFORMer Designer. This class is used to retrieve or set information belonging to a FormLayout.
A typical FormLayout contains static content (like a logo), dynamic content (like a DataField) and a number of properties which are used to describe the FormLayout and its behavior during print-time. Each FormLayout is member of exactly one Project (in the case of a Repository) or the GlobalProject (in the case of a stand-alone FormLayout).
*.tfr.When printing a specific FormLayout within a Repository 3 parameters must be specified to identify the FormLayout:
*.tff.When printing a Job using a stand-alone FormLayout 1 parameter must be specified:
In order to access the data-fields in a FormLayout you may either use the method Project.getDataField or you may iterate through all available data-fields using Project.getFirstDataField and DataField.getNext. If you want to know, whether the returned DataField is actually used you can use the method FormLayout.getDataFieldUsage.
To retrieve the FormLayout object within a stand-alone FormLayout do the following:
To retrieve all FormLayout objects within a Repository do the following:
| void design | ( | String | designer, |
| boolean | showSplashScreen, | ||
| boolean | maximizeWindow, | ||
| boolean | useExistingInstance, | ||
| String | extraParameters | ||
| ) | throws TFormerException |
Opens the FormLayout with TFORMer Designer.
TFORMer SDK on its own cannot be used for editing a FormLayout. Use this method to invoke TFORMer Designer.
| designer | The path and name of the TFORMer Designer executable. If null then the method tries to find the executable automatically |
| showSplashScreen | If set to true the splash screen is shown |
| maximizeWindow | If set to true the TFORMer Designer windows is maximized |
| useExistingInstance | If set to true the form-layout will be opened in an already running TFORMer Designer instance |
| extraParameters | Additional parameters that will be passed to TFORMer Designer |
| 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 |
Gets the comment for the FormLayout.
| DataFieldUsage getDataFieldUsage | ( | String | dataFieldName | ) | throws TFormerException |
Retrieves the usage of a specific DataField in a FormLayout.
| dataFieldName | Name of the DataField to be queried |
nullSample: To query all DataField-objects within a stand-alone FormLayout refer to the code below. The same principle can be used for a Repository-based FormLayout.
| String getDescription | ( | ) | throws TFormerException |
Gets the description of the FormLayout.
| String getFileName | ( | ) | throws TFormerException |
Gets the filename of the FormLayout.
| String getName | ( | ) | throws TFormerException |
Gets the name of the FormLayout.
| FormLayout getNext | ( | ) | throws TFormerException |
Gets the next FormLayout in the Project.
To retrieve the first FormLayout within a Project (or the GlobalProject) refer to Project.getFirstFormLayout. When using a stand-alone FormLayout this property always returns null. In this case only one FormLayout is available - it can be retrieved via Repository.getGlobalProject.
null.| void setComment | ( | String | sComment | ) | throws TFormerException |
Sets the comment for the FormLayout.
| sComment | The comment for the FormLayout |
| void setDescription | ( | String | sDescription | ) | throws TFormerException |
Sets the description of the FormLayout.
| sDescription | The description of the FormLayout |
| void setFileName | ( | String | sFilename | ) | throws TFormerException |
Sets the filename of the FormLayout.
| sFilename | The filename of the FormLayout |
| void setName | ( | String | sName | ) | throws TFormerException |
Sets the name of the FormLayout.
| sName | The name of the FormLayout |
| 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 |