Back to index

wims  3.65+svn20090927
Public Member Functions | Package Attributes
WIMSchem.ds.DialogEditColumns.SchemaDataModel Class Reference

List of all members.

Public Member Functions

 SchemaDataModel (ArrayList< Integer > Idx, ArrayList< String > Name, ArrayList< Integer > Type, ArrayList< String > Descr)
String getColumnName (int col)
int getRowCount ()
int getColumnCount ()
Object getValueAt (int row, int col)
boolean isCellEditable (int row, int col)
void setValueAt (Object value, int row, int col)

Package Attributes

ArrayList< Integer > idx
ArrayList< String > name
ArrayList< Integer > type
ArrayList< String > descr

Detailed Description

Definition at line 241 of file DialogEditColumns.java.


Constructor & Destructor Documentation

WIMSchem.ds.DialogEditColumns.SchemaDataModel.SchemaDataModel ( ArrayList< Integer >  Idx,
ArrayList< String >  Name,
ArrayList< Integer >  Type,
ArrayList< String >  Descr 
) [inline]

Definition at line 248 of file DialogEditColumns.java.

       {
           idx=Idx;
           name=Name;
           type=Type;
           descr=Descr;
       }

Member Function Documentation

Definition at line 262 of file DialogEditColumns.java.

{return 4;}

Definition at line 256 of file DialogEditColumns.java.

       {
           final String[] COLNAMES={"#","Name","Type","Description"};
            return COLNAMES[col];
       }

Definition at line 261 of file DialogEditColumns.java.

{return idx.size();}
Object WIMSchem.ds.DialogEditColumns.SchemaDataModel.getValueAt ( int  row,
int  col 
) [inline]

Definition at line 263 of file DialogEditColumns.java.

       {
           if (col==0)
           {
              int i=idx.get(row).intValue();
              return i==0 ? "" : ""+i;
           }
           else if (col==1) return name.get(row);
           else if (col==2) return DataSheet.TypeName(type.get(row).intValue());
           else if (col==3) return descr.get(row);
           return null;
       }

Here is the call graph for this function:

Definition at line 275 of file DialogEditColumns.java.

{return col>0;}
void WIMSchem.ds.DialogEditColumns.SchemaDataModel.setValueAt ( Object  value,
int  row,
int  col 
) [inline]

Definition at line 276 of file DialogEditColumns.java.

       {
           if (col==1) name.set(row,(String)value);
           else if (col==2)
           {
              String t=(String)value;
              if (t.compareTo(DataSheet.TypeName(DataSheet.COLTYPE_MOLECULE))==0) type.set(row,DataSheet.COLTYPE_MOLECULE);
              else if (t.compareTo(DataSheet.TypeName(DataSheet.COLTYPE_STRING))==0) type.set(row,DataSheet.COLTYPE_STRING);
              else if (t.compareTo(DataSheet.TypeName(DataSheet.COLTYPE_REAL))==0) type.set(row,DataSheet.COLTYPE_REAL);
              else if (t.compareTo(DataSheet.TypeName(DataSheet.COLTYPE_INTEGER))==0) type.set(row,DataSheet.COLTYPE_INTEGER);
              else if (t.compareTo(DataSheet.TypeName(DataSheet.COLTYPE_BOOLEAN))==0) type.set(row,DataSheet.COLTYPE_BOOLEAN);
           }
           else if (col==3) descr.set(row,(String)value);
            fireTableCellUpdated(row,col);
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 246 of file DialogEditColumns.java.

Definition at line 243 of file DialogEditColumns.java.

Definition at line 244 of file DialogEditColumns.java.

Definition at line 245 of file DialogEditColumns.java.


The documentation for this class was generated from the following file: