|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrintServiceAttributeSet
PrintServiceAttributeSet
specifies an attribute set which only
allows printing attributes of type
PrintServiceAttribute
.
The methods add(Attribute)
and addAll(AttributeSet)
are
respecified in this interface to indicate that only
PrintServiceAttribute
instances are allowed in this set.
Method Summary | |
---|---|
boolean |
add(Attribute attribute)
Adds the specified attribute value to this attribute set if it is not already present. |
boolean |
addAll(AttributeSet attributes)
Adds all of the elements in the specified set to this attribute set. |
Methods inherited from interface javax.print.attribute.AttributeSet |
---|
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, remove, remove, size, toArray |
Method Detail |
---|
boolean add(Attribute attribute)
add
in interface AttributeSet
attribute
- the attribute to add.
true
if the set is changed, false otherwise.
ClassCastException
- if attribute is not of type
PrintServiceAttribute
.
NullPointerException
- if the attribute is null
.
UnmodifiableSetException
- if the set does not support modification.boolean addAll(AttributeSet attributes)
addAll
in interface AttributeSet
attributes
- the set of attributes to add.
true
if the set is changed, false otherwise.
ClassCastException
- if one of the attributes is not of type
PrintServiceAttribute
.
UnmodifiableSetException
- if the set does not support modification.add(Attribute)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |