|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.ooffice.Cell
public class Cell
wrapper around com.sun.star.table.XCell to avoid having to compile with office classes. This Cell class works for OOSpreadsheet and OOTableWriter objects.
getXCell()| Nested Class Summary | |
|---|---|
static class |
Cell.Format
used to format a cell value in OOCalc |
static class |
Cell.Location
represents an immutable cell location in a spreadsheet or a writer document |
| Field Summary |
|---|
| Fields inherited from interface com.sun.star.table.XCell |
|---|
UNOTYPEINFO |
| Method Summary | |
|---|---|
static String |
formatCellAddressString(int row,
int column)
returns 'B2' for 1, 1 and 'A1' for 0, 0 and so on |
static String |
formatCellAddressString(com.sun.star.table.XCell cell)
|
static String |
formatCellAddressString(com.sun.star.table.XCellRange range)
|
int |
getColumn()
|
int |
getError()
|
String |
getFormula()
|
int |
getRow()
|
com.sun.star.table.CellContentType |
getType()
|
double |
getValue()
|
com.sun.star.table.XCell |
getXCell()
returns the embedded cell object (which is not an instance of this class anymore) |
static boolean |
isValidString(String adr)
|
static int |
parseColumnNumber(String cellName)
|
static int |
parseRowNumber(String cellName)
|
void |
setFormula(String string)
|
void |
setValue(double d)
|
String |
toDetailedString()
provides full details of this instance in a String. |
String |
toString()
|
com.sun.star.table.XCell |
unwrap()
returns the embedded instance that this wrapper encloses |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static String formatCellAddressString(int row,
int column)
public static boolean isValidString(String adr)
public static String formatCellAddressString(com.sun.star.table.XCellRange range)
public static int parseColumnNumber(String cellName)
throws IllegalArgumentException
IllegalArgumentException
public static int parseRowNumber(String cellName)
throws IllegalArgumentException
IllegalArgumentExceptionpublic int getRow()
public int getColumn()
public String toString()
toString in class Objectpublic String toDetailedString()
DetailedString
toDetailedString in interface DetailedStringpublic static String formatCellAddressString(com.sun.star.table.XCell cell)
public com.sun.star.table.XCell getXCell()
public com.sun.star.table.XCell unwrap()
Wrapped
unwrap in interface Wrapped<com.sun.star.table.XCell>public String getFormula()
getFormula in interface com.sun.star.table.XCellpublic void setFormula(String string)
setFormula in interface com.sun.star.table.XCellpublic double getValue()
getValue in interface com.sun.star.table.XCellpublic void setValue(double d)
setValue in interface com.sun.star.table.XCellpublic com.sun.star.table.CellContentType getType()
getType in interface com.sun.star.table.XCellpublic int getError()
getError in interface com.sun.star.table.XCell
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||