Class DrillDownParameterTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.pentaho.reporting.designer.core.editor.drilldown.DrillDownParameterTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
,ElementMetaDataTableModel
,GroupingModel
,SortableTableModel
,org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
public class DrillDownParameterTableModel extends AbstractTableModel implements ElementMetaDataTableModel, GroupingModel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description DrillDownParameterTableModel()
Constructs a defaultDefaultTableModel
which is a table of zero columns and zero rows.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getClassForCell(int row, int column)
int
getColumnCount()
Returns the number of columns in the model.String
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ...DrillDownParameter[]
getData()
PropertyEditor
getEditorForCell(int row, int column)
String[]
getExtraFields()
String[]
getExtraFields(int row, int column)
String[]
getFilteredParameterNames()
DrillDownParameter[]
getGroupedData()
GroupingHeader
getGroupHeader(int index)
DrillDownParameter.Type
getParameterType(int row)
int
getRowCount()
Returns the number of rows in the model.TableStyle
getTableStyle()
Object
getValueAt(int rowIndex, int columnIndex)
Returns the value for the cell atcolumnIndex
androwIndex
.String
getValueRole(int row, int column)
boolean
isCellEditable(int rowIndex, int columnIndex)
Returns false.boolean
isHeaderRow(int index)
boolean
isPreferred(int row)
void
setData(DrillDownParameter[] parameter)
void
setExtraFields(String[] extraFields)
void
setFilteredParameterNames(String[] names)
void
setTableStyle(TableStyle tableStyle)
void
setValueAt(Object aValue, int rowIndex, int columnIndex)
protected void
updateData(DrillDownParameter[] elements)
-
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
-
-
-
-
Method Detail
-
getExtraFields
public String[] getExtraFields()
-
setExtraFields
public void setExtraFields(String[] extraFields)
-
getRowCount
public int getRowCount()
Returns the number of rows in the model. AJTable
uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.- Specified by:
getRowCount
in interfaceTableModel
- Returns:
- the number of rows in the model
- See Also:
getColumnCount()
-
getColumnCount
public int getColumnCount()
Returns the number of columns in the model. AJTable
uses this method to determine how many columns it should create and display by default.- Specified by:
getColumnCount
in interfaceTableModel
- Returns:
- the number of columns in the model
- See Also:
getRowCount()
-
getColumnName
public String getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ... Z, AA, AB, etc. Ifcolumn
cannot be found, returns an empty string.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
column
- the column being queried- Returns:
- a string containing the default name of
column
-
getTableStyle
public TableStyle getTableStyle()
- Specified by:
getTableStyle
in interfaceSortableTableModel
-
setTableStyle
public void setTableStyle(TableStyle tableStyle)
- Specified by:
setTableStyle
in interfaceSortableTableModel
-
updateData
protected void updateData(DrillDownParameter[] elements)
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
Returns the value for the cell atcolumnIndex
androwIndex
.- Specified by:
getValueAt
in interfaceTableModel
- Parameters:
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queried- Returns:
- the value Object at the specified cell
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
Returns false. This is the default implementation for all cells.- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- Parameters:
rowIndex
- the row being queriedcolumnIndex
- the column being queried- Returns:
- false
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
getClassForCell
public Class getClassForCell(int row, int column)
- Specified by:
getClassForCell
in interfaceorg.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
-
getEditorForCell
public PropertyEditor getEditorForCell(int row, int column)
- Specified by:
getEditorForCell
in interfaceorg.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
-
getValueRole
public String getValueRole(int row, int column)
- Specified by:
getValueRole
in interfaceElementMetaDataTableModel
-
getExtraFields
public String[] getExtraFields(int row, int column)
- Specified by:
getExtraFields
in interfaceElementMetaDataTableModel
-
getGroupHeader
public GroupingHeader getGroupHeader(int index)
- Specified by:
getGroupHeader
in interfaceGroupingModel
-
isHeaderRow
public boolean isHeaderRow(int index)
- Specified by:
isHeaderRow
in interfaceGroupingModel
-
getFilteredParameterNames
public String[] getFilteredParameterNames()
-
setFilteredParameterNames
public void setFilteredParameterNames(String[] names)
-
setData
public void setData(DrillDownParameter[] parameter)
-
getData
public DrillDownParameter[] getData()
-
getGroupedData
public DrillDownParameter[] getGroupedData()
-
getParameterType
public DrillDownParameter.Type getParameterType(int row)
-
isPreferred
public boolean isPreferred(int row)
-
-