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 TypeClassDescriptionclassRow<T>A MultiCoomponent uses a single XML element to represent multiple components.classTable<T>A MultiCoomponent uses a single XML element to represent multiple components.classThis 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 ComponentJsonOperationConsumer.addElementAsComponent(Component parentComponent, OdfElement newElement, int newPosition) Adds the newElement to the parentComponent.static ComponentComponent.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 ComponentComponent.createComponent(Component parentComponent, OdfElement newChildElement) Component.get(org.json.JSONArray position) protected ComponentComponent.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 voidJsonOperationConsumer.addAnnotation(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, String id, String author, String date) static voidJsonOperationConsumer.addCells(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, int count, Component parentComponent, OdfElement newCellElement, boolean isTextTable) voidAdds the given component as new child component.voidAdds the given component to the root elementvoidAdds the given component to the root elementvoidAdds the given component to the root elementstatic voidJsonOperationConsumer.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 voidJsonOperationConsumer.addDrawing(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, String type, CollabTextDocument opsDoc) static ComponentJsonOperationConsumer.addElementAsComponent(Component parentComponent, OdfElement newElement, int newPosition) Adds the newElement to the parentComponent.static voidJsonOperationConsumer.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 voidJsonOperationConsumer.addLineBreak(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs) static voidJsonOperationConsumer.addNoteSelection(Component rootComponent, org.json.JSONArray start, String type, String position, org.json.JSONObject attrs, String id) static TextParagraphElementBaseJsonOperationConsumer.addParagraph(Component parentComponent, int newPosition, org.json.JSONObject attrs) For the demo document "FruitDepot-SeasonalFruits.odt" the tableElement looks like invalid input: '<'text:p text:style-name="Text_20_body"/>static voidJsonOperationConsumer.addParagraph(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs) For the demo document "FruitDepot-SeasonalFruits.odt" the tableElement looks like invalid input: '<'text:p text:style-name="Text_20_body"/>static voidJsonOperationConsumer.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 voidJsonOperationConsumer.addTab(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs) static voidJsonOperationConsumer.addTable(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, org.json.JSONObject sizeExceeded, String tableName) static voidJsonOperationConsumer.addText(Component rootComponent, org.json.JSONArray start, org.json.JSONObject attrs, String newText) static voidJsonOperationConsumer.changeField(Component rootComponent, OdfContentDom contentDom, org.json.JSONArray start, String type, String representation, org.json.JSONObject attrs) Modify field at the given position invalid input: '<'text:text-input>static ComponentComponent.createChildComponent(int position, Component parentComponent, OdfElement newChildElement) Inserts a component at the given position as childstatic ComponentComponent.createComponent(Component parentComponent, OdfElement newChildElement) static voidJsonOperationConsumer.delete(Component rootComponent, org.json.JSONArray start, org.json.JSONArray end) static voidJsonOperationConsumer.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 voidJsonOperationConsumer.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 StringComponent.getPosition(Component c) protected static StringComponent.getPositionString(Component c) static voidJsonOperationConsumer.move(Component rootComponent, org.json.JSONArray start, org.json.JSONArray to) Move the pointed component to its new destination.static voidJsonOperationConsumer.setColumnsWidth(Component tableComponent, org.json.JSONArray start, org.json.JSONArray tableGrid, boolean isTextTable) static voidJsonOperationConsumer.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 ComponentModifierConstructorDescriptionprotectedComponent(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 TypeMethodDescriptionvoidOdfSchemaDocument.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