public class XMLTree extends org.docgene.model.AbstractStyledElement implements org.docgene.model.TreeElement, org.docgene.model.BorderedElement, org.docgene.model.conditions.ConditionElementsContainer<XMLTreeItem>, ParagraphElementParent
TYPE_NONE
Constructor and Description |
---|
XMLTree()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addConditionElement(org.docgene.model.conditions.ConditionElement<XMLTreeItem> elt)
Add a condition element to the list.
|
void |
addElement(ParagraphElement element)
Add an element.
|
void |
addItem(XMLTreeItem elt)
Add a list element to the list.
|
java.util.List<org.docgene.model.conditions.ConditionElement<XMLTreeItem>> |
getAllElements() |
java.lang.String |
getBorderColor()
Return the tree border color.
|
short |
getBorderType()
Return the block border type.
|
XMLTreeItem |
getConditionUniqueElement()
Return the unique element for a condition.
|
java.util.Set<java.lang.String> |
getCustomStyles()
Return the element custom classes.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.util.List<ParagraphElement> |
getElements()
Return the list of children elements.
|
java.lang.String |
getFillColor()
Return the tree background color.
|
java.util.List<XMLTreeItem> |
getItems(org.docgene.model.globals.ArticlesModel model)
Return the tree elements in the list.
|
org.docgene.model.TreeElement |
getParent() |
XMLTree |
getParentTree() |
boolean |
hasShadow()
Return true if the image has a shadowed border.
|
void |
setBorderColor(java.lang.String color)
Set the tree border color.
|
void |
setBorderType(short borderType)
Set if the block border type.
|
void |
setCustomStyles(java.util.Set<java.lang.String> classes)
Set the element custom classes.
|
void |
setElements(java.util.List<ParagraphElement> elements)
Set the list of elements.
|
void |
setFillColor(java.lang.String color)
Set the tree background color.
|
getInlinedStyle, setInlinedStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConditionElementsList, getElementsList, hasParent, hasUniqueElement
getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStyle
getFilteredElements
countElements, getElement, getFirstElement, getLastElement, hasElements, isEmpty
public org.docgene.model.TreeElement getParent()
getParent
in interface org.docgene.model.TreeElement
public XMLTree getParentTree()
getParentTree
in interface org.docgene.model.TreeElement
public final void setBorderType(short borderType)
borderType
- the block border typeBorderType
public short getBorderType()
getBorderType
in interface org.docgene.model.BorderedElement
BorderType
public boolean hasShadow()
hasShadow
in interface org.docgene.model.BorderedElement
public void setFillColor(java.lang.String color)
color
- the background colorpublic java.lang.String getFillColor()
public void setBorderColor(java.lang.String color)
color
- the border colorpublic java.lang.String getBorderColor()
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public void setCustomStyles(java.util.Set<java.lang.String> classes)
setCustomStyles
in interface StyledElement
setCustomStyles
in class org.docgene.model.AbstractStyledElement
classes
- the custom element classespublic java.util.Set<java.lang.String> getCustomStyles()
getCustomStyles
in interface StyledElement
getCustomStyles
in class org.docgene.model.AbstractStyledElement
public void addItem(XMLTreeItem elt)
addItem
in interface org.docgene.model.TreeElement
elt
- the list elementpublic void addConditionElement(org.docgene.model.conditions.ConditionElement<XMLTreeItem> elt)
addConditionElement
in interface org.docgene.model.conditions.ConditionElementsContainer<XMLTreeItem>
elt
- the condition elementpublic java.util.List<XMLTreeItem> getItems(org.docgene.model.globals.ArticlesModel model)
model
- the articles modelpublic java.util.List<org.docgene.model.conditions.ConditionElement<XMLTreeItem>> getAllElements()
getAllElements
in interface org.docgene.model.conditions.ConditionElementsContainer<XMLTreeItem>
public void addElement(ParagraphElement element)
addElement
in interface ParagraphElementParent
element
- the elementpublic XMLTreeItem getConditionUniqueElement()
getConditionUniqueElement
in interface org.docgene.model.conditions.ConditionElement<XMLTreeItem>
public java.util.List<ParagraphElement> getElements()
getElements
in interface ParagraphElementParent
public void setElements(java.util.List<ParagraphElement> elements)
setElements
in interface ParagraphElementParent
elements
- the list of elementsCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence