APIdia Launch Partner
Top Fields Constructors Methods
sun.print

public final Class SunPageSelection

extends Object
implements PrintRequestAttribute
Class Inheritance
All Implemented Interfaces
javax.print.attribute.PrintRequestAttribute, javax.print.attribute.Attribute, java.io.Serializable
Annotations
@SuppressWarnings:serial
Imports
javax.print.attribute.Attribute, .PrintRequestAttribute

Field Summary

Modifier and TypeField and Description
public static final SunPageSelection
private int
public static final SunPageSelection
public static final SunPageSelection

Constructor Summary

AccessConstructor and Description
public
SunPageSelection(int value)

Method Summary

Modifier and TypeMethod and Description
public 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 String
getName()

Implements javax.print.attribute.Attribute.getName.

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

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

ALLback to summary
public static final SunPageSelection ALL
pagesback to summary
private int pages
RANGEback to summary
public static final SunPageSelection RANGE
SELECTIONback to summary
public static final SunPageSelection SELECTION

Constructor Detail

SunPageSelectionback to summary
public SunPageSelection(int value)

Method Detail

getCategoryback to summary
public 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.

getNameback to summary
public 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.

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.