public abstract class AbstractStyleTableModel<T extends StyleDataBackend> extends AbstractTableModel implements ElementMetaDataTableModel, GroupingModel
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractStyleTableModel.NotifyChangeTask |
protected class |
AbstractStyleTableModel.SameElementsUpdateDataTask |
listenerList
Constructor and Description |
---|
AbstractStyleTableModel() |
Modifier and Type | Method and Description |
---|---|
protected PropertyEditor |
computeEditor(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData,
int row) |
protected Object |
computeFullValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData,
int row) |
protected abstract Object |
computeInheritValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData,
int rowIndex) |
protected abstract boolean |
defineFullValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData,
Object value) |
Class |
getClassForCell(int rowIndex,
int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
protected T |
getDataBackend() |
protected PropertyEditor |
getDefaultEditor(Class type) |
PropertyEditor |
getEditorForCell(int rowIndex,
int columnIndex) |
String[] |
getExtraFields(int row,
int column) |
GroupingHeader |
getGroupHeader(int index) |
protected GroupingHeader |
getGroupings(int row) |
protected org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData |
getMetaData(int row) |
int |
getRowCount() |
TableStyle |
getTableStyle() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
String |
getValueRole(int row,
int column) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isHeaderRow(int index) |
boolean |
isSynchronous() |
protected GroupingHeader[] |
reconcileState(GroupingHeader[] groupings,
GroupingHeader[] oldGroupings)
Uses the name of the old groupings to set the collapse status of the new groupings so that when a user makes a
selection not all of the groups return to the expanded state.
|
protected void |
setDataBackend(T dataBackend) |
void |
setSynchronous(boolean synchronous) |
void |
setTableStyle(TableStyle tableStyle) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, getColumnClass, removeTableModelListener
public boolean isSynchronous()
public void setSynchronous(boolean synchronous)
protected T getDataBackend()
protected void setDataBackend(T dataBackend)
public int getRowCount()
getRowCount
in interface TableModel
protected org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData getMetaData(int row)
protected GroupingHeader getGroupings(int row)
public TableStyle getTableStyle()
getTableStyle
in interface SortableTableModel
public void setTableStyle(TableStyle tableStyle)
setTableStyle
in interface SortableTableModel
protected GroupingHeader[] reconcileState(GroupingHeader[] groupings, GroupingHeader[] oldGroupings)
groupings
- oldGroupings
- public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
protected abstract Object computeInheritValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData, int rowIndex)
protected abstract boolean defineFullValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData, Object value)
protected Object computeFullValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData, int row)
public Class getClassForCell(int rowIndex, int columnIndex)
getClassForCell
in interface org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
public PropertyEditor getEditorForCell(int rowIndex, int columnIndex)
getEditorForCell
in interface org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
protected PropertyEditor computeEditor(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData, int row)
protected PropertyEditor getDefaultEditor(Class type)
public String getValueRole(int row, int column)
getValueRole
in interface ElementMetaDataTableModel
public String[] getExtraFields(int row, int column)
getExtraFields
in interface ElementMetaDataTableModel
public GroupingHeader getGroupHeader(int index)
getGroupHeader
in interface GroupingModel
public boolean isHeaderRow(int index)
isHeaderRow
in interface GroupingModel
Copyright © 2017 Hitachi Vantara. All rights reserved.