public class XMLList extends org.docgene.model.AbstractStyledElement implements ListElement, org.docgene.model.conditions.ConditionElementsContainer<ListElement>, ParagraphElementParent
TYPE_NONE| Constructor and Description |
|---|
XMLList(boolean isUL)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConditionElement(org.docgene.model.conditions.ConditionElement<ListElement> elt)
Add a condition element to the list.
|
void |
addElement(ParagraphElement element)
Add an element.
|
XMLListItem |
addItem()
Add a new item in this list.
|
void |
addItem(ListElement elt)
Add a list element to the list.
|
XMLList |
addSubListItem(boolean isUL)
Add a new list as an item of this list.
|
java.util.List<org.docgene.model.conditions.ConditionElement<ListElement>> |
getAllElements() |
short |
getBulletStyle()
Return the bullet style.
|
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.util.List<ListElement> |
getItems(org.docgene.model.globals.ArticlesModel model)
Return the list elements in the list.
|
XMLList |
getParentList()
Return the parent list.
|
int |
getStartItem()
Return the start item of an ordered (ol) list.
|
boolean |
hasStartItem()
Return true if there is a start item of an ordered (ol) list.
|
boolean |
isUL()
Return true for a
ul list. |
void |
setBulletStyle(short bulletStyle)
Set the bullet style.
|
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 |
setParentList(XMLList parentList)
Set the parent list.
|
void |
setStartItem(int startItem)
Set the start item of an ordered (ol) list.
|
getInlinedStyle, setInlinedStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConditionElementsList, getConditionUniqueElement, hasParentList, hasUniqueElementgetInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStylegetFilteredElementscountElements, getElement, getFirstElement, getLastElement, hasElements, isEmptypublic XMLList(boolean isUL)
isUL - true for a ul listpublic void setParentList(XMLList parentList)
setParentList in interface ListElementparentList - the parent listpublic XMLList getParentList()
getParentList in interface ListElementpublic void setBulletStyle(short bulletStyle)
bulletStyle - the bullet stylepublic short getBulletStyle()
public void setStartItem(int startItem)
startItem - the startItempublic int getStartItem()
public boolean hasStartItem()
public java.lang.String getDeclaration()
getDeclaration in interface StyledElementpublic boolean isUL()
ul list.ul listpublic void setCustomStyles(java.util.Set<java.lang.String> classes)
setCustomStyles in interface StyledElementsetCustomStyles in class org.docgene.model.AbstractStyledElementclasses - the custom element classespublic java.util.Set<java.lang.String> getCustomStyles()
getCustomStyles in interface StyledElementgetCustomStyles in class org.docgene.model.AbstractStyledElementpublic void addItem(ListElement elt)
elt - the list elementpublic void addConditionElement(org.docgene.model.conditions.ConditionElement<ListElement> elt)
addConditionElement in interface org.docgene.model.conditions.ConditionElementsContainer<ListElement>elt - the condition elementpublic XMLList addSubListItem(boolean isUL)
isUL - true for a ul listpublic XMLListItem addItem()
public java.util.List<ListElement> getItems(org.docgene.model.globals.ArticlesModel model)
model - the articles modelpublic java.util.List<org.docgene.model.conditions.ConditionElement<ListElement>> getAllElements()
getAllElements in interface org.docgene.model.conditions.ConditionElementsContainer<ListElement>public void addElement(ParagraphElement element)
addElement in interface ParagraphElementParentelement - the elementpublic java.util.List<ParagraphElement> getElements()
getElements in interface ParagraphElementParentpublic void setElements(java.util.List<ParagraphElement> elements)
setElements in interface ParagraphElementParentelements - the list of elementsCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence