public class XMLTableModel
extends javax.swing.table.AbstractTableModel
XMLTableDefinition
repro.
Constructor | Description |
---|---|
XMLTableModel(Document tableDefinition,
java.lang.Object source) |
Creates a TableModel from an XML table definition document and an XML
source
|
XMLTableModel(Element tableDefinition,
java.lang.Object source) |
Creates a TableModel from an XML table definition document and an XML
source
|
XMLTableModel(XMLTableDefinition definition,
java.lang.Object source) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Class<?> |
getColumnClass(int columnIndex) |
|
int |
getColumnCount() |
|
java.lang.String |
getColumnName(int columnIndex) |
|
XMLTableDefinition |
getDefinition() |
Getter for property definition.
|
int |
getRowCount() |
|
java.util.List<Node> |
getRows() |
|
java.lang.Object |
getRowValue(int rowIndex) |
|
java.lang.Object |
getSource() |
Getter for the XML source, which is usually a Node or List of nodes.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
|
protected void |
handleException(java.lang.Exception e) |
|
void |
setDefinition(XMLTableDefinition definition) |
Setter for property definition.
|
void |
setSource(java.lang.Object source) |
Setter for the XML source, which is usually a Node or List of nodes.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public XMLTableModel(Element tableDefinition, java.lang.Object source)
tableDefinition
- DOCUMENT ME!source
- DOCUMENT ME!public XMLTableModel(Document tableDefinition, java.lang.Object source)
tableDefinition
- DOCUMENT ME!source
- DOCUMENT ME!public XMLTableModel(XMLTableDefinition definition, java.lang.Object source)
public java.lang.Object getRowValue(int rowIndex)
public java.util.List<Node> getRows()
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in class javax.swing.table.AbstractTableModel
public int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
public int getRowCount()
public XMLTableDefinition getDefinition()
public void setDefinition(XMLTableDefinition definition)
definition
- New value of property definition.public java.lang.Object getSource()
public void setSource(java.lang.Object source)
source
- New value of property source.protected void handleException(java.lang.Exception e)