|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel edu.ucla.stat.SOCR.TG_distributome.editor.ElementTableModel
public class ElementTableModel
Abstract Table Model for displaying the attributes of an provenance element.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ElementTableModel(java.lang.String elementName,
java.lang.String[] attrNames)
Constructs an Element Table Model. |
Method Summary | |
---|---|
java.lang.String[] |
getAttributeNames()
Gets the names of the attributes. |
java.lang.String |
getAttributeValue(java.lang.String attrName)
Gets the value of the attribute. |
java.lang.Class |
getColumnClass(int columnIndex)
Returns the most specific superclass for all the cell values in the column. |
int |
getColumnCount()
Returns the number of columns in the model. |
java.lang.String |
getColumnName(int columnIndex)
Returns the name of the specified column. |
java.lang.String |
getElementName()
Gets the name of the element. |
int |
getRowCount()
Returns the number of rows in the model. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value of the specified table cell. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Determines if the specified table cell is editable. |
void |
setAttribute(java.lang.String attrName,
java.lang.String attrValue)
Sets the value of the attribute. |
void |
setValueAt(java.lang.Object newValue,
int rowIndex,
int columnIndex)
Sets the value of the specified table cell. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementTableModel(java.lang.String elementName, java.lang.String[] attrNames)
elementName
- Name of the element.attrNames
- Names of the attributes of the element.Method Detail |
---|
public java.lang.String getElementName()
public java.lang.String[] getAttributeNames()
public java.lang.String getAttributeValue(java.lang.String attrName)
attrName
- Name of the attribute.
public void setAttribute(java.lang.String attrName, java.lang.String attrValue)
attrName
- Name of the attribute.attrValue
- Value for the attribute.public int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
columnIndex
- Index of the column.
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- Index of the column.
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
rowIndex
- Index of the row.columnIndex
- Index of the column.
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- Index of the row.columnIndex
- Index of the column.
public void setValueAt(java.lang.Object newValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
newValue
- New value for the table cell.rowIndex
- Index of the row.columnIndex
- Index of the column.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |