Changeset 4546


Ignore:
Timestamp:
2003-06-11T10:24:51+12:00 (21 years ago)
Author:
mdewsnip
Message:

Added gainFocus() method so the pane could update the "view assigned metadata" menu item correctly.

File:
1 edited

Legend:

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

    r4514 r4546  
    443443    }
    444444    repaint();
    445     // Update the menubars idea of whats been selected
    446     if(collection_tree != null) {
    447         if(collection_tree.isSelectionEmpty()) {
    448         Gatherer.g_man.menu_bar.setMetaAuditSuffix(null);
    449         }
    450         else {
    451         Gatherer.g_man.menu_bar.setMetaAuditSuffix(collection_tree.getSelectionDetails());
    452         }
    453     }
    454445    }
    455446    /** Implementation side-effect, not used in any way.
     
    458449    public void focusLost(FocusEvent event) {
    459450    }
     451
     452    /** Called to inform this control panel that it has just gained focus as an effect of the user clicking on its tab.
     453     * @see org.greenstone.gatherer.tree.GTree
     454     */
     455    public void gainFocus() {
     456    // Update the menubar's idea of whats been selected
     457    if (collection_tree != null) {
     458        if (collection_tree.isSelectionEmpty()) {
     459        Gatherer.g_man.menu_bar.setMetaAuditSuffix(null);
     460        }
     461        else {
     462        Gatherer.g_man.menu_bar.setMetaAuditSuffix(collection_tree.getSelectionDetails());
     463        }
     464    }
     465    }
     466
    460467    /** Retrieve a list of the currently selected file records in the active tree. */
    461468    public FileNode[] getSelected() {
Note: See TracChangeset for help on using the changeset viewer.