|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel com.jidesoft.pivot.CornerTableModel
public class CornerTableModel
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
CornerTableModel(IPivotDataModel pivotDataModel)
|
Method Summary | |
---|---|
CellSpan |
getCellSpanAt(int rowIndex,
int columnIndex)
Gets the cell span at the specified row and column. |
CellStyle |
getCellStyleAt(int rowIndex,
int columnIndex)
Gets the cell style at the specified cell. |
int |
getColumnCount()
|
PivotField |
getFieldAt(int rowIndex,
int columnIndex)
Gets the pivot field associated with the cell. |
IPivotDataModel |
getPivotDataModel()
Gets the PivotDataModel. |
int |
getRowCount()
|
Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellSpanOn()
Checks if the span is on. |
boolean |
isCellStyleOn()
Checks if the style is on. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CornerTableModel(IPivotDataModel pivotDataModel)
Method Detail |
---|
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public CellSpan getCellSpanAt(int rowIndex, int columnIndex)
SpanModel
private final CellSpan span = new CellSpan(0,0,1,1);
public CellSpan getCellSpanAt(int row, int col) {
span.setRow(...);
span.setColumn(...);
span.setRowSpan(...);
span.setColumnSpan(...);
return span;
}
For performance consideration, if the cell span has 1 row span and 1 column span, it is better to return null
instead of new CellSpan(row, column, 1, 1).
getCellSpanAt
in interface SpanModel
rowIndex
- the row index.columnIndex
- the column index.
public boolean isCellSpanOn()
SpanModel
isCellSpanOn
in interface SpanModel
public final CellStyle getCellStyleAt(int rowIndex, int columnIndex)
PivotDataModel.setCellStyleProvider(PivotCellStyleProvider)
to provide cell style for HeaderTable.
getCellStyleAt
in interface StyleModel
rowIndex
- columnIndex
-
public final boolean isCellStyleOn()
StyleModel
isCellStyleOn
in interface StyleModel
public IPivotDataModel getPivotDataModel()
public PivotField getFieldAt(int rowIndex, int columnIndex)
rowIndex
- the row indexcolumnIndex
- the column index
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |