Public Member Functions | |
| DocChapter () | |
| DocChapter (String title[]) | |
| DocChapter (DocChapter parent, String title) | |
| Create a new sub chapter within the given parent chapter. | |
| String[] | childTitle (String title) |
| StringBuffer | text () |
| Accessor for attribute text. | |
| StringBuffer | text (StringBuffer text) |
| Mutator for attribute text. | |
| void | addText (String text) |
| Add a piece of text to the chapter contents. | |
| void | addTag (String tag, String attributes, String text) |
| void | addBlock (String text) |
| Add a text block (a div, actually). | |
| void | addParagraph (String text) |
| Add a paragraph. | |
| void | addCode (String text) |
| Add verbatim text that is supposed to be formatted as a code example. | |
| void | addChapterRef (Vector refs, boolean withSubheading, Vector texts) |
| Add a list of references to chapters. | |
| void | addChapterRef (Vector refs, boolean withSubheading) |
| void | addChapterRef (DocChapter ref, boolean withSubheading) |
| Add one reference to a chapter (like addChapterRef(Vector, boolean)). | |
| void | addChapterRef (DocChapter ref, boolean withSubheading, String additionalText) |
| Add one reference to a chapter (like addChapterRef(Vector, boolean)). | |
| void | addChapterRefWithTemplate (DocChapter ref, DocInfo info) |
| Add one reference to a chapter as specified in the DocInfo record. | |
| void | addToRefChapter (DocBuilder builder, DocChapter targetChapter, String subChapterTitle, String additionalText) |
| Add a reference to ourselves to the subchapter of targetChapter with the title subChapterTitle. | |
| void | addToRefChapter (DocBuilder builder, DocChapter targetChapter, String subChapterTitle) |
| Add a reference to ourselves to the subchapter of targetChapter with the title subChapterTitle. | |
| void | addFile (File file) throws DirectorException |
| Add contents read from a (optionally xhtml formatted) text file. | |
| void | addFile (String text) throws DirectorException |
| Add content from a PHTML String. | |
| File | addImage (DocBuilder builder, File imagefile, int maxwidth, int maxheight, String caption) |
| Add an image, optionally with caption. | |
| File | addImage (DocBuilder builder, File imagefile, String caption) |
| Like addImage(DocBuilder, File, int, int, String ), but uses defaults for maxwidth and maxheight argument. | |
| File | addImage (DocBuilder builder, File imagefile) |
| Like addImage(DocBuilder, File, int, int, String ), but uses defaults for maxwidth and maxheight argument. | |
| String[] | title () |
| Accessor for attribute title. | |
| String | heading () |
| Return the actual title text with hierarchy stripped off. | |
| String[] | title (String title[]) |
| Mutator for attribute title. | |
| void | resetText () |
| String | label () |
| Accessor for attribute label. | |
| String | label (String label) |
| Mutator for attribute label. | |
| Vector | aliasLabels () |
| Accessor for attribute aliasLabels. | |
| Vector | aliasLabels (Vector aliasLabels) |
| Mutator for attribute aliasLabels. | |
| String | subheading () |
| Accessor for attribute subheading. | |
| String | subheading (String subheading) |
| Mutator for attribute subheading. | |
| String | toString () |
| String | parentToString () |
| Return string representation of the alleged parent chapter. | |
| Vector | anchors () |
| returns a Vector of anchor names in the parsed text. | |
| Vector | headings () |
| returns a Vector of headings. | |
| Vector | headingLevels () |
| returns a Vector of headingLevels (Integer objects). | |
| Vector | subheadings () |
| returns a Vector of subheadings. | |
| boolean | isReferring (String ref) |
| check if this chapter refers to the passed reference. | |
| void | addRef (String ref) |
| remember the given ref as a reference this chapter refers to. | |
| void | addRef (Vector refs) |
| remember the given refs as a reference this chapter refers to. | |
| void | addRefLabel (String label) |
| remember a reference to the given label as a reference this chapter refers to. | |
| void | addRefLabel (Vector labels) |
| remember the given label references as a reference this chapter refers to. | |
| Vector | findReferences () |
| return a Vector of ref targets this chapter refers to. | |
| boolean | onlyIncludeIfReferred () |
| Accessor for attribute onlyIncludeIfReferred. | |
| boolean | onlyIncludeIfReferred (boolean onlyIncludeIfReferred) |
| Mutator for attribute onlyIncludeIfReferred. | |
Static Public Member Functions | |
| static String | verbatim (String text) |
| Alters text so that it can safely used in xhtml as a verbatim text. | |
Protected Attributes | |
| StringBuffer | text = new StringBuffer() |
| chapter contents | |
| String | title [] = new String[0] |
| chapter title | |
| String | label = "c" + sequence++ |
| Unique label of this chapter. | |
| Vector | aliasLabels = new Vector() |
| alternative labels | |
| String | subheading = null |
| Subheading / Teaser. | |
| boolean | onlyIncludeIfReferred = false |
| if set, chapter is only included in the docu if referred by another chapter | |
|
|
|
|
|
|
|
||||||||||||
|
Create a new sub chapter within the given parent chapter.
|
|
|
Add a text block (a div, actually).
|
|
||||||||||||||||
|
Add one reference to a chapter (like addChapterRef(Vector, boolean)).
|
|
||||||||||||
|
Add one reference to a chapter (like addChapterRef(Vector, boolean)).
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Add a list of references to chapters. For conveniency, the chapter vector may contain null values which are ignored.
|
|
||||||||||||
|
Add one reference to a chapter as specified in the DocInfo record.
|
|
|
Add verbatim text that is supposed to be formatted as a code example.
|
|
|
Add content from a PHTML String.
|
|
|
Add contents read from a (optionally xhtml formatted) text file.
|
|
||||||||||||
|
Like addImage(DocBuilder, File, int, int, String ), but uses defaults for maxwidth and maxheight argument.
|
|
||||||||||||||||
|
Like addImage(DocBuilder, File, int, int, String ), but uses defaults for maxwidth and maxheight argument.
|
|
||||||||||||||||||||||||
|
Add an image, optionally with caption. If the images size exceeds a given limit, a thumbnail is generated and a link to the large image inserted. In case a thumbnail is used, addImage() returns the thumbfile, otherwise it returns null. |
|
|
Add a paragraph.
|
|
|
remember the given refs as a reference this chapter refers to.
|
|
|
remember the given ref as a reference this chapter refers to.
|
|
|
remember the given label references as a reference this chapter refers to.
|
|
|
remember a reference to the given label as a reference this chapter refers to.
|
|
||||||||||||||||
|
|
|
|
Add a piece of text to the chapter contents.
|
|
||||||||||||||||
|
Add a reference to ourselves to the subchapter of targetChapter with the title subChapterTitle. If the subchapter does not exist, creates one. For conveniency, the targetChapter may be null and in this case the method returns without function. |
|
||||||||||||||||||||
|
Add a reference to ourselves to the subchapter of targetChapter with the title subChapterTitle. If the subchapter does not exist, creates one. For conveniency, the targetChapter may be null and in this case the method returns without function. |
|
|
Mutator for attribute aliasLabels. alternative labels |
|
|
Accessor for attribute aliasLabels. alternative labels |
|
|
returns a Vector of anchor names in the parsed text. Each anchor name corresponds with an entry in headings(). |
|
|
|
|
|
return a Vector of ref targets this chapter refers to.
|
|
|
Return the actual title text with hierarchy stripped off. This returns the last component of the title hierarchy. |
|
|
returns a Vector of headingLevels (Integer objects). Each entry corresponds with an entry in anchors() / headings() |
|
|
returns a Vector of headings. Each heading corresponds with an entry in anchors(). |
|
|
check if this chapter refers to the passed reference.
|
|
|
Mutator for attribute label. Unique label of this chapter. |
|
|
Accessor for attribute label. Unique label of this chapter. |
|
|
Mutator for attribute onlyIncludeIfReferred. if set, chapter is only included in the docu if referred by another chapter |
|
|
Accessor for attribute onlyIncludeIfReferred. if set, chapter is only included in the docu if referred by another chapter |
|
|
Return string representation of the alleged parent chapter.
|
|
|
|
|
|
Mutator for attribute subheading. Subheading / Teaser. |
|
|
Accessor for attribute subheading. Subheading / Teaser. |
|
|
returns a Vector of subheadings. Each entry corresponds with an entry in anchors() / headings(). If no subheading is available at an index, an empty string is stored in the list. |
|
|
Mutator for attribute text. chapter contents |
|
|
Accessor for attribute text. chapter contents |
|
|
Mutator for attribute title. chapter title |
|
|
Accessor for attribute title. chapter title |
|
|
|
|
|
Alters text so that it can safely used in xhtml as a verbatim text.
|
|
|
alternative labels
|
|
|
Unique label of this chapter.
|
|
|
if set, chapter is only included in the docu if referred by another chapter
|
|
|
Subheading / Teaser.
|
|
|
chapter contents
|
|
|
chapter title
|
1.4.5