Changeset 2227 for trunk/java-client/org/nzdl
- Timestamp:
- 2001-03-27T10:57:26+12:00 (23 years ago)
- Location:
- trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/QueryHistoryModel.java
r2225 r2227 46 46 } 47 47 48 public Class getColumnClass(int c) { 49 return getValueAt(0, c).getClass(); 50 } 51 48 52 public int getRowCount() { 49 53 return historyItems.size(); … … 67 71 68 72 69 class CollectionName extends Object {73 public class CollectionName extends Object { 70 74 String string; 71 75 -
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/QueryHistoryPanel.java
r2225 r2227 34 34 35 35 QueryHistoryModel personalQueryHistoryModel; 36 CSModel csModel; 36 37 37 38 JTable personalQueryHistoryTable; … … 40 41 TableSorter tableSorter; 41 42 42 public QueryHistoryPanel(CSModel csModel) {43 public QueryHistoryPanel(CSModel newCSModel) { 43 44 super(); 45 csModel = newCSModel; 44 46 setLayout( new BorderLayout() ); 45 47 setBorder(BorderFactory.createTitledBorder("Query History")); … … 56 58 personalScrollQueryPane = new JScrollPane(personalQueryHistoryTable); 57 59 60 personalQueryHistoryTable.getColumnModel().getColumn(0).setMaxWidth(100); 61 62 58 63 tabbedPane= new JTabbedPane(); 59 64 tabbedPane.addTab("Personal", personalScrollQueryPane); … … 70 75 boolean hasFocus, 71 76 int row, 72 int column) { 73 this.setText("**" + value.toString()); 74 return this; 75 } // end getTableCellRendererComponent 77 int column) { 78 this.setText(value.toString()); 79 this.setFont(queryHistoryFont); 80 this.setToolTipText(csModel.getLongCollectionName(value.toString())); 81 return this; 82 } // end getTableCellRendererComponent 76 83 77 84 -
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/SearchPanel.java
r2225 r2227 124 124 collectionInfoButton = new JButton("Info...") { 125 125 public String getToolTipText(MouseEvent e) { 126 //return "more information on " + collectionList.getSelectedItem(); 127 return "More information on " + csModel.getLongCollectionName((String)collectionList.getSelectedItem()); 126 return "Collection information for '" + csModel.getLongCollectionName((String)collectionList.getSelectedItem()) +"'"; 128 127 } 129 128 };
Note:
See TracChangeset
for help on using the changeset viewer.