public final class TableCell extends Object
Provides a table cell.
Constructor and Description |
---|
TableCell(int rowIndex,
int columnIndex,
String text)
Initializes a new instance of the
TableCell class. |
TableCell(int rowIndex,
int columnIndex,
String text,
TableCellBorders borders)
Initializes a new instance of the
TableCell class. |
TableCell(int rowIndex,
int columnIndex,
String text,
TableCellBorders borders,
int rowSpan,
int columnSpan)
Initializes a new instance of the
TableCell class. |
TableCell(int rowIndex,
int columnIndex,
String text,
TableCellBorders borders,
int rowSpan,
int columnSpan,
int sheetIndex)
Initializes a new instance of the
TableCell class. |
Modifier and Type | Method and Description |
---|---|
TableCellBorders |
getBorders()
Gets borders of the cell.
|
int |
getColumnIndex()
Gets an index of the column.
|
int |
getColumnSpan()
Gets a number of the columns.
|
int |
getRowIndex()
Gets an index of the row.
|
int |
getRowSpan()
Gets a number of the rows.
|
int |
getSheetIndex()
Gets an index of the sheet.
|
String |
getText()
Gets a text of the cell.
|
public TableCell(int rowIndex, int columnIndex, String text)
Initializes a new instance of the TableCell
class.
rowIndex
- An index of the row.columnIndex
- An index of the column.text
- A text of the cell.public TableCell(int rowIndex, int columnIndex, String text, TableCellBorders borders)
Initializes a new instance of the TableCell
class.
rowIndex
- An index of the row.columnIndex
- An index of the column.text
- A text of the cell.borders
- A borders of the cell.public TableCell(int rowIndex, int columnIndex, String text, TableCellBorders borders, int rowSpan, int columnSpan)
Initializes a new instance of the TableCell
class.
rowIndex
- An index of the row.columnIndex
- An index of the column.text
- A text of the cell.borders
- A borders of the cell.rowSpan
- A number of the rows.columnSpan
- A number of the columns.public TableCell(int rowIndex, int columnIndex, String text, TableCellBorders borders, int rowSpan, int columnSpan, int sheetIndex)
Initializes a new instance of the TableCell
class.
rowIndex
- An index of the row.columnIndex
- An index of the column.text
- A text of the cell.borders
- A borders of the cell.rowSpan
- A number of the rows.columnSpan
- A number of the columns.sheetIndex
- An index of the sheet.public String getText()
Gets a text of the cell.
public TableCellBorders getBorders()
Gets borders of the cell.
public int getRowIndex()
Gets an index of the row.
public int getColumnIndex()
Gets an index of the column.
public int getSheetIndex()
Gets an index of the sheet.
public int getRowSpan()
Gets a number of the rows.
public int getColumnSpan()
Gets a number of the columns.
Copyright © 2019. All rights reserved.