APIdia Launch Partner
Top Description Fields Constructors Methods
javafx.print

public final Class PageRange

extends Object
Class Inheritance
Imports
javafx.beans.NamedArg, javafx.beans.property.ReadOnlyIntegerProperty, .ReadOnlyIntegerWrapper

A PageRange is used to select or constrain the job print stream pages to print. Page numbering starts from 1 to correspond to user expectations. The start page must be greater than zero and less than or equal to the endpage. If start and end are equal, the range refers to a single page. Values that exceed the number of job pages are harmlessly ignored during printing.
Since
JavaFX 8.0

Field Summary

Modifier and TypeField and Description
private ReadOnlyIntegerWrapper
private ReadOnlyIntegerWrapper

Constructor Summary

AccessConstructor and Description
public
PageRange(int
the first page in the range.
startPage
,
int
the last page in the range.
endPage
)

Create a new PageRange with the specified start and end page numbers.

Method Summary

Modifier and TypeMethod and Description
private ReadOnlyIntegerWrapper
public final ReadOnlyIntegerProperty

Returns:

the ending page number of the range
endPageProperty
()

IntegerProperty representing the ending page number of the range.

public final int
public final int
private ReadOnlyIntegerWrapper
startPageImplProperty()

IntegerProperty representing the starting page number of the range.

public final ReadOnlyIntegerProperty

Returns:

the starting page number of the range
startPageProperty
()

IntegerProperty representing the starting page number of the range.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

endPageback to summary
private ReadOnlyIntegerWrapper endPage
startPageback to summary
private ReadOnlyIntegerWrapper startPage

Constructor Detail

PageRangeback to summary
public PageRange(int startPage, int endPage)

Create a new PageRange with the specified start and end page numbers.

Parameters
startPage:int

the first page in the range.

endPage:int

the last page in the range.

Exceptions
IllegalArgumentException:
if the page range is not valid

Method Detail

endPageImplPropertyback to summary
private ReadOnlyIntegerWrapper endPageImplProperty()
endPagePropertyback to summary
public final ReadOnlyIntegerProperty endPageProperty()

IntegerProperty representing the ending page number of the range.

Returns:ReadOnlyIntegerProperty

the ending page number of the range

getEndPageback to summary
public final int getEndPage()
getStartPageback to summary
public final int getStartPage()
startPageImplPropertyback to summary
private ReadOnlyIntegerWrapper startPageImplProperty()

IntegerProperty representing the starting page number of the range. See setStartPage() for more information.

startPagePropertyback to summary
public final ReadOnlyIntegerProperty startPageProperty()

IntegerProperty representing the starting page number of the range.

Returns:ReadOnlyIntegerProperty

the starting page number of the range

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.

Annotations
@Override