Class StyleTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.pentaho.reporting.designer.core.editor.styles.AbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
- org.pentaho.reporting.designer.core.editor.styles.StyleTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
,ElementMetaDataTableModel
,GroupingModel
,SortableTableModel
,org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
public class StyleTableModel extends AbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
StyleTableModel.DefaultStyleDataBackend
-
Nested classes/interfaces inherited from class org.pentaho.reporting.designer.core.editor.styles.AbstractStyleTableModel
AbstractStyleTableModel.NotifyChangeTask, AbstractStyleTableModel.SameElementsUpdateDataTask
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description StyleTableModel()
StyleTableModel(Executor pool)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
computeInheritValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData, int rowIndex)
protected 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)
org.pentaho.reporting.engine.classic.core.Element[]
getData()
PropertyEditor
getEditorForCell(int rowIndex, int columnIndex)
ReportDocumentContext
getReportRenderContext()
Object
getValueAt(int rowIndex, int columnIndex)
boolean
isCellEditable(int rowIndex, int columnIndex)
protected static org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData[]
selectCommonAttributes(org.pentaho.reporting.engine.classic.core.Element[] elements)
void
setData(org.pentaho.reporting.engine.classic.core.Element[] elements)
void
setDataBackend(StyleTableModel.DefaultStyleDataBackend dataBackend)
void
setReportRenderContext(ReportDocumentContext reportRenderContext)
void
setTableStyle(TableStyle tableStyle)
void
setValueAt(Object aValue, int rowIndex, int columnIndex)
protected StyleTableModel.DefaultStyleDataBackend
updateData(org.pentaho.reporting.engine.classic.core.Element[] elements)
-
Methods inherited from class org.pentaho.reporting.designer.core.editor.styles.AbstractStyleTableModel
computeEditor, computeFullValue, getDataBackend, getDefaultEditor, getExtraFields, getGroupHeader, getGroupings, getMetaData, getRowCount, getTableStyle, getValueRole, isHeaderRow, isSynchronous, reconcileState, setSynchronous
-
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
-
StyleTableModel
public StyleTableModel()
-
StyleTableModel
public StyleTableModel(Executor pool)
-
-
Method Detail
-
setTableStyle
public void setTableStyle(TableStyle tableStyle)
- Specified by:
setTableStyle
in interfaceSortableTableModel
- Overrides:
setTableStyle
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
setDataBackend
public void setDataBackend(StyleTableModel.DefaultStyleDataBackend dataBackend)
- Overrides:
setDataBackend
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
updateData
protected StyleTableModel.DefaultStyleDataBackend updateData(org.pentaho.reporting.engine.classic.core.Element[] elements)
-
selectCommonAttributes
protected static org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData[] selectCommonAttributes(org.pentaho.reporting.engine.classic.core.Element[] elements)
-
setData
public void setData(org.pentaho.reporting.engine.classic.core.Element[] elements)
-
getData
public org.pentaho.reporting.engine.classic.core.Element[] getData()
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceTableModel
- Overrides:
getColumnCount
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAt
in interfaceTableModel
- Overrides:
getValueAt
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
defineFullValue
protected boolean defineFullValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData, Object value)
- Specified by:
defineFullValue
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
computeInheritValue
protected Object computeInheritValue(org.pentaho.reporting.engine.classic.core.metadata.StyleMetaData metaData, int rowIndex)
- Specified by:
computeInheritValue
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
getClassForCell
public Class getClassForCell(int rowIndex, int columnIndex)
- Specified by:
getClassForCell
in interfaceorg.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
- Overrides:
getClassForCell
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
getEditorForCell
public PropertyEditor getEditorForCell(int rowIndex, int columnIndex)
- Specified by:
getEditorForCell
in interfaceorg.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
- Overrides:
getEditorForCell
in classAbstractStyleTableModel<StyleTableModel.DefaultStyleDataBackend>
-
getReportRenderContext
public ReportDocumentContext getReportRenderContext()
-
setReportRenderContext
public void setReportRenderContext(ReportDocumentContext reportRenderContext)
-
-