- Timestamp:
- 2001-03-26T19:07:55+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/SearchPanel.java
r2222 r2225 116 116 117 117 collectionList = new JComboBox(csModel.getCollectionList()){ 118 public boolean isFocusTraversable() { 119 return false; 120 } 121 }; 122 collectionInfoButton = new JButton("Info..."); 118 public boolean isFocusTraversable() { 119 return false; 120 } 121 }; 122 collectionList.setEditable(false); 123 124 collectionInfoButton = new JButton("Info...") { 125 public String getToolTipText(MouseEvent e) { 126 //return "more information on " + collectionList.getSelectedItem(); 127 return "More information on " + csModel.getLongCollectionName((String)collectionList.getSelectedItem()); 128 } 129 }; 130 ToolTipManager.sharedInstance().registerComponent(collectionInfoButton); 123 131 collectionInfoButton.addActionListener(this); 124 132 … … 194 202 195 203 public void actionPerformed(ActionEvent e) { 204 String collectionName = collectionList.getSelectedItem().toString(); 196 205 if (e.getSource() == searchButton ) { 197 206 // cursor not set when RETURN pressed, only when button clicked ? 198 207 windowParent.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); 199 208 String queryString = searchTextField.getText(); 200 String collectionName = collectionList.getSelectedItem().toString();201 209 System.err.println("Search started (" + collectionName + "): \"" + queryString + "\" ..." ); 202 210 //send query to collection … … 240 248 resultsList.setSelectedIndex(0); // should be under Preference control! 241 249 } // end else 250 251 252 csModel.getQueryHistoryModel().add( new QueryHistoryItem(new Query(queryString), new Date(), collectionName, "user")); 253 242 254 titleMap.clear(); 243 255 titleMetaData.clear(); … … 247 259 else { 248 260 if (e.getSource() == collectionInfoButton) { 249 CollectionInfoDialog cid = new CollectionInfoDialog(windowParent, collection List.getSelectedItem().toString(), nzdl);261 CollectionInfoDialog cid = new CollectionInfoDialog(windowParent, collectionName, csModel); 250 262 } 251 263 else { … … 287 299 // treat as HTML 288 300 displayAsHTML(sr); 289 htmlDoc.getImageData(nzdl, result.getCollectionName());301 //htmlDoc.getImageData(nzdl, result.getCollectionName()); 290 302 } 291 303
Note:
See TracChangeset
for help on using the changeset viewer.