com.jaxfront.swing.ui.visualizers
Class SimpleTypeListTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by com.jaxfront.swing.ui.visualizers.AbstractListTypeTableModel
          extended by com.jaxfront.swing.ui.visualizers.SimpleTypeListTableModel
All Implemented Interfaces:
DOMChangeListener, java.io.Serializable, java.util.EventListener, javax.swing.table.TableModel

public class SimpleTypeListTableModel
extends AbstractListTypeTableModel

This SimpleTypeListTableModel is the ListModel for the SimpleTypeListView

Version:
1.4.1
See Also:
AbstractTableModel, Serialized Form

Constructor Summary
SimpleTypeListTableModel(AbstractListType simpleTypeList)
          SimpleTypeListTableModel constructor.
 
Method Summary
 int getColumnCount()
          Gets the number of columns of the current table.
 java.lang.String getColumnName(int column)
          Gets the name of the required column.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Returns the value the given row and colum index.
 boolean isCellEditable(int row, int column)
          Defines if the required table cell is editable or not.
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
          Sets a value at the required table position.
 
Methods inherited from class com.jaxfront.swing.ui.visualizers.AbstractListTypeTableModel
domChanged, getColumnClass, getList, getRowCount, getType
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTypeListTableModel

public SimpleTypeListTableModel(AbstractListType simpleTypeList)
SimpleTypeListTableModel constructor.

Parameters:
simpleTypeList - the underlying model (type) for this table model
Method Detail

getColumnCount

public int getColumnCount()
Description copied from class: AbstractListTypeTableModel
Gets the number of columns of the current table.

Specified by:
getColumnCount in interface javax.swing.table.TableModel
Specified by:
getColumnCount in class AbstractListTypeTableModel
Returns:
the number of columns of the current table
See Also:
TableModel.getColumnCount()

getColumnName

public java.lang.String getColumnName(int column)
Description copied from class: AbstractListTypeTableModel
Gets the name of the required column.

Specified by:
getColumnName in interface javax.swing.table.TableModel
Specified by:
getColumnName in class AbstractListTypeTableModel
Returns:
the name of the required column
See Also:
TableModel.getColumnName(int)

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Returns the value the given row and colum index.

Specified by:
getValueAt in interface javax.swing.table.TableModel
Specified by:
getValueAt in class AbstractListTypeTableModel
Parameters:
rowIndex - a row index
columnIndex - a column index
Returns:
Object getType( rowIndex )

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Description copied from class: AbstractListTypeTableModel
Defines if the required table cell is editable or not.

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class AbstractListTypeTableModel
Parameters:
row - row position
column - column position
Returns:
true if table cell is editable, false otherwise
See Also:
TableModel.isCellEditable(int, int)

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Description copied from class: AbstractListTypeTableModel
Sets a value at the required table position.

Specified by:
setValueAt in interface javax.swing.table.TableModel
Specified by:
setValueAt in class AbstractListTypeTableModel
Parameters:
aValue - a new value to be set
rowIndex - row position
columnIndex - column position
See Also:
TableModel.setValueAt(java.lang.Object, int, int)