public class XMLDiv extends AbstractParagraph implements XMLParent, JustifiedElement
elementsALIGNMENT_CENTER, ALIGNMENT_INHERIT, ALIGNMENT_JUSTIFIED, ALIGNMENT_LEFT, ALIGNMENT_NONE, ALIGNMENT_RIGHT, JUSTIFIED_AUTO, JUSTIFIED_CHARACTER, JUSTIFIED_INHERIT, JUSTIFIED_NONE, JUSTIFIED_WORDTYPE_NONE| Modifier and Type | Method and Description |
|---|---|
void |
addChapter(XMLChapter chapter)
Do nothing.
|
void |
addParagraph(AbstractParagraph par)
Do nothing.
|
char |
getAlignment()
Return the alignment of the element.
|
java.util.List<XMLChapter> |
getChapters()
Return null.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
char |
getJustification()
Return the justification of the element.
|
java.util.List<AbstractParagraph> |
getParagraphs()
Return null.
|
XMLParent |
getParent()
Return null.
|
boolean |
isEmpty()
Return true if the div is empty.
|
void |
setAlignment(char alignment)
Set the alignment of the element.
|
void |
setJustification(char justification)
Set the justification of the element.
|
addElement, getElements, removeLastElement, setElementsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountElements, getElement, getFirstElement, getLastElement, hasElementsgetCustomStyles, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStylepublic XMLDiv(XMLParent parent)
public boolean isEmpty()
isEmpty in interface ParagraphElementParentisEmpty in interface XMLParentpublic java.lang.String getDeclaration()
getDeclaration in interface StyledElementpublic void setAlignment(char alignment)
setAlignment in interface JustifiedElementalignment - the alignment typepublic char getAlignment()
getAlignment in interface JustifiedElementpublic void setJustification(char justification)
setJustification in interface JustifiedElementjustification - the justificationpublic char getJustification()
getJustification in interface JustifiedElementpublic XMLParent getParent()
public java.util.List<XMLChapter> getChapters()
getChapters in interface XMLParentpublic void addChapter(XMLChapter chapter)
addChapter in interface XMLParentchapter - the chapterpublic java.util.List<AbstractParagraph> getParagraphs()
getParagraphs in interface XMLParentpublic void addParagraph(AbstractParagraph par)
addParagraph in interface XMLParentpar - the paragraphCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence