Changeset 2195 for trunk/java-client/org


Ignore:
Timestamp:
2001-03-19T21:22:00+12:00 (23 years ago)
Author:
daven
Message:

added CollectionInfoDialog.java to display collection level data

Location:
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/PreferencesDialog.java

    r2190 r2195  
    145145        NzdlPreferences.setBoolean(Constants.SAVE_DOCS, saveDocsCheckBox.isSelected());
    146146      NzdlPreferences.getInstance().save();
     147
     148      // update the current display if raw text option has changed ?
     149
    147150      dispose(); //close window
    148151    }
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/SearchPanel.java

    r2190 r2195  
    6161
    6262  JLabel collectionLabel;
     63  JButton collectionInfoButton; 
    6364  JTextField searchTextField;
    6465  JButton searchButton;
     
    119120    }
    120121      };
     122    collectionInfoButton = new JButton("Info...");
     123    collectionInfoButton.addActionListener(this);
    121124
    122125    collectionListPanel.add(collectionLabel);
    123126    collectionListPanel.add(collectionList);
     127    collectionListPanel.add(collectionInfoButton);
    124128
    125129    searchTextFieldPanel = new JPanel();
     
    247251    } // end if
    248252    else {
    249       System.err.println("unknown Action event in SearchPanel");
     253    if (e.getSource() == collectionInfoButton) {
     254        //System.err.println("colllection info button pressed");
     255        CollectionInfoDialog cid = new CollectionInfoDialog(windowParent, collectionList.getSelectedItem().toString(), csModel);
     256    }
     257    else {
     258        System.err.println("unknown Action event in SearchPanel");
     259    }
    250260    }
    251261  } //end actionPerformed
     
    315325      documentPane.setCaretPosition(1);
    316326      // we might not be using htmlDoc at this point!!
    317       //htmlDoc.getImageData(nzdl, result.getCollectionName());
     327      htmlDoc.getImageData(nzdl, result.getCollectionName());
    318328      windowParent.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    319329      //System.err.println("prefix = " + nzdl.getCollectionInfo(result.getCollectionName()).getHTTPPrefix());
Note: See TracChangeset for help on using the changeset viewer.