All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.access.Printer
java.lang.Object
|
+----com.ibm.as400.access.PrintObject
|
+----com.ibm.as400.access.Printer
- public class Printer
- extends PrintObject
- implements Serializable
The Printer class represents an AS/400 printer.
An instance of this class can be used to manipulate an individual
AS/400 printer.
See Printer Attributes for
valid attributes.
-
Printer()
- Constructs a Printer object.
-
Printer(AS400, String)
- Constructs a Printer object.
-
getName()
- Returns the name of the printer.
-
setName(String)
- Sets the name of the printer.
Printer
public Printer()
- Constructs a Printer object. The AS/400 system and the
name of the printer must be set later. This constructor
is provided for visual application builders that support
JavaBeans. It is not intended for use by application
programmers.
- See Also:
- setSystem, setName
Printer
public Printer(AS400 system,
String printerName)
- Constructs a Printer object. It uses the specified system name and
the printer name that identifies it on that system.
- Parameters:
- system - The AS/400 on which this printer device exists.
- printerName - The name of the printer. It cannot be greater
than 10 characters or less than 1 character
in length.
getName
public String getName()
- Returns the name of the printer.
- Returns:
- The name of the printer.
setName
public void setName(String name) throws PropertyVetoException
- Sets the name of the printer.
- Parameters:
- name - The name of the printer. It cannot be greater
than 10 characters.
- Throws: PropertyVetoException
- If the change is vetoed.
All Packages Class Hierarchy This Package Previous Next Index