|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--javax.swing.table.DefaultTableModel | +--com.klg.jclass.util.xml.JCXMLTableModel
Populates a swing TableModel
with data taken from an incoming
stream of data formatted according to the XML specification in
com.klg.jclass.util.xml.JCTableXMLParser
.
Field Summary | |
protected com.klg.jclass.util.xml.JCTableXMLParser |
parser
Parser used to parse the XML-formatted data. |
Fields inherited from class javax.swing.table.DefaultTableModel |
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
JCXMLTableModel()
Default constructor. |
|
JCXMLTableModel(InputStream i)
Populates this TableModel from the given input stream. |
Method Summary | |
void |
read(Reader r)
Reads and parses data to populate this table. |
protected void |
readFromStream(InputStream i)
Reads data from an InputStream to populate this table. |
void |
setTableData(Vector rowV,
Vector rowLabelV,
Vector colLabelV,
int nrows,
int ncols)
Populates the table with the given data. |
Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt |
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 |
Field Detail |
protected com.klg.jclass.util.xml.JCTableXMLParser parser
Constructor Detail |
public JCXMLTableModel(InputStream i) throws IOException
TableModel
from the given input stream.
i
- the input stream of incoming data
IOException
public JCXMLTableModel() throws IOException
readFromStream()
or read()
.
IOException
Method Detail |
protected void readFromStream(InputStream i) throws IOException
InputStream
to populate this table.
i
- input stream of incoming data
IOException
public void read(Reader r) throws IOException
r
- reader open on an active stream
IOException
public void setTableData(Vector rowV, Vector rowLabelV, Vector colLabelV, int nrows, int ncols)
JCTablePopulator
interface.
setTableData
in interface JCTablePopulator
rowV
- a vector of vectors, where each inside vector represents
one row in the tablerowLabelV
- a vector containing the row labels for this tablecolLabelV
- a vector containing the column labels for this tablenrows
- the number of rows in this tablencols
- the number of columns in this table
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |