zeus.generator.util
Class AttributeModel

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

public class AttributeModel
extends javax.swing.table.AbstractTableModel
implements javax.swing.event.ChangeListener, ValidatingModel, RenameListener

See Also:
Serialized Form

Field Summary
static int ATTRIBUTE
           
protected  javax.swing.event.EventListenerList changeListeners
           
protected  java.lang.String[] columnNames
           
protected  int columns
           
protected  java.lang.String[][] data
           
protected  Fact fact
           
protected  boolean[] permissions
           
static int RESTRICTION
           
protected  boolean restrictions
           
static int VALUE
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AttributeModel()
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener x)
           
 void disableRestrictions()
           
 void enableRestrictions()
           
protected  void fireChanged()
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 Fact getData()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 boolean isValidEntry(int row, int column)
           
 void nameChanged(RenameEvent e)
           
 void removeChangeListener(javax.swing.event.ChangeListener x)
           
 void reset(Fact fact)
           
 void setReadOnly(int column)
           
 void setRestriction(java.lang.String value, int row)
           
 void setValueAt(java.lang.Object aValue, int row, int column)
           
 void setWriteable(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

ATTRIBUTE

public static final int ATTRIBUTE
See Also:
Constant Field Values

VALUE

public static final int VALUE
See Also:
Constant Field Values

RESTRICTION

public static final int RESTRICTION
See Also:
Constant Field Values

changeListeners

protected javax.swing.event.EventListenerList changeListeners

columnNames

protected java.lang.String[] columnNames

data

protected java.lang.String[][] data

fact

protected Fact fact

columns

protected int columns

restrictions

protected boolean restrictions

permissions

protected boolean[] permissions
Constructor Detail

AttributeModel

public AttributeModel()
Method Detail

reset

public void reset(Fact fact)

getData

public Fact getData()

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

isCellEditable

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

getColumnName

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

getValueAt

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

isValidEntry

public boolean isValidEntry(int row,
                            int column)
Specified by:
isValidEntry in interface ValidatingModel

setRestriction

public void setRestriction(java.lang.String value,
                           int row)

setValueAt

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

nameChanged

public void nameChanged(RenameEvent e)
Specified by:
nameChanged in interface RenameListener

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()

enableRestrictions

public void enableRestrictions()

disableRestrictions

public void disableRestrictions()

setReadOnly

public void setReadOnly(int column)

setWriteable

public void setWriteable(int column)


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