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, setInlinedStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConditionElementsList, getConditionUniqueElement, hasParentList, hasUniqueElement
getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStyle
getFilteredElements
countElements, getElement, getFirstElement, getLastElement, hasElements, isEmpty
public XMLList(boolean isUL)
isUL
- true for a ul
listpublic void setParentList(XMLList parentList)
setParentList
in interface ListElement
parentList
- the parent listpublic XMLList getParentList()
getParentList
in interface ListElement
public 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 StyledElement
public boolean isUL()
ul
list.ul
listpublic 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(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 ParagraphElementParent
element
- the elementpublic 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