|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.opensourcephysics.frames.TableData
A table model for this frame.
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
TableData()
|
Method Summary | |
void |
appendRow(java.lang.Object obj)
Appends a row to this table. |
int |
getColumnCount()
Gets the number of columns. |
java.text.DecimalFormat |
getColumnFormat(int column)
Gets the column decimal format. |
java.lang.String |
getColumnName(int column)
Gets the name of the specified column. |
int |
getRowCount()
Gets the number of rows. |
java.lang.Object |
getValueAt(int row,
int column)
Gets the value at the given cell. |
void |
setColumnFormat(int column,
java.lang.String format)
Sets the column decimal format. |
void |
setColumnNames(int column,
java.lang.String name)
Sets the column names in a JTable. |
void |
setRowNumberVisible(boolean vis)
Sets the display row number flag. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableData()
Method Detail |
public void appendRow(java.lang.Object obj) throws java.lang.IllegalArgumentException
obj
- Object
java.lang.IllegalArgumentException
public void setRowNumberVisible(boolean vis)
vis
- true<\code> if table display row number
public void setColumnNames(int column, java.lang.String name)
column
- the column indexname
- public void setColumnFormat(int column, java.lang.String format)
column
- the column indexformat
- the formatpublic java.text.DecimalFormat getColumnFormat(int column)
public int getColumnCount()
public java.lang.String getColumnName(int column)
column
- the column index
public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
row
- the row indexcolumn
- the column index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |