public class XMLCode extends java.lang.Object implements ParagraphElement, ParagraphElementParent
TYPE_NONE| Constructor and Description |
|---|
XMLCode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(ParagraphElement element)
Add an element.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.util.List<ParagraphElement> |
getElements()
Return the list of elements.
|
boolean |
hasBackground()
Return true if the code element has a background.
|
void |
setElements(java.util.List<ParagraphElement> elements)
Set the list of elements.
|
void |
setHasBackground(boolean hasBackground)
Set if the code element has a background.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCustomStyles, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStylecountElements, getElement, getFirstElement, getLastElement, hasElements, isEmptypublic java.lang.String getDeclaration()
getDeclaration in interface StyledElementpublic void setHasBackground(boolean hasBackground)
hasBackground - true if the code element has a backgroundpublic boolean hasBackground()
public void setElements(java.util.List<ParagraphElement> elements)
setElements in interface ParagraphElementParentelements - the list of elementspublic void addElement(ParagraphElement element)
addElement in interface ParagraphElementParentelement - the elementpublic java.util.List<ParagraphElement> getElements()
getElements in interface ParagraphElementParentCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence