|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.print.TocItem
public class TocItem
Name: TocItem
Description: A class holding informations about table of contents entries (chapters or sessions for example).
Constructor Summary | |
---|---|
TocItem(int level,
String number,
String title,
String tocRelevance)
Constructs a TocItem instance with specific attributes. |
|
TocItem(int level,
String number,
String title,
String tocRelevance,
int page,
float position)
Constructs a TocItem instance with specific attributes. |
Method Summary | |
---|---|
int |
getIndex()
Getter method for the the property index. |
int |
getLevel()
Getter method for the the property level. |
String |
getNumber()
Getter method for the the property number. |
OutlineItem |
getOutline()
Getter method for the the property outline. |
int |
getPage()
Getter method for the the property page. |
float |
getPosition()
Getter method for the the property position. |
String |
getTitle()
Getter method for the the property title. |
String |
getTocRelevance()
Getter method for the the property tocRelevance. |
void |
setIndex(int index)
Setter method for the the property index. |
void |
setOutline(OutlineItem outline)
Setter method for the the property outline. |
protected void |
setPage(int page)
Setter method for the the property page. |
void |
setPosition(float position)
Setter method for the the property position. |
void |
setTocRelevance(String tocRelevance)
Setter method for the the property tocRelevance. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TocItem(int level, String number, String title, String tocRelevance)
level
- The level of the toc entry.number
- The number of the iten.title
- The title of the item.tocRelevance
- The relevance definition, 'toc': only for TOC, 'index' only for index, 'all': view in both, index and TOC.public TocItem(int level, String number, String title, String tocRelevance, int page, float position)
level
- The level of the toc entry.number
- The number of the iten.title
- The title of the item.tocRelevance
- The relevance definition, 'toc': only for TOC, 'index' only for index, 'all': view in both, index and TOC.page
- The page where the item is located.position
- The vertical position of the item.Method Detail |
---|
public int getLevel()
public String getNumber()
public String getTitle()
public int getPage()
protected void setPage(int page)
page
- The value to set for the property page.public float getPosition()
public void setPosition(float position)
position
- The value to set for the property position.public OutlineItem getOutline()
public void setOutline(OutlineItem outline)
outline
- The value to set for the property outline.public String getTocRelevance()
public void setTocRelevance(String tocRelevance)
tocRelevance
- The value to set for the property tocRelevance.public int getIndex()
public void setIndex(int index)
index
- The value to set for the property index.public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |