Changeset 2312 for trunk/java-client


Ignore:
Timestamp:
2001-04-14T12:35:34+12:00 (23 years ago)
Author:
daven
Message:

altered display of term frequencies.

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

Legend:

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

    r2270 r2312  
    8383Font searchTextFieldFont = new Font("SansSerif", Font.BOLD , 11);
    8484
     85    /* fotn for search Term frequencies */
    8586
     87    Font searchTermFreqFont = new Font("SansSerif", Font.PLAIN , 11);
    8688
    8789}
  • trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/SearchPanel.java

    r2283 r2312  
    6767  JComboBox collectionList; 
    6868  JPanel queryFormulationPanel, resultsPanel, dataPanel, optionsPanel;
    69     JPanel queryTypePanel, searchControlPanel;
     69    JPanel queryTypePanel, searchControlPanel,  searchTermsPanel;
    7070  JPanel collectionListPanel, searchTextFieldPanel, searchButtonPanel;
    7171    JPopupMenu resultPopup;
     
    202202    searchControlPanel.add(searchButtonPanel, BorderLayout.EAST);
    203203
    204     searchTerms = new JLabel(" ");
     204    searchTermsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
     205    searchTerms = new JLabel("");
     206    searchTerms.setFont(searchTermFreqFont);
     207    searchTermsPanel.add(searchTerms);
    205208
    206209    queryFormulationPanel = new JPanel();
     
    211214    queryFormulationPanel.add(searchTextFieldPanel);
    212215    queryFormulationPanel.add(searchControlPanel);
    213     queryFormulationPanel.add(searchTerms, BorderLayout.WEST);
     216    queryFormulationPanel.add(searchTermsPanel);
    214217   
    215218
     
    306309      NzdlResultSet results = response.getResultSet();
    307310      ArrayList docIDs = new ArrayList(results.getDocumentIDs());
    308       searchTerms.setText(results.getTermFrequencyString());
    309       // System.err.println("Size of docIDs = " + docIDs.size());
     311      searchTerms.setText(results.getOrderedTermFrequencyString());
     312
    310313      // paired collection of docIDs and Titles - but as Sets!
    311314      Map titleMetaData = nzdl.getMetaData( collectionName, docIDs, "Title" );
Note: See TracChangeset for help on using the changeset viewer.