|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.norther.tammi.acorn.jfc.AbstractChartModel org.norther.tammi.sprig.report.model.ReportModelAdapter
public abstract class ReportModelAdapter
An abstract report model adapter.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ReportModelAdapter(TableModel model)
Constructs a new adapter. |
|
ReportModelAdapter(TableModel model,
Locale locale)
Constructs a new adapter with a locale. |
Method Summary | |
---|---|
protected ChartModel |
getChartModel()
Gets the chart model. |
int |
getColumnCount()
|
Comparable<?> |
getColumnKey(int column)
Gets the key of the indexed column. |
String |
getColumnName(int column)
|
Formatter |
getFormatter()
Gets the formatter. |
Introspector |
getIntrospector()
Gets the introspector. |
Locale |
getLocale()
Gets the locale. |
protected abstract MBeanServer |
getMBeanServer()
Gets the current MBean server if available. |
int |
getRowCount()
|
Comparable<?> |
getRowKey(int row)
Gets the key of the indexed row. |
String |
getRowName(int row)
Gets a default name for the row using spreadsheet conventions: 1, 2, 3, etc. |
TableModel |
getTableModel()
Gets the table model. |
Object |
getValueAt(int row,
int column)
|
boolean |
isCellEditable(int row,
int column)
|
boolean |
isLocalized()
Checks if the model is localized. |
void |
setValueAt(Object value,
int row,
int column)
|
Methods inherited from class org.norther.tammi.acorn.jfc.AbstractChartModel |
---|
findColumnKey, findRow, findRowKey |
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 org.norther.tammi.sprig.report.model.ReportModel |
---|
getResourceMap, getVariableRegistry |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, removeTableModelListener |
Constructor Detail |
---|
public ReportModelAdapter(TableModel model)
model
- the model adaptee.public ReportModelAdapter(TableModel model, Locale locale)
model
- the model adaptee.locale
- the report locale.Method Detail |
---|
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getRowName(int row)
AbstractChartModel
row
cannot be found, returns an empty string.
getRowName
in interface ChartModel
getRowName
in class AbstractChartModel
row
- the row being queried.
row
.public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Comparable<?> getRowKey(int row)
ChartModel
getRowKey
in interface ChartModel
getRowKey
in class AbstractChartModel
row
- the index of the row.
public Comparable<?> getColumnKey(int column)
ChartModel
getColumnKey
in interface ChartModel
getColumnKey
in class AbstractChartModel
column
- the index of the column.
public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
public void setValueAt(Object value, int row, int column)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public TableModel getTableModel()
ReportModel
getTableModel
in interface ReportModel
public Locale getLocale()
ReportModel
getLocale
in interface ReportModel
public boolean isLocalized()
ReportModel
isLocalized
in interface ReportModel
public Formatter getFormatter()
ReportModel
getFormatter
in interface ReportModel
public Introspector getIntrospector()
ReportModel
getIntrospector
in interface ReportModel
protected ChartModel getChartModel()
protected abstract MBeanServer getMBeanServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |