public class PageSequence extends AreaTreeObject
extensionAttachments, foreignAttributes
Constructor and Description |
---|
PageSequence(LineArea title)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addPage(PageViewport page)
Adds a new page to the page sequence
|
java.lang.String |
getCountry()
Returns the country of the page-sequence.
|
java.lang.String |
getLanguage()
Returns the language of the page-sequence.
|
PageViewport |
getPage(int idx)
Returns the page at the given index.
|
int |
getPageCount() |
LineArea |
getTitle() |
boolean |
isFirstPage(PageViewport page)
Indicates whether a page is the first in this page sequence.
|
void |
setCountry(java.lang.String country)
Sets the country that applies to this page-sequence.
|
void |
setLanguage(java.lang.String language)
Sets the language that applies to this page-sequence.
|
void |
setTitle(LineArea title)
Sets the page sequence's title.
|
addExtensionAttachment, clone, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
public PageSequence(LineArea title)
title
- the title for the page-sequence, may be nullpublic LineArea getTitle()
public void setTitle(LineArea title)
title
- the titlepublic void addPage(PageViewport page)
page
- the page to be addedpublic int getPageCount()
public PageViewport getPage(int idx)
idx
- the index of the requested pagepublic boolean isFirstPage(PageViewport page)
page
- the page to be inspectedpublic java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- the language to set ("none" is mapped to null)public java.lang.String getCountry()
public void setCountry(java.lang.String country)
country
- the country to set ("none" is mapped to null)Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.