public class XMLTableModel extends AbstractTableModel
XMLTableDefinition
repro.
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
public XMLTableModel(Element tableDefinition, Object source)
tableDefinition
- DOCUMENT ME!source
- DOCUMENT ME!public XMLTableModel(Document tableDefinition, Object source)
tableDefinition
- DOCUMENT ME!source
- DOCUMENT ME!public XMLTableModel(XMLTableDefinition definition, Object source)
public Object getRowValue(int rowIndex)
public List getRows()
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)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.