org.jopendocument.dom.spreadsheet
Class Cell<D extends ODDocument>
java.lang.Object
org.jopendocument.dom.ODNode
org.jopendocument.dom.StyledNode<S,D>
org.jopendocument.dom.ImmutableDocStyledNode<S,D>
org.jopendocument.dom.spreadsheet.Cell<D>
- Type Parameters:
D - type of document
- Direct Known Subclasses:
- MutableCell
public class Cell<D extends ODDocument>
- extends ImmutableDocStyledNode<S,D>
A cell in a calc document. If you want to change a cell value you must obtain a MutableCell.
- Author:
- Sylvain
setTextValueMode
public static void setTextValueMode(boolean ooMode)
- Set whether
getTextValue() parses strings using the standard way or using the
OpenOffice.org way.
- Parameters:
ooMode - true if strings should be parsed the OO way.- See Also:
getTextValue(boolean)
getTextValueMode
public static boolean getTextValueMode()
getRow
protected final Row<D> getRow()
getNS
protected final XMLVersion getNS()
getValueNS
protected final org.jdom.Namespace getValueNS()
getType
protected final String getType()
getValueType
public final ODValueType getValueType()
getStyleName
protected String getStyleName()
- Overrides:
getStyleName in class StyledNode<CellStyle,D extends ODDocument>
getValue
public Object getValue()
getTextValue
public String getTextValue()
- Calls
getTextValue(boolean) using getTextValueMode().
- Returns:
- a string for the content of this cell.
getTextValue
public String getTextValue(boolean ooMode)
- Return the text value of this cell. This is often the formatted string of a value, e.g.
"11 novembre 2009" for a date. This method doesn't just return the text content it also
parses XML elements (like paragraphs, tabs and line-breaks). For the differences between the
OO way (as of 3.1) and the OpenDocument way see section 5.1.1 White-space Characters of
OpenDocument-v1.0-os and OpenDocument-v1.2-part1. In essence OpenOffice never trim strings.
- Parameters:
ooMode - whether to use the OO way or the standard way.
- Returns:
- a string for the content of this cell.
isValid
public boolean isValid()
getColumnsSpanned
public final int getColumnsSpanned()
getRowsSpanned
public final int getRowsSpanned()
coversOtherCells
protected final boolean coversOtherCells()
getTABLE
protected final org.jdom.Namespace getTABLE()
Copyright © 2010 jOpenDocument All Rights Reserved.