com.ibm.as400.access
Class PrinterList

java.lang.Object
  extended by com.ibm.as400.access.PrintObjectList
      extended by com.ibm.as400.access.PrinterList
All Implemented Interfaces:
Serializable

public class PrinterList
extends PrintObjectList
implements Serializable

The PrinterList class is used to build a list of objects of type Printer. The list can be filtered by printer name.

See Also:
Printer, Serialized Form

Constructor Summary
Constructor and Description
PrinterList()
          Constructs a PrinterList object.
PrinterList(AS400 system)
          Constructs a PrinterList object.
 
Method Summary
Modifier and Type Method and Description
 String getPrinterFilter()
          Returns the printer list filter.
 void setPrinterFilter(String printerFilter)
          Sets printer list filter.
 
Methods inherited from class com.ibm.as400.access.PrintObjectList
addPrintObjectListListener, addPropertyChangeListener, addVetoableChangeListener, close, getObject, getObjects, getSystem, isCompleted, openAsynchronously, openSynchronously, removePrintObjectListListener, removePropertyChangeListener, removeVetoableChangeListener, resetAttributesToRetrieve, resetFilter, setAttributesToRetrieve, setCache, setSystem, size, waitForItem, waitForListToComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrinterList

public PrinterList()
Constructs a PrinterList object. The system 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:
PrintObjectList.setSystem(com.ibm.as400.access.AS400)

PrinterList

public PrinterList(AS400 system)
Constructs a PrinterList object. It uses the system name specified.

Parameters:
system - The system on which the printer devices exist.
Method Detail

getPrinterFilter

public String getPrinterFilter()
Returns the printer list filter.


setPrinterFilter

public void setPrinterFilter(String printerFilter)
                      throws PropertyVetoException
Sets printer list filter.

Parameters:
printerFilter - The name of the printers to list. It cannot be greater than 10 characters in length. It can be a specific name, a generic name, or the special value *ALL. The default for the printerFilter is *ALL.
Throws:
PropertyVetoException - If the change is vetoed.