Changeset 4587


Ignore:
Timestamp:
2003-06-11T16:49:40+12:00 (21 years ago)
Author:
jmt12
Message:

Now the audit view does show the selected node from the currently visible table, not the table which had the most recent selections.

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/CollectionPane.java

    r4546 r4587  
    463463        }
    464464    }
     465    // Update the meta-audit view to show the current selection, if any.
     466    Gatherer.g_man.meta_audit.setRecords(getSelected());
    465467    }
    466468
  • trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java

    r4544 r4587  
    654654        }
    655655    }
     656    // Update the meta-audit view to show the current selection, if any.
     657    Gatherer.g_man.meta_audit.setRecords(records);
    656658    }
    657659    /** Used to determine if this class contains a reference to an existing file record that matches the presumtively new record, and if one is found, returns it. Note that there is no need to search the metadata table model, as any file record that exists there must also exist in the records selection.
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/MetaAuditFrame.java

    r4565 r4587  
    147147    setVisible(true);
    148148    }
     149
     150    public void setRecords(FileNode[] records) {
     151    this.records = records;
     152    if(isVisible()) {
     153        rebuildModel();
     154    }
     155    else {
     156        invalid = true;
     157    }
     158    }
     159
    149160    /** This method is called whenever the selection within the collection tree changes. This causes the table to be rebuilt with a new model.
    150161     * @param event A <strong>TreeSelectionEvent</strong> containing information about the event.
Note: See TracChangeset for help on using the changeset viewer.