public class XMLTreeItem extends java.lang.Object implements org.docgene.model.TreeElement, org.docgene.model.BorderedElement, ParagraphElementParent
TYPE_NONE| Constructor and Description |
|---|
XMLTreeItem() |
XMLTreeItem(org.docgene.model.TreeElement parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(ParagraphElement element)
Add an element.
|
void |
addItem(XMLTreeItem elt)
Add a tree element to the tree.
|
java.lang.String |
getBorderColor()
Return the item 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 elements.
|
java.lang.String |
getFillColor()
Return the item background color.
|
java.util.List<XMLTreeItem> |
getItems()
Return the list elements in the tree.
|
org.docgene.model.TreeElement |
getParent() |
XMLTree |
getParentTree() |
boolean |
hasBorder() |
boolean |
hasBorderColor() |
boolean |
hasChildren()
Return the tree items elements in the item.
|
boolean |
hasFillColor() |
boolean |
hasShadow()
Return true if the image has a shadowed border.
|
void |
setBorderColor(java.lang.String color)
Set the item 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 item background color.
|
void |
setParent(org.docgene.model.TreeElement parent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConditionElementsList, getElementsList, hasParent, hasUniqueElementgetInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStylecountElements, getElement, getFirstElement, getLastElement, hasElements, isEmptypublic XMLTreeItem(org.docgene.model.TreeElement parent)
public XMLTreeItem()
public void setParent(org.docgene.model.TreeElement parent)
public org.docgene.model.TreeElement getParent()
getParent in interface org.docgene.model.TreeElementpublic XMLTree getParentTree()
getParentTree in interface org.docgene.model.TreeElementpublic java.lang.String getDeclaration()
getDeclaration in interface StyledElementpublic void setCustomStyles(java.util.Set<java.lang.String> classes)
setCustomStyles in interface StyledElementclasses - the custom element classespublic java.util.Set<java.lang.String> getCustomStyles()
getCustomStyles in interface StyledElementpublic 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 ParagraphElementParentpublic final void setBorderType(short borderType)
borderType - the block border typeBorderTypepublic short getBorderType()
getBorderType in interface org.docgene.model.BorderedElementBorderTypepublic boolean hasShadow()
hasShadow in interface org.docgene.model.BorderedElementpublic void setFillColor(java.lang.String color)
color - the background colorpublic java.lang.String getFillColor()
public boolean hasFillColor()
public void setBorderColor(java.lang.String color)
color - the border colorpublic java.lang.String getBorderColor()
public boolean hasBorderColor()
public void addItem(XMLTreeItem elt)
addItem in interface org.docgene.model.TreeElementelt - the tree elementpublic java.util.List<XMLTreeItem> getItems()
public boolean hasChildren()
public boolean hasBorder()
hasBorder in interface org.docgene.model.BorderedElementpublic XMLTreeItem getConditionUniqueElement()
getConditionUniqueElement in interface org.docgene.model.conditions.ConditionElement<XMLTreeItem>Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence