|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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 | |
|---|---|
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. |
TableModel |
getModel()
Gets the actual model. |
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. |
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 |
|---|
findColumn, findRow, findRow |
| 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 TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Comparable getRowKey(int row)
ChartModel
getRowKey in interface ChartModelgetRowKey in class AbstractChartModelrow - the index of the row.
public Comparable getColumnKey(int column)
ChartModel
getColumnKey in interface ChartModelgetColumnKey in class AbstractChartModelcolumn - the index of the column.
public String getRowName(int row)
AbstractChartModelrow cannot be found, returns an empty string.
getRowName in interface ChartModelgetRowName in class AbstractChartModelrow - the row being queried.
row.
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable 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 TableModelsetValueAt in class AbstractTableModelpublic TableModel getModel()
ReportModel
getModel in interface ReportModelpublic Locale getLocale()
ReportModel
getLocale in interface ReportModelpublic boolean isLocalized()
ReportModel
isLocalized in interface ReportModelpublic Formatter getFormatter()
ReportModel
getFormatter in interface ReportModelpublic Introspector getIntrospector()
ReportModel
getIntrospector in interface ReportModelprotected abstract MBeanServer getMBeanServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||