|
Préférences
Moteurs de recherche
|
|||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.4.2
javax.print.attribute.standard
|
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 |
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.
object
- Object to compare to.
object
is equivalent to this media
attribute, false otherwise.Object.hashCode()
,
Hashtable
public final Class 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"
.