public class CellRef extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ABSOLUTE_COL
The col is absolute
|
static int |
ABSOLUTE_ROW
The row is absolute
|
static int |
ABSOLUTE_TABLE
The table is absolute
|
static int |
RELATIVE
The ref is relative
|
static char |
TABLE_CELL_SEP
The separator for the ref.
|
| Constructor and Description |
|---|
CellRef(TableRef tableRef,
com.github.jferard.fastods.ref.LocalCellRef localCellRef)
Create a position
|
| Modifier and Type | Method and Description |
|---|---|
static CellRef |
create(int r,
int c,
int status) |
boolean |
equals(Object o) |
int |
getColumn() |
int |
getRow() |
int |
hashCode() |
String |
toString()
Returns the address of a cell, in Excel/OO/LO format.
|
void |
write(Appendable appendable) |
public static final char TABLE_CELL_SEP
public static final int RELATIVE
public static final int ABSOLUTE_COL
public static final int ABSOLUTE_ROW
public static final int ABSOLUTE_TABLE
public CellRef(TableRef tableRef, com.github.jferard.fastods.ref.LocalCellRef localCellRef)
tableRef - the ref of the tablelocalCellRef - the ref of the cellpublic static CellRef create(int r, int c, int status)
r - row indexc - column indexstatus - status (abs)public int getColumn()
public int getRow()
public String toString()
Remainder: '[filename]'#[table-name].[col][row]
public void write(Appendable appendable) throws IOException
appendable - the appendable where to writeIOException - neverCopyright © 2016–2021. All rights reserved.