public class PrinterList
extends java.lang.Object
implements java.io.Serializable
The PrinterList class contains a list of PrintQueueInfo ojbects, which contain details of a remote print queue.
The AdminSession.getPrinterList () method returns an PrinterList containing the list of remote print queues on the remote server.
Constructor and Description |
---|
PrinterList()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addPrinterInfo(PrintQueueInfo prninf)
Add a printer queue information object to the list.
|
void |
clearList()
Clear all printer information objects from the list
|
PrintQueueInfo |
getPrinterInfo(int idx)
Get a printer queue information object from the list
|
int |
NumberOfPrinters()
Get the number of printers in the list
|
public final void addPrinterInfo(PrintQueueInfo prninf)
srvinf
- PrintQueueInfo to add to the list.public final void clearList()
public final PrintQueueInfo getPrinterInfo(int idx) throws java.lang.ArrayIndexOutOfBoundsException
idx
- Index of the printer information to returnjava.lang.ArrayIndexOutOfBoundsException
- If the index is invalidpublic final int NumberOfPrinters()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.