Package xnap.util

Examples of xnap.util.SearchFilter$Data


     *
     * @return Contentinfo with contentType Data.
     */
    private ContentInfo makeData(SafeContents safe) throws IOException,
      ASN1Exception {
  Data data = null;
  ByteArrayOutputStream baos = new ByteArrayOutputStream();
  DEREncoder encoder = new DEREncoder(baos);
  safe.encode(encoder);
  data = new Data(baos.toByteArray());
  baos.close();
  ContentInfo cInfo = new ContentInfo(data);
  return cInfo;
    }
View Full Code Here


  // check version before any other operations
  Request request = new Request (display, major_opcode, 0, 3);
  request.write4 (CLIENT_MAJOR_VERSION);
  request.write4 (CLIENT_MINOR_VERSION);

  Data reply = display.read_reply (request);
  server_major_version = reply.read4 (8);
  server_minor_version = reply.read4 (12);
    }
View Full Code Here

     */
    public long getOverlayWindow (Window win) {
  Request request = new Request (display, major_opcode, 7, 2);
  request.write4 (win.id);

  Data reply = display.read_reply (request);
  if (reply == null) {
      return -1;
  }

  return reply.read4(8);
    }
View Full Code Here

    // check version before any other operations
    Request request = new Request (display, major_opcode, 0, 3);
    request.write4 (CLIENT_MAJOR_VERSION);
    request.write4 (CLIENT_MINOR_VERSION);
 
    Data reply = display.read_reply (request);
    server_major_version = reply.read2 (8);
    server_minor_version = reply.read2 (10);
  }
View Full Code Here

      Configuration configuration = project.getConfiguration();

      if (configuration != null)
      {
        Data data = configuration.getData();

        if (data != null)
        {
          ModuleDependencies moduleDependencies = data.getModuleDependencies();

          if (moduleDependencies != null)
          {
            dependencies = moduleDependencies.getDependency();
          }
View Full Code Here

  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$Data

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.