|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.print.attribute.EnumSyntax javax.print.attribute.standard.Media
public abstract class Media
Class Media is a printing attribute class that specifies the medium on which to print.
Media may be specified in different ways.
A Media object is constructed with a value which represents one of the ways in which the Media attribute can be specified.
IPP Compatibility: The category name returned by
getName()
is the IPP attribute name. The enumeration's
integer value is the IPP enum value. The toString()
method
returns the IPP string representation of the attribute value.
Constructor Summary | |
---|---|
protected |
Media(int value)
Constructs a new media attribute specified by name. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Returns whether this media attribute is equivalent to the passed in object. |
Class<? extends Attribute> |
getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value. |
String |
getName()
Get the name of the category of which this attribute value is an instance. |
Methods inherited from class javax.print.attribute.EnumSyntax |
---|
clone, getEnumValueTable, getOffset, getStringTable, getValue, hashCode, readResolve, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Media(int value)
value
- a valueMethod Detail |
---|
public boolean equals(Object object)
object
is not null.
object
is of the same subclass of Media as this object.
equals
in class Object
object
- Object to compare to.
object
is equivalent to this media
attribute, false otherwise.Object.hashCode()
,
Hashtable
public final Class<? extends Attribute> getCategory()
For class Media and any vendor-defined subclasses, the category is class Media itself.
getCategory
in interface Attribute
java.lang.Class
.public final String getName()
For class Media and any vendor-defined subclasses, the category name is
"media"
.
getName
in interface Attribute
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.