|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.access.PrintObject
com.ibm.as400.access.Printer
public class Printer
The Printer class represents a printer. An instance of this class can be used to manipulate an individual printer. See Printer Attributes for valid attributes.
Field Summary |
---|
Constructor Summary | |
---|---|
Printer()
Constructs a Printer object. |
|
Printer(AS400 system,
String printerName)
Constructs a Printer object. |
Method Summary | |
---|---|
String |
getName()
Returns the name of the printer. |
void |
setAttributes(PrintParameterList attributes)
Sets one or more attributes of the object. |
void |
setName(String name)
Sets the name of the printer. |
Methods inherited from class com.ibm.as400.access.PrintObject |
---|
addPropertyChangeListener, addVetoableChangeListener, getFloatAttribute, getIntegerAttribute, getSingleFloatAttribute, getSingleIntegerAttribute, getSingleStringAttribute, getStringAttribute, getSystem, removePropertyChangeListener, removeVetoableChangeListener, setSystem, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Printer()
PrintObject.setSystem(com.ibm.as400.access.AS400)
,
setName(java.lang.String)
public Printer(AS400 system, String printerName)
system
- The system 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.Method Detail |
---|
public String getName()
public void setAttributes(PrintParameterList attributes) throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException
attributes
- A print parameter list that contains the
attributes to be changed.
AS400Exception
- If the system returns an error message.
AS400SecurityException
- If a security or authority error occurs.
ErrorCompletingRequestException
- If an error occurs before the request is completed.
IOException
- If an error occurs while communicating with the system.
InterruptedException
- If this thread is interrupted.public void setName(String name) throws PropertyVetoException
name
- The name of the printer. It cannot be greater
than 10 characters.
PropertyVetoException
- If the change is vetoed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |