|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jopendocument.dom.ODNode
org.jopendocument.dom.StyledNode<S,D>
org.jopendocument.dom.ImmutableDocStyledNode<S,D>
org.jopendocument.dom.spreadsheet.Cell<D>
D - type of documentpublic class Cell<D extends ODDocument>
A cell in a calc document. If you want to change a cell value you must obtain a MutableCell.
| Method Summary | |
|---|---|
protected boolean |
coversOtherCells()
|
int |
getColumnsSpanned()
|
Calendar |
getDateValue()
Get the date as a Calendar. |
Calendar |
getDateValue(TimeZone tz,
Locale locale)
Get the date as a Calendar with the passed parameters. |
protected org.jdom.Namespace |
getDefaultFormulaNS()
|
String |
getError()
Tries to find out if this cell computation resulted in an error. |
String |
getFormula()
Get the formula text if it's from the default OpenFormula namespace. |
Tuple3<org.jdom.Namespace,String,String> |
getFormulaAndNamespace()
Get the formula text and its namespace. |
static Tuple2.List2<String> |
getFormulaNSPrefix(String formula)
|
protected XMLVersion |
getNS()
|
String |
getRawFormula()
Get the raw value of the formula attribute. |
String |
getRawValue(ODValueType requiredType)
|
protected Row<D> |
getRow()
|
int |
getRowsSpanned()
|
protected String |
getStyleName()
|
protected org.jdom.Namespace |
getTABLE()
|
String |
getTextValue()
Calls getTextValue(boolean) using getTextValueMode(). |
String |
getTextValue(boolean ooMode)
Return the text value of this cell. |
static boolean |
getTextValueMode()
|
protected String |
getType()
|
Object |
getValue()
The value of this cell. |
protected org.jdom.Namespace |
getValueNS()
|
ODValueType |
getValueType()
The value type of this cell. |
protected boolean |
isCovered()
|
boolean |
isEmpty()
|
boolean |
isValid()
|
static void |
setTextValueMode(boolean ooMode)
Set whether getTextValue() parses strings using the standard way or using the
OpenOffice.org way. |
| Methods inherited from class org.jopendocument.dom.ImmutableDocStyledNode |
|---|
getContent, getODDocument |
| Methods inherited from class org.jopendocument.dom.StyledNode |
|---|
getPrivateStyle, getStyle, getStyle, getStyle, getStyle, getStyleDesc, getStyleDesc, getStyleDesc, getStyleStyleDesc, setStyleName, setStyleName |
| Methods inherited from class org.jopendocument.dom.ODNode |
|---|
getElement, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static void setTextValueMode(boolean ooMode)
getTextValue() parses strings using the standard way or using the
OpenOffice.org way.
ooMode - true if strings should be parsed the OO way.getTextValue(boolean)public static boolean getTextValueMode()
public static final Tuple2.List2<String> getFormulaNSPrefix(String formula)
protected final Row<D> getRow()
protected final XMLVersion getNS()
protected final org.jdom.Namespace getValueNS()
protected final String getType()
public final ODValueType getValueType()
null if not specified.protected String getStyleName()
getStyleName in class StyledNode<CellStyle,D extends ODDocument>public final String getRawValue(ODValueType requiredType)
public Object getValue()
null this method assumes
ODValueType.STRING. If the string value is
null returns getTextValue().
null.getValueType()
public final Calendar getDateValue()
throws ParseException
ParseException - if the value couldn't be parsed.ODValueType.getCalendar()
public final Calendar getDateValue(TimeZone tz,
Locale locale)
throws ParseException
tz - the time zone of the returned calendar, null meaning
ODValueType#getTimeZone().locale - the locale of the returned calendar, null meaning
ODValueType#getLocale().
ParseException - if the value couldn't be parsed.ODValueType.parseDateValue(String, TimeZone, Locale, Boolean)public String getTextValue()
getTextValue(boolean) using getTextValueMode().
public String getTextValue(boolean ooMode)
ooMode - whether to use the OO way or the standard way.
public final String getRawFormula()
getFormula()protected final org.jdom.Namespace getDefaultFormulaNS()
public final String getFormula()
throws IllegalStateException
IllegalStateException - if there's no default namespace defined for this version of XML
or if the formula is from a different namespace.getFormulaAndNamespace()public final Tuple3<org.jdom.Namespace,String,String> getFormulaAndNamespace()
MutableCell.setFormulaAndNamespace(org.jopendocument.util.Tuple2). NOTE : XMLVersion.OOo
doesn't support namespaces.
null if not included in this document), the text,
the namespace prefix (can be null), e.g.
[urn:oasis:names:tc:opendocument:xmlns:of:1.2, "sum(A1:A2)", null].getFormula()public String getError()
null.public boolean isValid()
protected final boolean isCovered()
public final boolean isEmpty()
public final int getColumnsSpanned()
public final int getRowsSpanned()
protected final boolean coversOtherCells()
protected final org.jdom.Namespace getTABLE()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||