Package xnap.util

Examples of xnap.util.SearchFilter


  this.finalFilename = file.getName();

  /* this should be in a separate function, but we don't want to break
           serialization stuff, do we?  So clean this up in the next major
           ResumeFile version.  */
  SearchFilter filter = new SearchFilter(getFilterData());
  if (filter.getSearchText() == null
      || filter.getSearchText().length() == 0) {
      String name = FileHelper.name(getName());
      filter.setSearchText(StringHelper.stripExtra(name));
  }
    }
View Full Code Here


     */
    public void download(SearchResultContainer c, SearchFilter filter,
       File file)
    {
  if (filter == null) {
      filter = new SearchFilter();
  }

  boolean autoDownload = false;
  ISearchResult[] results = c.getSearchResults();
  for (int i = 0; i < results.length; i++) {
View Full Code Here

  }
    }

    public SearchFilter getSearchFilter()
    {
  SearchFilter f = new SearchFilter();

  f.setSearchText(jcSearch.getText().trim());
  if (opBox.isBitrateEnabled()) {
      f.setBitrateCompare(opBox.getBitrateCompare());
      f.setBitrate(opBox.getBitrate());
  }
  f.setMediaType(jcMediaType.getSelectedIndex());
  f.setFilesizeCompare(opBox.getFilesizeCompare());
  f.setFilesize(opBox.getFilesize());

  return f;
    }
View Full Code Here

            putValue(Action.MNEMONIC_KEY, new Integer('Q'));
        }

        public void actionPerformed(ActionEvent event)
  {
      SearchFilter filter = getSearchFilter();
      if (filter.getSearchText().length() > 0) {
    SearchManager.getInstance().search(filter);
    jcSearch.addDistinctItemAtTop(filter);
      }
      else {
    setStatus(XNap.tr("What are you trying to search for?"));
View Full Code Here

TOP

Related Classes of xnap.util.SearchFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.