|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel com.jstatcom.table.JSCAbstractTableModel com.jstatcom.table.JSCSArrayTableModel
public class JSCSArrayTableModel
Implementation of JSCAbstractTableModel
for
JSCSArray
data objects. It takes the transposed
property into account.
Constructor Summary | |
---|---|
JSCSArrayTableModel(Symbol symbol)
Constructs a table model for a symbol of type JSCTypes.SARRAY . |
Method Summary | |
---|---|
int |
getColumnCount()
|
int |
getRowCount()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isTransposed()
Gets whether the underlying data array is transposed through this model. |
void |
setTransposed(boolean isTransposed)
Sets whether the underlying data array is transposed through this model. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
The data model is editable. |
Methods inherited from class com.jstatcom.table.JSCAbstractTableModel |
---|
getColIndexEditableMap, getJSCData, getRowIndexEditableMap, isCellEditable, isEditable, setColEditableMap, setEditable, setRowEditableMap |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSCSArrayTableModel(Symbol symbol)
JSCTypes.SARRAY
. The argument can be null
.
symbol
- must be of type JSCTypes.SARRAY
, can be
null
java.lang.IllegalArgumentException
- if (symbol.type != JSCTypes.SARRAY)
Method Detail |
---|
public int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
aValue
- must be non null
rowIndex
- the row index, will be treated with taking
transposed
into accountcolumnIndex
- the column index, will be treated with taking
transposed
into account
java.lang.IllegalArgumentException
- if (aValue == null)
public final boolean isTransposed()
true
if transposedpublic final void setTransposed(boolean isTransposed)
getRowCount
, getColumnCount
and
getValueAt
. This property should not affect the original
data but only the model view.
isTransposed
- true
if transposed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |