|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.easysw.cups.CupsPrinter
| Constructor Summary | |
CupsPrinter(Cups c)
Constructor. |
|
CupsPrinter(Cups c,
java.lang.String name)
Constructor with name. |
|
| Method Summary | |
boolean |
getAttributes(Cups c)
Get the printer's attributes. |
int |
getCopiesDefault()
Get the printer number of copies default. |
java.lang.String |
getJobSheetsDefault()
Get the default job sheets. |
java.lang.String[] |
getJobSheetsSupported()
Get the printer job sheets supported. |
java.lang.String |
getLocation()
Get the printer location. |
int |
getLowerCopiesSupported()
Get the printer lower copies supported. |
java.lang.String |
getMakeAndModel()
Get the printer make and model. |
int |
getOrientationDefault()
Get the default orientation. |
int[] |
getOrientationSupported()
Get the printer orientation supported. |
boolean |
getPageRangesSupported()
Get whether the printer supports page ranges. |
java.lang.String |
getPrinterName()
Get the printer name. |
java.lang.String |
getStateReasons()
Get the printer state reasons. |
java.lang.String |
getStateText()
Get the printer state text. |
boolean |
getStatus(Cups c)
Get the printer's status. |
int |
getUpperCopiesSupported()
Get the printer upper copies supported. |
void |
setDefaults()
Initialize the members with mostly sane values. |
void |
updateAttribute(IPPAttribute a)
Process an attribute from the cups.doRequest() method and move the values into local members. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CupsPrinter(Cups c)
c - Cups object.Cups
public CupsPrinter(Cups c,
java.lang.String name)
c - Cups object.name - Name of printer.Cups| Method Detail |
public void setDefaults()
public boolean getStatus(Cups c)
c - Cups object.Boolean True on success.Cupspublic boolean getAttributes(Cups c)
c - Cups object.Boolean True on success.Cupspublic void updateAttribute(IPPAttribute a)
a - IPPAttribute.IPPAttributes,
IPPValuespublic java.lang.String getPrinterName()
String Printer Name.public java.lang.String getStateText()
String State text.public java.lang.String getStateReasons()
String State reason.public java.lang.String getLocation()
String State location.public java.lang.String getMakeAndModel()
String Make and model.public java.lang.String getJobSheetsDefault()
String Default job sheets.public java.lang.String[] getJobSheetsSupported()
String[] Array of supported job sheets.public int getOrientationDefault()
int Default page orientation.public int[] getOrientationSupported()
int[] Array of supported orientations.public int getLowerCopiesSupported()
int Lower of the range.public int getUpperCopiesSupported()
int Upper of the range.public int getCopiesDefault()
int Default number of copies.public boolean getPageRangesSupported()
boolean True or false.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||