Interface MetaSchemeTableModel

A TableModel to hold org.kaiwitte.workbench.data.MetaRecords.

Synopsis

 public interface MetaSchemeTableModel extends TableModel {
  public void addRecord(org.kaiwitte.workbench.data.MetaRecord[] r);
  public void addRecord(net.tmorris.adt.sequence.Sequence r);
  public void clear();
  public MetaScheme getScheme();
  public MetaRecord getRecord(int row);
  public void delete(int row);
  public void delete(MetaRecord record);
  public void update(MetaRecord record,
                     int index);

}

Inheritance Path. org.kaiwitte.workbench.ui.model.MetaSchemeTableModel

addRecord(MetaRecord[])

Synopsis: public void addRecord(org.kaiwitte.workbench.data.MetaRecord[] r)\
;

Parameters

r

the new record

Adds a record as a table row.

addRecord(Sequence)

Synopsis: public void addRecord(net.tmorris.adt.sequence.Sequence r);

Parameters

r

the new record

Adds a record as a table row.

clear()

Synopsis: public void clear();

Removes all entries.

delete(int)

Synopsis: public void delete(int row);

Parameters

row

the row number, 0-based

Exceptions

IndexOutOfBoundsException

iff row < 0 or row > the maximum index

Deletes the MetaRecord in the specified row.

delete(MetaRecord)

Synopsis: public void delete(org.kaiwitte.workbench.data.MetaRecord record)\
;

Parameters

record

a MetaRecord to be deleted

Deletes the specified MetaRecord.

getRecord(int)

Synopsis: public MetaRecord getRecord(int row);

Parameters

row

the row number, 0-based

return

the MetaRecord in the specified row

Exceptions

IndexOutOfBoundsException

iff row < 0 or row > the maximum index

Returns the MetaRecord in the specified row.

getScheme()

Synopsis: public MetaScheme getScheme();

Parameters

return

the scheme

Returns the scheme that defines this table model's structure.

update(MetaRecord, int)

Synopsis: public void update(org.kaiwitte.workbench.data.MetaRecord record,

                             int index);

Parameters

record

a MetaRecord to be updated

index

the index of the record

Exceptions

IndexOutOfBoundsException

iff index < 0 or index > the maximum index

Updates the MetaRecord at the specified index.