Method | Description | |
---|---|---|
TableOfContents ( ) : System | ||
TableOfContents ( List |
||
addSection ( |
Adds the given Resources to the TableOfContents at the location specified by the pathElements. Example: Calling this method with a Resource and new String[] {"chapter1", "paragraph1"} will result in the following:
|
|
addSection ( |
Adds the given Resources to the TableOfContents at the location specified by the pathElements. Example: Calling this method with a Resource and new int[] {0, 0} will result in the following:
|
|
addSection ( |
Calls addTOCReferenceAtLocation after splitting the path using the DEFAULT_PATH_SEPARATOR.
|
|
addSection ( |
Calls addTOCReferenceAtLocation after splitting the path using the given pathSeparator.
|
|
addTOCReference ( |
||
calculateDepth ( ) : int | ||
getAllUniqueResources ( ) : List |
All unique references (unique by href) in the order in which they are referenced to in the table of contents.
|
|
getTocReferences ( ) : List |
||
setTocReferences ( List |
||
size ( ) : int |
The total number of references in this table of contents.
|
Method | Description | |
---|---|---|
calculateDepth ( List |
||
createSectionTitle ( int pathElements, int pathPos, int lastPos, string sectionPrefix, string sectionNumberSeparator ) : string | ||
findTocReferenceByTitle ( string title, List |
Finds the first TOCReference in the given list that has the same title as the given Title.
|
|
getAllUniqueResources ( List |
||
getTotalSize ( List |
||
paddTOCReferences ( List |
public TableOfContents ( List |
||
tocReferences | List |
|
return | System |
public addSection ( |
||
resource | ||
pathElements | String | |
return |
public addSection ( |
||
resource | ||
pathElements | int | |
sectionTitlePrefix | string | |
sectionNumberSeparator | string | |
return |
public addSection ( |
||
resource | ||
path | string | |
return |
public addSection ( |
||
resource | ||
path | string | |
pathSeparator | string | |
return |
public addTOCReference ( |
||
tocReference | ||
return |
public setTocReferences ( List |
||
tocReferences | List |
|
return | void |