Uses of Class
org.odftoolkit.odfdom.changes.Component
Packages that use Component
Package
Description
Representing the "Package Layer", the physical document handling.
-
Uses of Component in org.odftoolkit.odfdom.changes
Subclasses of Component in org.odftoolkit.odfdom.changesModifier and TypeClassDescriptionclass
Row<T>
A MultiCoomponent uses a single XML element to represent multiple components.class
Table<T>
A MultiCoomponent uses a single XML element to represent multiple components.class
This container can be used for components including a mix of text and elements, where each character and element are components.Methods in org.odftoolkit.odfdom.changes that return ComponentModifier and TypeMethodDescriptionstatic Component
JsonOperationConsumer.addElementAsComponent
(Component parentComponent, OdfElement newElement, int newPosition) Adds the newElement to the parentComponent.static Component
Component.createChildComponent
(int position, Component parentComponent, OdfElement newChildElement) Inserts a component at the given position as childComponent.createChildComponent
(OdfElement componentRoot) Appending a child element to the componentstatic Component
Component.createComponent
(Component parentComponent, OdfElement newChildElement) Component.get
(org.json.JSONArray position) protected Component
Component.get
(org.json.JSONArray position, boolean needParent, boolean needFollowingSibling, int depth) Get descendant component by its relative position to this component.Component.getLastChild()
Component.getNextSiblingOf
(org.json.JSONArray position) Get next sibling component of the given position.Component.getParent()
Returns the parent componentComponent.getParentOf
(org.json.JSONArray position) Get parent component of the given positionComponent.getRootComponent()
Methods in org.odftoolkit.odfdom.changes that return types with arguments of type ComponentMethods in org.odftoolkit.odfdom.changes with parameters of type ComponentModifier and TypeMethodDescriptionstatic void
JsonOperationConsumer.addAnnotation
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, String id, String author, String date) static void
JsonOperationConsumer.addCells
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, int count, Component parentComponent, OdfElement newCellElement, boolean isTextTable) void
Adds the given component as new child component.void
Adds the given component to the root elementvoid
Adds the given component to the root elementvoid
Adds the given component to the root elementstatic void
JsonOperationConsumer.addColumns
(Component rootComponent, org.json.JSONArray start, org.json.JSONArray tableGrid, Integer referenceColumnGridPosition, String insertMode) Inserts cells for a new column into a tableElement.static void
JsonOperationConsumer.addDrawing
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, String type, CollabTextDocument opsDoc) static Component
JsonOperationConsumer.addElementAsComponent
(Component parentComponent, OdfElement newElement, int newPosition) Adds the newElement to the parentComponent.static void
JsonOperationConsumer.addField
(Component rootComponent, OdfContentDom contentDom, org.json.JSONArray start, String type, String representation, org.json.JSONObject attrs) Currently all fields are being mapped to a common text field, i.e.static void
JsonOperationConsumer.addLineBreak
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs) static void
JsonOperationConsumer.addNoteSelection
(Component rootComponent, org.json.JSONArray start, String type, String position, org.json.JSONObject attrs, String id) static TextParagraphElementBase
JsonOperationConsumer.addParagraph
(Component parentComponent, int newPosition, org.json.JSONObject attrs) For the demo document "FruitDepot-SeasonalFruits.odt" the tableElement looks like <text:p text:style-name="Text_20_body"/>static void
JsonOperationConsumer.addParagraph
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs) For the demo document "FruitDepot-SeasonalFruits.odt" the tableElement looks like <text:p text:style-name="Text_20_body"/>static void
JsonOperationConsumer.addRows
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, int count, boolean addDefaultCells, int referenceRow, boolean isTextTable) addRows Inserts one or more new rows into a tableElement.static void
JsonOperationConsumer.addTab
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs) static void
JsonOperationConsumer.addTable
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, org.json.JSONObject sizeExceeded, String tableName) static void
JsonOperationConsumer.addText
(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, String newText) static void
JsonOperationConsumer.changeField
(Component rootComponent, OdfContentDom contentDom, org.json.JSONArray start, String type, String representation, org.json.JSONObject attrs) Modify field at the given position <text:text-input>static Component
Component.createChildComponent
(int position, Component parentComponent, OdfElement newChildElement) Inserts a component at the given position as childstatic Component
Component.createComponent
(Component parentComponent, OdfElement newChildElement) static void
JsonOperationConsumer.delete
(Component rootComponent, org.json.JSONArray start, org.json.JSONArray end) static void
JsonOperationConsumer.deleteColumns
(Component rootComponent, org.json.JSONArray start, Integer startGrid, Integer endGrid) Deletes the cells of a single column or multiple columns from a tableElement.static void
JsonOperationConsumer.format
(Component rootComponent, org.json.JSONArray start, org.json.JSONArray end, org.json.JSONObject attrs) Setting attributes on text, require the text container, otherwise the character itself (as paragraph is not child of paragraphprotected String
Component.getPosition
(Component c) protected static String
Component.getPositionString
(Component c) static void
JsonOperationConsumer.move
(Component rootComponent, org.json.JSONArray start, org.json.JSONArray to) Move the pointed component to its new destination.static void
JsonOperationConsumer.setColumnsWidth
(Component tableComponent, org.json.JSONArray start, org.json.JSONArray tableGrid, boolean isTextTable) static void
JsonOperationConsumer.splitParagraph
(Component rootComponent, org.json.JSONArray start) Splits a paragraph into two splitting the text among the two.Constructors in org.odftoolkit.odfdom.changes with parameters of type ComponentModifierConstructorDescriptionprotected
Component
(OdfElement componentElement, Component parent) Row
(OdfElement componentElement, Component parent) Table
(OdfElement componentElement, Component parent) TextContainer
(OdfElement componentElement, Component parent) -
Uses of Component in org.odftoolkit.odfdom.dom
Methods in org.odftoolkit.odfdom.dom that return ComponentModifier and TypeMethodDescriptionOdfSchemaDocument.getRootComponent()
Returns the component tree of the document.Methods in org.odftoolkit.odfdom.dom with parameters of type ComponentModifier and TypeMethodDescriptionvoid
OdfSchemaDocument.setRootComponent
(Component rootComponent) For instance, header and footer have their own component trees aside the main document. -
Uses of Component in org.odftoolkit.odfdom.pkg
Methods in org.odftoolkit.odfdom.pkg that return ComponentMethods in org.odftoolkit.odfdom.pkg with parameters of type Component