|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.print.attribute.SetOfIntegerSyntax
javax.print.attribute.standard.PageRanges
public final class PageRanges
The PageRanges
printing attribute specifies the
range(s) of pages to be printed in a print job.
Note: The effect of this attribute on jobs with multiple
documents is controlled by the job attribute
MultipleDocumentHandling
.
IPP Compatibility: PageRanges is an IPP 1.1 attribute.
Constructor Summary | |
---|---|
PageRanges(int member)
Constructs a PageRanges object with only one
page to be printed. |
|
PageRanges(int[][] members)
Constructs a PageRanges object with a set
of ranges to be printed. |
|
PageRanges(int lowerBound,
int upperBound)
Constructs a PageRanges object with the
given single range of pages to be printed. |
|
PageRanges(String members)
Constructs a PageRanges object with a set
of ranges to be printed in string array form. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Tests if the given object is equal to this object. |
Class<? extends Attribute> |
getCategory()
Returns category of this class. |
String |
getName()
Returns the name of this attribute. |
Methods inherited from class javax.print.attribute.SetOfIntegerSyntax |
---|
contains, contains, getMembers, hashCode, next, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PageRanges(int member)
PageRanges
object with only one
page to be printed.
member
- the only page to be printed.
IllegalArgumentException
- if member is < 1public PageRanges(int[][] members)
PageRanges
object with a set
of ranges to be printed.
members
- the page ranges to be printed.
IllegalArgumentException
- if any element is invalid
NullPointerException
- if members is null
or any
element of members is null
.public PageRanges(int lowerBound, int upperBound)
PageRanges
object with the
given single range of pages to be printed.
lowerBound
- the lower bound valueupperBound
- the upper bound value
IllegalArgumentException
- if lowerBound <= upperbound
and lowerBound < 1public PageRanges(String members)
PageRanges
object with a set
of ranges to be printed in string array form.
members
- the page ranges to be printed in string form.
IllegalArgumentException
- if any element is invalid.
NullPointerException
- if members is null
or any
element of members is null
.Method Detail |
---|
public boolean equals(Object obj)
equals
in class SetOfIntegerSyntax
obj
- the object to test
true
if both objects are equal,
false
otherwise.Object.hashCode()
public Class<? extends Attribute> getCategory()
getCategory
in interface Attribute
PageRanges
itself.public String getName()
getName
in interface Attribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |