org.yasl.debugging.components.appinspector
Class YASLActionsTableModel

java.lang.Object
  extended byorg.yasl.debugging.components.appinspector.YASLActionsTableModel
All Implemented Interfaces:
TableModel

public class YASLActionsTableModel
extends Object
implements TableModel

Version:
1.0
Author:
Jeff Chapman

Constructor Summary
YASLActionsTableModel(YASLApplication app)
           
 
Method Summary
 void addTableModelListener(TableModelListener l)
          Adds a listener to the list that is notified each time a change to the data model occurs.
 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.
 String getColumnName(int columnIndex)
          Returns the name of the column at columnIndex.
 int getRowCount()
          Returns the number of rows in the model.
 Object getValueAt(int rowIndex, int columnIndex)
          Returns the value for the cell at columnIndex and rowIndex.
 boolean isCellEditable(int rowIndex, int columnIndex)
          Returns true if the cell at rowIndex and columnIndex is editable.
 void removeTableModelListener(TableModelListener l)
          Removes a listener from the list that is notified each time a change to the data model occurs.
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
          Sets the value in the cell at columnIndex and rowIndex to aValue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YASLActionsTableModel

public YASLActionsTableModel(YASLApplication app)
                      throws YASLApplicationException
Method Detail

getColumnClass

public Class getColumnClass(int columnIndex)
Returns the most specific superclass for all the cell values in the column.

Specified by:
getColumnClass in interface TableModel
Parameters:
columnIndex - the index of the column
Returns:
the common ancestor class of the object values in the model.

getColumnCount

public int getColumnCount()
Returns the number of columns in the model.

Specified by:
getColumnCount in interface TableModel
Returns:
the number of columns in the model

getColumnName

public String getColumnName(int columnIndex)
Returns the name of the column at columnIndex.

Specified by:
getColumnName in interface TableModel
Parameters:
columnIndex - the index of the column
Returns:
the name of the column

getRowCount

public int getRowCount()
Returns the number of rows in the model.

Specified by:
getRowCount in interface TableModel
Returns:
the number of rows in the model

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Returns the value for the cell at columnIndex and rowIndex.

Specified by:
getValueAt in interface TableModel
Parameters:
rowIndex - the row whose value is to be queried
columnIndex - the column whose value is to be queried
Returns:
the value Object at the specified cell

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Returns true if the cell at rowIndex and columnIndex is editable.

Specified by:
isCellEditable in interface TableModel
Parameters:
rowIndex - the row whose value to be queried
columnIndex - the column whose value to be queried
Returns:
true if the cell is editable

removeTableModelListener

public void removeTableModelListener(TableModelListener l)
Removes a listener from the list that is notified each time a change to the data model occurs.

Specified by:
removeTableModelListener in interface TableModel
Parameters:
l - the TableModelListener

setValueAt

public void setValueAt(Object aValue,
                       int rowIndex,
                       int columnIndex)
Sets the value in the cell at columnIndex and rowIndex to aValue.

Specified by:
setValueAt in interface TableModel
Parameters:
aValue - the new value
rowIndex - the row whose value is to be changed
columnIndex - the column whose value is to be changed

addTableModelListener

public void addTableModelListener(TableModelListener l)
Adds a listener to the list that is notified each time a change to the data model occurs.

Specified by:
addTableModelListener in interface TableModel
Parameters:
l - the TableModelListener