|
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.DataTableModel
public class DataTableModel
The table model for the table in the data area in pivot table.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
DataTableModel(PivotDataModel pivotDataModel)
|
Method Summary | |
---|---|
Class<?> |
getCellClassAt(int rowIndex,
int columnIndex)
Gets the cell type at the cell. |
CellStyle |
getCellStyleAt(int rowIndex,
int columnIndex)
Gets the cell style at the specified row and column. |
int |
getColumnCount()
|
Object |
getColumnIdentifier(int columnIndex)
Returns the identifier of the column in the model. |
String |
getColumnName(int column)
Gets the column name. |
ConverterContext |
getConverterContextAt(int rowIndex,
int columnIndex)
Gets the ConverterContext of the cell. |
PivotField |
getDataFieldAt(int rowIndex,
int columnIndex)
Gets the field at the cell. |
EditorContext |
getEditorContextAt(int rowIndex,
int columnIndex)
Gets the EditorContext of the cell. |
IPivotDataModel |
getPivotDataModel()
|
int |
getRowCount()
|
int |
getRunningTypeAt(int rowIndex,
int columnIndex)
Gets the running type of the cell. |
int |
getSummaryTypeAt(int rowIndex,
int columnIndex)
Gets the summary type of the cell. |
Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isCellStyleOn()
Checks if the style is on. |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
|
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, removeTableModelListener |
Constructor Detail |
---|
public DataTableModel(PivotDataModel pivotDataModel)
Method Detail |
---|
public IPivotDataModel getPivotDataModel()
public int getRowCount()
getRowCount
in interface TableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column index.
public Object getColumnIdentifier(int columnIndex)
ColumnIdentifierTableModel
JideTable
uses this method to get the unique
identifier of this column.
getColumnIdentifier
in interface ColumnIdentifierTableModel
columnIndex
- the index of the column
public int getColumnCount()
getColumnCount
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public int getRunningTypeAt(int rowIndex, int columnIndex)
rowIndex
- the row index.columnIndex
- the column index.
public int getSummaryTypeAt(int rowIndex, int columnIndex)
rowIndex
- the row index.columnIndex
- the column index.
public ConverterContext getConverterContextAt(int rowIndex, int columnIndex)
PivotField.getSummaryClass(int)
to find out the
actual ConverterContext. If getSummaryClass return null, it will use the same ConverterContext as the pivot
field. But if getSummaryClass return another type (such as SUMMARY_COUNT will return Long.class), the
ConverterContext will be null so that the default cell renderer for that particular type will be used.
getConverterContextAt
in interface ContextSensitiveTableModel
rowIndex
- the row index.columnIndex
- the column index.
public EditorContext getEditorContextAt(int rowIndex, int columnIndex)
PivotField.getSummaryClass(int)
to find out the actual
EditorContext. If getSummaryClass return null, it will use the same EditorContext as the pivot field. But if
getSummaryClass return another type (such as SUMMARY_COUNT will return Long.class), the EditorContext will be
null so that the default cell renderer for that particular type will be used.
getEditorContextAt
in interface ContextSensitiveTableModel
rowIndex
- the row index.columnIndex
- the column index.
public Class<?> getCellClassAt(int rowIndex, int columnIndex)
getCellClassAt
in interface ContextSensitiveTableModel
rowIndex
- the row index.columnIndex
- the column index.
public PivotField getDataFieldAt(int rowIndex, int columnIndex)
rowIndex
- the row index.columnIndex
- the column index.
public final CellStyle getCellStyleAt(int rowIndex, int columnIndex)
StyleModel
getCellStyleAt
in interface StyleModel
rowIndex
- the row indexcolumnIndex
- the column index
public final boolean isCellStyleOn()
StyleModel
isCellStyleOn
in interface StyleModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |