jcreek.gui.representation
Class CaseTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byjcreek.gui.representation.FrameTableModel
          extended byjcreek.gui.representation.CaseTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class CaseTableModel
extends FrameTableModel

A table model for showing case findings.

Version:
1.0
Author:
Frode Sørmo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jcreek.gui.representation.FrameTableModel
actionListen, actionListeners, editable, followIcon, includeAction, inheritedColor, myTable, negatedColor, noFocusBorder, relations, removeIcon
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CaseTableModel(boolean showPredImp, Relation[] rels)
           
 
Method Summary
 void formatTable(javax.swing.JTable table, KnowledgeModel knowledgeModel)
           
 java.lang.Class getColumnClass(int column)
           
 int getColumnCount()
          Returns the number of rows in the table
 java.lang.String getColumnName(int columnIndex)
          Returns the column names.
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Returns the value at the given position.
 boolean isCellEditable(int row, int cell)
           
 void setRelations(Relation[] rels)
           
 void setShowStrengths(boolean show)
           
 void setValueAt(java.lang.Object value, int row, int column)
           
 boolean showStrengths()
           
 
Methods inherited from class jcreek.gui.representation.FrameTableModel
addLinkListener, addRelation, fireLinkAction, fireLinkEvent, getRelations, getRowCount, isEditable, relationAt, removeLinkListener, removeRelation, setEditable, setTable, updateRelation
 
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

CaseTableModel

public CaseTableModel(boolean showPredImp,
                      Relation[] rels)
Method Detail

setShowStrengths

public void setShowStrengths(boolean show)

showStrengths

public boolean showStrengths()

formatTable

public void formatTable(javax.swing.JTable table,
                        KnowledgeModel knowledgeModel)
Overrides:
formatTable in class FrameTableModel

getColumnName

public java.lang.String getColumnName(int columnIndex)
Description copied from class: FrameTableModel
Returns the column names.

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class FrameTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int cell)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class FrameTableModel

getColumnClass

public java.lang.Class getColumnClass(int column)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class FrameTableModel

setRelations

public void setRelations(Relation[] rels)
Overrides:
setRelations in class FrameTableModel

getColumnCount

public int getColumnCount()
Returns the number of rows in the table

Specified by:
getColumnCount in interface javax.swing.table.TableModel
Overrides:
getColumnCount in class FrameTableModel

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Description copied from class: FrameTableModel
Returns the value at the given position.

Specified by:
getValueAt in interface javax.swing.table.TableModel
Overrides:
getValueAt in class FrameTableModel

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int column)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class FrameTableModel


Created at IDI, NTNU by the Artificial Intelligence and Learning group