public class XMLTableModel extends AbstractTableModel
XMLTableDefinition
repro.
Modifier and Type | Field and Description |
---|---|
private XMLTableDefinition |
definition
Holds value of property definition.
|
private List |
rows
The rows evaluated from the row XPath expression
|
private Object |
source
Holds value of property source.
|
listenerList
Constructor and Description |
---|
XMLTableModel(Document tableDefinition,
Object source)
Creates a TableModel from an XML table definition document
and an XML source
|
XMLTableModel(Element tableDefinition,
Object source)
Creates a TableModel from an XML table definition document
and an XML source
|
XMLTableModel(XMLTableDefinition definition,
Object source) |
Modifier and Type | Method and Description |
---|---|
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
XMLTableDefinition |
getDefinition()
Getter for property definition.
|
int |
getRowCount() |
List |
getRows() |
Object |
getRowValue(int rowIndex) |
Object |
getSource()
Getter for the XML source, which is usually a Node or List of nodes.
|
Object |
getValueAt(int rowIndex,
int columnIndex) |
protected void |
handleException(Exception e) |
void |
setDefinition(XMLTableDefinition definition)
Setter for property definition.
|
void |
setSource(Object source)
Setter for the XML source, which is usually a Node or List of nodes.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
private XMLTableDefinition definition
public XMLTableModel(Element tableDefinition, Object source)
public XMLTableModel(Document tableDefinition, Object source)
public XMLTableModel(XMLTableDefinition definition, Object source)
public Object getRowValue(int rowIndex)
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public int getColumnCount()
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Object getValueAt(int rowIndex, int columnIndex)
public int getRowCount()
public XMLTableDefinition getDefinition()
public void setDefinition(XMLTableDefinition definition)
definition
- New value of property definition.public Object getSource()
public void setSource(Object source)
source
- New value of property source.protected void handleException(Exception e)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses