Changeset 4535


Ignore:
Timestamp:
2003-06-10T13:54:20+12:00 (21 years ago)
Author:
mdewsnip
Message:

Modified add method so it returns the row index of the attribute just added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/mem/AttributeTableModel.java

    r4435 r4535  
    7979    names[2] = three;
    8080    }
    81     public void add(Attribute attribute) {
     81    public int add(Attribute attribute) {
    8282    attributes.add(attribute);
    8383    // Determine the row index
     
    9393    // Fire event
    9494    fireTableRowsInserted(index, index);
     95    return index;
    9596    }
    9697
Note: See TracChangeset for help on using the changeset viewer.