org.ujac.print
Class IndexItem

java.lang.Object
  extended by org.ujac.print.IndexItem

public class IndexItem
extends Object

Name: IndexItem
Description: A class for index items.

Author:
lauerc

Constructor Summary
IndexItem(int level, String title)
          Constructs a TocItem instance with specific attributes.
IndexItem(int level, String title, TocItem tocItem)
          Constructs a TocItem instance with specific attributes.
 
Method Summary
 void addTocItem(TocItem tocItem)
          Adds a single TOC item.
 int getLevel()
          Getter method for the the property level.
 String getTitle()
          Getter method for the the property title.
 List getTocItems()
          Getter method for the the property pages.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexItem

public IndexItem(int level,
                 String title)
Constructs a TocItem instance with specific attributes.

Parameters:
level - The level of the toc entry.
title - The title of the item.

IndexItem

public IndexItem(int level,
                 String title,
                 TocItem tocItem)
Constructs a TocItem instance with specific attributes.

Parameters:
level - The level of the toc entry.
title - The title of the item.
tocItem - The associated toc item.
Method Detail

getLevel

public int getLevel()
Getter method for the the property level.

Returns:
The current value of property level.

getTitle

public String getTitle()
Getter method for the the property title.

Returns:
The current value of property title.

getTocItems

public List getTocItems()
Getter method for the the property pages.

Returns:
The current value of property pages.

addTocItem

public void addTocItem(TocItem tocItem)
Adds a single TOC item.

Parameters:
tocItem - The toc item to add.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.