VdexReload 1.1.3 API

uk.ac.reload.editor.gui
Class ReloadAttributeEditor.AttributeTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byuk.ac.reload.editor.gui.ReloadAttributeEditor.AttributeTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
ReloadAttributeEditor

protected class ReloadAttributeEditor.AttributeTableModel
extends javax.swing.table.AbstractTableModel

TableModel for the Attribute Table

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
protected ReloadAttributeEditor.AttributeTableModel()
           
 
Method Summary
 int getColumnCount()
          Get the Column count
 java.lang.String getColumnName(int columnIndex)
          Get the Column Name
 int getRowCount()
          Return the amount of rows needed to display the number of Attributes as specified in the ReloadSchema.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Get the value of a cell in the table
 boolean isCellEditable(int rowIndex, int columnIndex)
          Is this cell editable? It is if it's in column 1
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
          The cell has been edited manually aValue will be a String that we need to put into the Attribute
 
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
 

Constructor Detail

ReloadAttributeEditor.AttributeTableModel

protected ReloadAttributeEditor.AttributeTableModel()
Method Detail

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
The cell has been edited manually aValue will be a String that we need to put into the Attribute

Parameters:
aValue - a string that we need to put into the Attribute
rowIndex - the row index of the cell we have to update
columnIndex - the column index of the cell we have to update

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Get the value of a cell in the table

Parameters:
rowIndex - the row index of the cell concerned
columnIndex - the column index of the cell concerned
Returns:
the value at the concerned cell in the table

getColumnCount

public int getColumnCount()
Get the Column count

Returns:
The Column count

getColumnName

public java.lang.String getColumnName(int columnIndex)
Get the Column Name

Parameters:
columnIndex - the column index of the column concerned
Returns:
the column name

getRowCount

public int getRowCount()
Return the amount of rows needed to display the number of Attributes as specified in the ReloadSchema.

Returns:
The number of rows.

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Is this cell editable? It is if it's in column 1

Returns:
true if the column is 1, false if column is 0

VdexReload 1.1.3 API