kaos.kpat.applet
Class DragPolicyTable.PolicyTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by kaos.kpat.applet.DragPolicyTable.PolicyTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel, PolicyListener
Enclosing class:
DragPolicyTable

public class DragPolicyTable.PolicyTableModel
extends javax.swing.table.AbstractTableModel
implements PolicyListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DragPolicyTable.PolicyTableModel()
           
 
Method Summary
 void addPolicy(ModelPolicy mp)
           
 void clear()
           
 int getColumnCount()
           
 ModelPolicy getPolicy(java.lang.String policyId)
           
 ModelPolicy getPolicyAt(int row)
           
 int getRowCount()
           
 int getRowForPolicy(java.lang.String policyId)
           
 java.lang.Object getValueAt(int row, int column)
           
 void policiesRefreshed(ModelPolicyList allPolicies)
           
 void policyAdded(ModelPolicy policy)
           
 void policyChanged(ModelPolicy policy)
           
 void policyRemoved(ModelPolicy policy)
           
 boolean removePolicy(ModelPolicy mp)
           
 void setFilter(SubjectMsg actorFilter, java.lang.String actionFilter)
           
 void setPolicies(ModelPolicyList policies)
           
 void sort()
           
 void sortBy(int column)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragPolicyTable.PolicyTableModel

public DragPolicyTable.PolicyTableModel()
Method Detail

setFilter

public void setFilter(SubjectMsg actorFilter,
                      java.lang.String actionFilter)

getRowCount

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

getColumnCount

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

getRowForPolicy

public int getRowForPolicy(java.lang.String policyId)

getPolicyAt

public ModelPolicy getPolicyAt(int row)

getValueAt

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

addPolicy

public void addPolicy(ModelPolicy mp)

removePolicy

public boolean removePolicy(ModelPolicy mp)

clear

public void clear()

getPolicy

public ModelPolicy getPolicy(java.lang.String policyId)

policyAdded

public void policyAdded(ModelPolicy policy)
Specified by:
policyAdded in interface PolicyListener

policyChanged

public void policyChanged(ModelPolicy policy)
Specified by:
policyChanged in interface PolicyListener

policyRemoved

public void policyRemoved(ModelPolicy policy)
Specified by:
policyRemoved in interface PolicyListener

policiesRefreshed

public void policiesRefreshed(ModelPolicyList allPolicies)
Specified by:
policiesRefreshed in interface PolicyListener

setPolicies

public void setPolicies(ModelPolicyList policies)

sort

public void sort()

sortBy

public void sortBy(int column)