APIdia Launch Partner
Top Fields Constructors Methods
sun.print

public Class SunAlternateMedia

extends Object
implements PrintRequestAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.PrintRequestAttribute, javax.print.attribute.Attribute, java.io.Serializable
Imports
java.io.Serial, javax.print.attribute.Attribute, .PrintRequestAttribute, javax.print.attribute.standard.Media

Field Summary

Modifier and TypeField and Description
private Media
private static final long
serialVersionUID

Use serialVersionUID from JDK 1.5 for interoperability.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final Class<? extends Attribute>
getCategory()

Implements javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value when it is added to an attribute set.

public Media
public final String
getName()

Implements javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this enumeration value.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

mediaback to summary
private Media media
serialVersionUIDback to summary
private static final long serialVersionUID

Use serialVersionUID from JDK 1.5 for interoperability.

Annotations
@Serial

Constructor Detail

SunAlternateMediaback to summary
public SunAlternateMedia(Media altMedia)

Method Detail

getCategoryback to summary
public final Class<? extends Attribute> getCategory()

Implements javax.print.attribute.Attribute.getCategory.

Doc from javax.print.attribute.Attribute.getCategory.

Get the printing attribute class which is to be used as the "category" for this printing attribute value when it is added to an attribute set.

getMediaback to summary
public Media getMedia()
getNameback to summary
public final String getName()

Implements javax.print.attribute.Attribute.getName.

Doc from javax.print.attribute.Attribute.getName.

Get the name of the category of which this attribute value is an instance.

Note

This method is intended to provide a default, nonlocalized string for the attribute's category. If two attribute objects return the same category from the getCategory() method, they should return the same name from the getName() method.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this enumeration value. The hash code is just this enumeration value's integer value.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.