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, wait
getCustomStyles, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
countElements, getElement, getFirstElement, getLastElement, hasElements, isEmpty
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public 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 ParagraphElementParent
elements
- the list of elementspublic void addElement(ParagraphElement element)
addElement
in interface ParagraphElementParent
element
- the elementpublic java.util.List<ParagraphElement> getElements()
getElements
in interface ParagraphElementParent
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence