Package org.odftoolkit.odfdom.changes
Class Row<T>
java.lang.Object
org.odftoolkit.odfdom.changes.Component
org.odftoolkit.odfdom.changes.Row<T>
A MultiCoomponent uses a single XML element to represent multiple components. This container can
be used for spreadsheet row and cell components using repeated elements via an attribute.
- Author:
- svante.schubertATgmail.com
-
Field Summary
Fields inherited from class org.odftoolkit.odfdom.changes.Component
mRootElement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given component to the root elementgetChildNode
(int index) remove
(int index) Removes a component from the text element container.int
A multiple components can be represented by a single XML elementint
size()
All children of the root element will be traversed.Methods inherited from class org.odftoolkit.odfdom.changes.Component
createChildComponent, createChildComponent, createComponent, get, get, getAllStyleGroupingIdProperties, getAllStyleGroupingIdProperties, getChildNode, getChildren, getCorrectStartElementOfChild, getFamily, getFamilyDisplayName, getFamilyID, getFamilyID, getFamilyName, getLastChild, getMainStyleGroupingId, getMainStyleGroupingId, getNextSiblingOf, getOwnerDocument, getParent, getParentOf, getPosition, getPositionString, getRootComponent, getRootElement, getStyleNamePrefix, getStyleNamePrefix, hasRepeated, hasRepeated, indexOf, isComponentRoot, isComponentRoot, isComponentWrapper, isComponentWrapper, isCoveredComponentRoot, isDocumentRoot, isField, isFooterRoot, isHeaderRoot, isRowComponentRoot, isRowComponentRoot, isShapeElement, isTextComponentRoot, isTextComponentRoot, isTextSelection, isWhiteSpaceElement, toString
-
Constructor Details
-
Row
-
-
Method Details
-
repetition
public int repetition()A multiple components can be represented by a single XML element- Overrides:
repetition
in classComponent
- Returns:
- the number of components the elements represents
-
addChild
Adds the given component to the root element -
getChildNode
- Overrides:
getChildNode
in classComponent
- Returns:
- either a text node of size 1 or an element being the root element of a component
-
remove
Removes a component from the text element container. Removes either an element representing a component or text node of size 1 -
size
public int size()All children of the root element will be traversed. If it is a text node the size is added, if it is an element and a component a size of one is added, if it is a marker, for known text marker elements (text:span, text:bookmark) the children are recursive checked
-