|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.smardec.asc.spantable.TableCell
TableCell is used to store user data and span info in DefaultSpanTableModel.
You have no need to create TableCell's objects directly. In most cases you should
use DefaultSpanTableModel.DefaultSpanTableModel(java.util.Vector, java.util.Vector) or
AbstractTableModel.setValueAt(Object, int, int).
| Constructor Summary | |
TableCell(int rowIndex,
int columnIndex)
Creates TableCell object with the specified rowIndex, columnIndex and null user data. |
|
TableCell(int rowIndex,
int columnIndex,
java.lang.Object data)
Creates TableCell object with the specified rowIndex, columnIndex and user data. |
|
| Method Summary | |
TableCell |
getAnchorCell()
Returns anchor cell for this cell. |
int |
getColumnIndex()
Returns column index of this cell. |
int |
getColumnSpan()
Returns number of spanned columns if this cell is in span, if not 1 is returned. |
java.lang.Object |
getData()
Returns this cell's user object. |
int |
getRowIndex()
Returns row index of this cell. |
int |
getRowSpan()
Returns number of spanned rows if this cell is in span, if not 1 is returned. |
boolean |
isAnchorCell()
Indicates whether this table cell is anchor. |
boolean |
isEditable()
Indicates whether this table cell is editable. |
boolean |
isInSpan()
Indicates whether this table cell is in span. |
void |
setData(java.lang.Object data)
Specifies the user object for this cell to data. |
void |
setEditable(boolean editable)
Specifies whether this table cell should be editable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TableCell(int rowIndex,
int columnIndex,
java.lang.Object data)
TableCell object with the specified rowIndex, columnIndex and user data.
rowIndex - row indexcolumnIndex - column indexdata - user data
public TableCell(int rowIndex,
int columnIndex)
TableCell object with the specified rowIndex, columnIndex and null user data.
rowIndex - row indexcolumnIndex - column index| Method Detail |
public java.lang.Object getData()
setData(Object)public void setData(java.lang.Object data)
data.
data - the Object that constitutes this cell's user-specified datagetData()public boolean isEditable()
true if this cell is editable, false otherwise.AbstractTableModel.isCellEditable(int, int),
DefaultSpanTableModel.DefaultSpanTableModel(java.util.Vector, boolean, java.util.Vector)public void setEditable(boolean editable)
editable - true if this cell should be editable, false otherwise.AbstractTableModel.isCellEditable(int, int),
DefaultSpanTableModel.DefaultSpanTableModel(java.util.Vector, boolean, java.util.Vector)public int getRowIndex()
public int getColumnIndex()
public boolean isAnchorCell()
true if this cell is anchor, false otherwise.public boolean isInSpan()
true if this cell is anchor, false otherwise.public TableCell getAnchorCell()
this is returned.
public int getRowSpan()
public int getColumnSpan()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||