jcreek.gui.representation
Class CaseTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jcreek.gui.representation.FrameTableModel
jcreek.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
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 |
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 |
CaseTableModel
public CaseTableModel(boolean showPredImp,
Relation[] rels)
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