MetaDone
metadone.client.dialog.swing.genConcreteObject.ModelTableRoles Class Reference
Inheritance diagram for metadone.client.dialog.swing.genConcreteObject.ModelTableRoles:
Collaboration diagram for metadone.client.dialog.swing.genConcreteObject.ModelTableRoles:

List of all members.

Public Member Functions

 ModelTableRoles (ConcreteObject _co, MetaRole _mr, boolean _coIsDomain)
int getColumnCount ()
int getRowCount ()
Object getValueAt (int row, int col)
String getColumnName (int column)
boolean isCellEditable (int arg0, int arg1)
void deleteRole (int i)
void insertFirst (ConcreteRole createdCr, ConcreteObject created)

Private Member Functions

List< ConcreteRolegetRows ()
void refreshRows ()

Private Attributes

ConcreteObject co
MetaRole mr
boolean coIsDomain
List< ConcreteRolerows

Detailed Description

Author:
Vincent

Date=10 févr. 2010 - 18:02:41 This class denotes the (data) model (MVC) of the JTable component of the DialogConcreteRoles class.


Constructor & Destructor Documentation

metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.ModelTableRoles ( ConcreteObject  _co,
MetaRole  _mr,
boolean  _coIsDomain 
)

Produces a model to display the concrete roles attached from _co with respect to the _mr metarole when _co plays resp. the role domain (range) is coIsDomain is true (false).

Parameters:
_co
_mr
_coIsDomain

References metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.co, metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.coIsDomain, metadone.metabusiness.MetaRole.getDomain(), metadone.metabusiness.MetaRole.getRange(), metadone.metabusiness.ConcreteObject.getTypes(), and metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.mr.


Member Function Documentation

int metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.getColumnCount ( )
String metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.getColumnName ( int  column)
int metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.getRowCount ( )
void metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.insertFirst ( ConcreteRole  createdCr,
ConcreteObject  created 
)
boolean metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.isCellEditable ( int  arg0,
int  arg1 
)
void metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.refreshRows ( ) [private]

Forces the system to recompute the rows from the repository by setting the rows attribute to null. Must be called every time the repository is modified.

References metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.rows.

Referenced by metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.deleteRole(), and metadone.client.dialog.swing.genConcreteObject.ModelTableRoles.insertFirst().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations