wxtpages
Class tocEntry

java.lang.Object
  extended bywxtpages.tocEntry

public class tocEntry
extends java.lang.Object

An instance of tocEntry holds an entry that is prepared for a table of content.


Constructor Summary
tocEntry(java.lang.String ref, java.lang.String text, int lev, java.lang.String cls, java.lang.String theTitle, java.net.URI imUri, java.lang.String target)
          Creates a new instance of tocEntry
 
Method Summary
 int getLevel()
          Get the level
 org.w3c.dom.Element makeAsDiv(org.w3c.dom.Document doc)
          Prepare and return this tocEntry as a div-element
 org.w3c.dom.Element makeAsSpan(org.w3c.dom.Document doc)
          Prepare and return this tocEntry as a span-element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

tocEntry

public tocEntry(java.lang.String ref,
                java.lang.String text,
                int lev,
                java.lang.String cls,
                java.lang.String theTitle,
                java.net.URI imUri,
                java.lang.String target)
Creates a new instance of tocEntry

Parameters:
target - The target frame
ref - The reference
text - The text
lev - The level, to set correct style-class and help sort/split
cls - The classname, css
theTitle - The string for the title - attribute
imUri - The directly usable URI for an image that will represent this page
Method Detail

getLevel

public int getLevel()
Get the level

Returns:
the level assigned to this tocEntry

makeAsDiv

public org.w3c.dom.Element makeAsDiv(org.w3c.dom.Document doc)
Prepare and return this tocEntry as a div-element

Parameters:
doc - The Document that will own the Elemen
Returns:
The constructed Element of type div

makeAsSpan

public org.w3c.dom.Element makeAsSpan(org.w3c.dom.Document doc)
Prepare and return this tocEntry as a span-element

Parameters:
doc - The Document that will own the Elemen
Returns:
The constructed Element of type span