Printer Class Reference
Provides access to Printer information.
More...
List of all members.
Public Member Functions |
| void | dispose () throws TFormerException |
| | Releases the resources allocated into TFORMer runtime by this instance.
|
| void | dump (PrintStream s) throws IOException, TFormerException |
| | Dumps the current instance into a text stream.
|
| String | getComment () throws TFormerException |
| | Gets the comment of the Printer.
|
| String | getDeviceName () throws TFormerException |
| | Gets the device name of the Printer.
|
| String | getName () throws TFormerException |
| | Gets the name of the Printer.
|
| Printer | getNext () throws TFormerException |
| | Gets the next Printer defined in the Repository.
|
| int | getPrinterDeviceType () throws TFormerException |
| | Gets the device type of the Printer.
|
| boolean | isDefault () throws TFormerException |
| | Gets a value indicating whether this Printer is the default Printer.
|
| void | setComment (String sComment) throws TFormerException |
| | Sets the comment of the Printer.
|
| void | setDeviceName (String sDeviceName) throws TFormerException |
| | Sets the device name of the Printer.
|
| void | setName (String sName) throws TFormerException |
| | Sets the name of the Printer.
|
| void | setPrinterDeviceType (int nPrinterDeviceType) throws TFormerException |
| | Sets the device type of the Printer.
|
| String | toString () |
| | Returns a string representation of the instance.
|
Detailed Description
Provides access to Printer information.
This class provides access to Printer-information stored in a Repository. A stand-alone FormLayout does not support Printer-objects!
Thread-safety:
A single instance of this class must not be used by different threads.
Internal use only!
Member Function Documentation
Releases the resources allocated into TFORMer runtime by this instance.
Remember to call this method always after the use of the instance, in order to release the memory allocated.
- Exceptions:
-
Dumps the current instance into a text stream.
- Parameters:
-
- Exceptions:
-
Gets the comment of the Printer.
- Returns:
- the comment
- Exceptions:
-
Gets the device name of the Printer.
- Returns:
- The device name of the Printer.
- Exceptions:
-
Gets the name of the Printer.
- Returns:
- The name of the Printer.
- Exceptions:
-
Gets the next Printer defined in the Repository.
To retrieve the first Printer within a Repository refer to Repository.FirstPrinter.
The property is null if there are no further objects available.
Internal usage only.
- Returns:
- The next Printer object in the list or
null.
- Exceptions:
-
Gets the device type of the Printer.
- Returns:
- The device type of the Printer.
- Exceptions:
-
Gets a value indicating whether this Printer is the default Printer.
- Returns:
true if this Printer is the default Printer; otherwise, false.
- Exceptions:
-
Sets the comment of the Printer.
- Parameters:
-
| sComment | The comment of the Printer. |
- Exceptions:
-
Sets the device name of the Printer.
- Parameters:
-
| sDeviceName | The device name of the Printer. |
- Exceptions:
-
Sets the name of the Printer.
- Parameters:
-
- Exceptions:
-
Sets the device type of the Printer.
- Parameters:
-
| nPrinterDeviceType | The device type of the Printer. |
- Exceptions:
-
Returns a string representation of the instance.
- Returns:
- a string representation of the instance