zeus.generator.agent
Class AcquaintanceModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byzeus.generator.agent.AcquaintanceModel
All Implemented Interfaces:
javax.swing.event.ChangeListener, java.util.EventListener, java.io.Serializable, javax.swing.table.TableModel

public class AcquaintanceModel
extends javax.swing.table.AbstractTableModel
implements javax.swing.event.ChangeListener

See Also:
Serialized Form

Field Summary
protected  AbilityModel abilityModel
           
(package private) static int AGENT
           
(package private) static int ALL
           
protected  javax.swing.event.EventListenerList changeListeners
           
protected  java.lang.String[] columnNames
           
protected  java.util.Vector data
           
protected  int filter
           
protected  GeneratorModel genmodel
           
(package private) static int ID
           
protected  OntologyDb ontologyDb
           
(package private) static int OTHERS
           
static java.lang.String PEER_RELATION
           
(package private) static int PEERS
           
(package private) static int RELATION
           
static java.util.Vector RELATIONS_LIST
           
protected  int selectedRow
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AcquaintanceModel(GeneratorModel genmodel, OntologyDb ontologyDb, AbilityModel abilityModel, Acquaintance[] input)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener x)
           
 void addNewRow()
           
 void addNewRow(java.lang.String agent)
           
protected  boolean contains(java.lang.String agent)
           
protected  void fireChanged()
           
protected  Acquaintance getAcquaintanceAt(int row)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 Acquaintance[] getData()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isCellEditable(int r, int c)
           
 void removeChangeListener(javax.swing.event.ChangeListener x)
           
 void removeRow(int row)
           
 void reset(Acquaintance[] input)
           
 void selectRow(int row)
           
 void setFilter(int f)
           
 void setValueAt(java.lang.Object aValue, int row, int column)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 
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
 

Field Detail

ALL

static final int ALL
See Also:
Constant Field Values

PEERS

static final int PEERS
See Also:
Constant Field Values

OTHERS

static final int OTHERS
See Also:
Constant Field Values

AGENT

static final int AGENT
See Also:
Constant Field Values

RELATION

static final int RELATION
See Also:
Constant Field Values

ID

static final int ID
See Also:
Constant Field Values

RELATIONS_LIST

public static java.util.Vector RELATIONS_LIST

PEER_RELATION

public static final java.lang.String PEER_RELATION

columnNames

protected java.lang.String[] columnNames

data

protected java.util.Vector data

filter

protected int filter

selectedRow

protected int selectedRow

abilityModel

protected AbilityModel abilityModel

genmodel

protected GeneratorModel genmodel

ontologyDb

protected OntologyDb ontologyDb

changeListeners

protected javax.swing.event.EventListenerList changeListeners
Constructor Detail

AcquaintanceModel

public AcquaintanceModel(GeneratorModel genmodel,
                         OntologyDb ontologyDb,
                         AbilityModel abilityModel,
                         Acquaintance[] input)
Method Detail

reset

public void reset(Acquaintance[] input)

setFilter

public void setFilter(int f)

selectRow

public void selectRow(int row)

addNewRow

public void addNewRow()

addNewRow

public void addNewRow(java.lang.String agent)

removeRow

public void removeRow(int row)

getData

public Acquaintance[] getData()

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

isCellEditable

public boolean isCellEditable(int r,
                              int c)
Specified by:
isCellEditable in interface javax.swing.table.TableModel

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel

setValueAt

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

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Specified by:
getValueAt in interface javax.swing.table.TableModel

getAcquaintanceAt

protected Acquaintance getAcquaintanceAt(int row)

contains

protected boolean contains(java.lang.String agent)

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener x)

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener x)

fireChanged

protected void fireChanged()


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.