kaos.kpat.applet
Class ClassBuilderUtils.TargetTableModel

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

public static class ClassBuilderUtils.TargetTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Nested Class Summary
static class ClassBuilderUtils.TargetTableModel.RangeValue
           
static class ClassBuilderUtils.TargetTableModel.TCRBinding
           
 
Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ClassBuilderUtils.TargetTableModel()
           
ClassBuilderUtils.TargetTableModel(boolean showResType)
           
ClassBuilderUtils.TargetTableModel(boolean showResType, boolean showComplement)
           
 
Method Summary
 void addBinding(java.lang.String role, TemplateComponentReference ref, TemplateComponentBinding binding)
           
 void addRoleValueMap(KAoSRoleValueMap rvm)
           
 void addTarget(java.lang.String role, java.lang.String value, java.lang.String baseRange, java.lang.Boolean isComplement, java.lang.Boolean isClass)
           
 void addTarget(java.lang.String role, java.lang.String value, java.lang.String baseRange, java.lang.Boolean isComplement, java.lang.Boolean isClass, java.lang.String type)
           
 void addTarget(java.lang.String role, java.util.Vector range, java.lang.String baseRange, java.lang.Boolean isComplement, java.lang.Boolean isClass)
           
 void addTarget(java.lang.String role, java.util.Vector range, java.lang.String baseRange, java.lang.Boolean isComplement, java.lang.Boolean isClass, java.lang.String type)
           
 void clearTargets()
           
 void fireTableDataChanged()
           
 java.util.Vector getBaseRange()
           
 java.lang.String getBaseRangeAt(int r)
           
 java.util.Hashtable getBindings()
           
 java.lang.Class getColumnClass(int c)
           
 int getColumnCount()
           
 java.util.Vector getIsClass()
           
 java.lang.Boolean getIsClassAt(int r)
           
 java.util.Vector getIsComplement()
           
 java.lang.Boolean getIsComplementAt(int r)
           
 java.util.Vector getRange()
           
 java.util.Vector getRangeAt(int r)
           
 java.util.Vector getResType()
           
 java.lang.String getResTypeAt(int r)
           
 java.util.Vector getRole()
           
 java.lang.String getRoleAt(int r)
           
 int getRowCount()
           
 KAoSRoleValueMapContainer getRVMContainer()
           
 java.lang.Object getValueAt(int r, int c)
           
 boolean isCellEditable(int row, int column)
           
 void removeTargetAt(int r)
           
 void setBindings(java.util.Hashtable bindings)
           
 void setIsComplementAt(boolean isComplement, int r)
           
 void setPeerRVMCoordinator(ClassBuilderUtils.PeerRVMCoordinator coordinator, java.lang.String ontologicalType)
           
 void setResTypeAt(java.lang.String type, int r)
           
 void setRVMContainer(KAoSRoleValueMapContainer container)
           
 void setTargetAt(java.lang.String role, java.util.Vector range, java.lang.String baseRange, java.lang.Boolean isComplement, java.lang.Boolean isClass, int r)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassBuilderUtils.TargetTableModel

public ClassBuilderUtils.TargetTableModel()

ClassBuilderUtils.TargetTableModel

public ClassBuilderUtils.TargetTableModel(boolean showResType)

ClassBuilderUtils.TargetTableModel

public ClassBuilderUtils.TargetTableModel(boolean showResType,
                                          boolean showComplement)
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getColumnClass

public java.lang.Class getColumnClass(int c)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int r,
                                   int c)

addRoleValueMap

public void addRoleValueMap(KAoSRoleValueMap rvm)

fireTableDataChanged

public void fireTableDataChanged()
Overrides:
fireTableDataChanged in class javax.swing.table.AbstractTableModel

addTarget

public void addTarget(java.lang.String role,
                      java.util.Vector range,
                      java.lang.String baseRange,
                      java.lang.Boolean isComplement,
                      java.lang.Boolean isClass)

addTarget

public void addTarget(java.lang.String role,
                      java.util.Vector range,
                      java.lang.String baseRange,
                      java.lang.Boolean isComplement,
                      java.lang.Boolean isClass,
                      java.lang.String type)

addTarget

public void addTarget(java.lang.String role,
                      java.lang.String value,
                      java.lang.String baseRange,
                      java.lang.Boolean isComplement,
                      java.lang.Boolean isClass)

addTarget

public void addTarget(java.lang.String role,
                      java.lang.String value,
                      java.lang.String baseRange,
                      java.lang.Boolean isComplement,
                      java.lang.Boolean isClass,
                      java.lang.String type)

getRoleAt

public java.lang.String getRoleAt(int r)

getRangeAt

public java.util.Vector getRangeAt(int r)

getBaseRangeAt

public java.lang.String getBaseRangeAt(int r)

getIsComplementAt

public java.lang.Boolean getIsComplementAt(int r)

getIsClassAt

public java.lang.Boolean getIsClassAt(int r)

getResTypeAt

public java.lang.String getResTypeAt(int r)

setTargetAt

public void setTargetAt(java.lang.String role,
                        java.util.Vector range,
                        java.lang.String baseRange,
                        java.lang.Boolean isComplement,
                        java.lang.Boolean isClass,
                        int r)

removeTargetAt

public void removeTargetAt(int r)

getRole

public java.util.Vector getRole()

getRange

public java.util.Vector getRange()

getBaseRange

public java.util.Vector getBaseRange()

getIsComplement

public java.util.Vector getIsComplement()

getIsClass

public java.util.Vector getIsClass()

getResType

public java.util.Vector getResType()

clearTargets

public void clearTargets()

setIsComplementAt

public void setIsComplementAt(boolean isComplement,
                              int r)

setResTypeAt

public void setResTypeAt(java.lang.String type,
                         int r)

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

setRVMContainer

public void setRVMContainer(KAoSRoleValueMapContainer container)

setPeerRVMCoordinator

public void setPeerRVMCoordinator(ClassBuilderUtils.PeerRVMCoordinator coordinator,
                                  java.lang.String ontologicalType)

getRVMContainer

public KAoSRoleValueMapContainer getRVMContainer()

addBinding

public void addBinding(java.lang.String role,
                       TemplateComponentReference ref,
                       TemplateComponentBinding binding)

getBindings

public java.util.Hashtable getBindings()

setBindings

public void setBindings(java.util.Hashtable bindings)