zeus.generator.util
Class FactModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byzeus.generator.util.FactModel
All Implemented Interfaces:
BasicFactModel, javax.swing.event.ChangeListener, java.util.EventListener, java.io.Serializable, javax.swing.table.TableModel
Direct Known Subclasses:
GroupManager

public class FactModel
extends javax.swing.table.AbstractTableModel
implements BasicFactModel, javax.swing.event.ChangeListener

See Also:
Serialized Form

Field Summary
protected  AttributeModel attributeModel
           
protected static java.lang.String[] columnNames
           
protected static int count
           
protected  java.util.Vector data
           
protected static boolean ERROR
           
static int FACT
           
static int INSTANCE
           
protected  boolean isEditable
           
protected  boolean isVariable
           
protected  javax.swing.event.EventListenerList listeners
           
static int MODIFIERS
           
protected static boolean NO_ERROR
           
protected  OntologyDb ontologyDb
           
protected  java.util.Vector relatedModels
           
protected  int selectedRow
           
protected  int type
           
static int TYPE
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FactModel(OntologyDb ontologyDb, AttributeModel attributeModel, boolean isVariable, int type, Fact[] input)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener x)
           
 void addFactModelListener(FactModelListener x)
           
 void addNewRows(java.lang.String[] names)
           
 void addRelatedModel(FactModel model)
           
 void addRenameListener(RenameListener x)
           
 void addRows(Fact[] input)
           
protected  boolean contains(FactModel origin, java.lang.String id, boolean error)
           
protected  boolean contains(java.lang.String id, boolean error)
           
protected  void fireChanged()
           
protected  void fireFactEvent(Fact f, int type)
           
protected  void fireNameChanged(java.lang.Object object, java.lang.Object previous, java.lang.Object current)
           
 AttributeModel getAttributeModel()
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 Fact[] getData()
           
 OntologyDb getOntologyDb()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int col)
           
 void removeChangeListener(javax.swing.event.ChangeListener x)
           
 void removeFactModelListener(FactModelListener x)
           
 void removeRelatedModel(FactModel model)
           
 void removeRenameListener(RenameListener x)
           
 void removeRows(Fact[] input)
           
 void removeRows(int[] rows)
           
 void reset(Fact[] input)
           
 void selectRow(int row)
           
 void setEditable(boolean isEditable)
           
 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

TYPE

public static final int TYPE
See Also:
Constant Field Values

INSTANCE

public static final int INSTANCE
See Also:
Constant Field Values

MODIFIERS

public static final int MODIFIERS
See Also:
Constant Field Values

FACT

public static final int FACT
See Also:
Constant Field Values

count

protected static int count

ERROR

protected static final boolean ERROR
See Also:
Constant Field Values

NO_ERROR

protected static final boolean NO_ERROR
See Also:
Constant Field Values

columnNames

protected static final java.lang.String[] columnNames

listeners

protected javax.swing.event.EventListenerList listeners

data

protected java.util.Vector data

selectedRow

protected int selectedRow

attributeModel

protected AttributeModel attributeModel

ontologyDb

protected OntologyDb ontologyDb

isVariable

protected boolean isVariable

isEditable

protected boolean isEditable

type

protected int type

relatedModels

protected java.util.Vector relatedModels
Constructor Detail

FactModel

public FactModel(OntologyDb ontologyDb,
                 AttributeModel attributeModel,
                 boolean isVariable,
                 int type,
                 Fact[] input)
Method Detail

getOntologyDb

public OntologyDb getOntologyDb()

getAttributeModel

public AttributeModel getAttributeModel()

reset

public void reset(Fact[] input)

getData

public Fact[] getData()
Specified by:
getData in interface BasicFactModel

addRelatedModel

public void addRelatedModel(FactModel model)

removeRelatedModel

public void removeRelatedModel(FactModel model)

removeRows

public void removeRows(int[] rows)

selectRow

public void selectRow(int row)

addNewRows

public void addNewRows(java.lang.String[] names)

addRows

public void addRows(Fact[] input)

removeRows

public void removeRows(Fact[] input)

getColumnCount

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

getRowCount

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

getColumnName

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

isCellEditable

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

setEditable

public void setEditable(boolean isEditable)

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Specified by:
getValueAt 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

contains

protected boolean contains(java.lang.String id,
                           boolean error)

contains

protected boolean contains(FactModel origin,
                           java.lang.String id,
                           boolean error)

stateChanged

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

addFactModelListener

public void addFactModelListener(FactModelListener x)

removeFactModelListener

public void removeFactModelListener(FactModelListener x)

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener x)
Specified by:
addChangeListener in interface BasicFactModel

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener x)
Specified by:
removeChangeListener in interface BasicFactModel

addRenameListener

public void addRenameListener(RenameListener x)
Specified by:
addRenameListener in interface BasicFactModel

removeRenameListener

public void removeRenameListener(RenameListener x)
Specified by:
removeRenameListener in interface BasicFactModel

fireChanged

protected void fireChanged()

fireNameChanged

protected void fireNameChanged(java.lang.Object object,
                               java.lang.Object previous,
                               java.lang.Object current)

fireFactEvent

protected void fireFactEvent(Fact f,
                             int type)


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