Examples of Present()


Examples of com.cedarsoft.presenter.JMenuBarPresenter.present()

  }

  protected void run() {
    JMenuBarPresenter presenter = new JMenuBarPresenter();
    JFrame frame = createFrame();
    frame.setJMenuBar( presenter.present( rootNode ) );
    frame.setVisible( true );
  }

  @NotNull
  protected JFrame createFrame() {
View Full Code Here

Examples of com.cedarsoft.presenter.JMenuBarPresenter.present()

    JMenuBarPresenter presenter = new JMenuBarPresenter();

    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );

    frame.setJMenuBar( presenter.present( rootNode ) );

    frame.pack();
    frame.setSize( 800, 600 );
    frame.setLocationRelativeTo( null );
View Full Code Here

Examples of dxgi.IDXGISwapChain.Present()

            // Set primitive topology and draw
            immediateContext.IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
            immediateContext.Draw(3, 0);
           
            // Present to screen
            swapChain.Present(0, 0);
          }
        });
   
      try {
        Thread.sleep(5);
View Full Code Here

Examples of dxgi.IDXGISwapChain.Present()

            immediateContext.PSSetShader(pointerTo(ps), null, 0);
           
            immediateContext.IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
            immediateContext.Draw(3, 0);
           
            swapChain.Present(0, 0);
          }
        });
   
      try {
        Thread.sleep(5);
View Full Code Here

Examples of org.fao.geonet.kernel.search.MetaSearcher.present()

    searcher.search(context, params, config);

    params.addContent(new Element("from").setText("1"));
    params.addContent(new Element("to").setText(searcher.getSize() +""));

    Element result = searcher.present(context, params, config);

    searcher.close();

    return result;
  }
View Full Code Here

Examples of org.fao.geonet.kernel.search.MetaSearcher.present()

    params.addContent(new Element("from").setText("1"));
    params.addContent(new Element("to").setText(searcher.getSize() +""));

    context.info("Records found : "+ searcher.getSize());

    Element records = searcher.present(context, params, dummyConfig);

    records.getChild("summary").detach();

    List<Integer> result = new ArrayList<Integer>();
View Full Code Here

Examples of org.fao.geonet.kernel.search.MetaSearcher.present()

            parameters.addContent(new Element("to").addContent(to));

            searcher.search(context, parameters, _config);

            Element response = new Element(type);
            Element relatedElement = searcher.present(context, parameters, _config);
            response.addContent(relatedElement);
            return response;
        } finally {
            searcher.close();
        }
View Full Code Here

Examples of org.fao.geonet.kernel.search.MetaSearcher.present()

        presentRequest.addContent(new Element("fast").setText("true"));
        presentRequest.addContent(new Element("from").setText("1"));
        presentRequest.addContent(new Element("to").setText(searcher.getSize()+""));
             
        @SuppressWarnings("unchecked")
                List<Element> results = searcher.present(context, presentRequest, _config).getChildren();
 
        _response = new Element("response");
        for (int i = 0; i < _maxItems && results.size() > 1; i++) {
          Random rnd = new Random();
          int r = rnd.nextInt(results.size() - 1) + 1// skip summary
View Full Code Here

Examples of org.fao.geonet.kernel.search.MetaSearcher.present()

    // If element type found, then get their uuid
    if (searcher.getSize() != 0) {
            if(Log.isDebugEnabled(Geonet.MEF))
                Log.debug(Geonet.MEF, "  Exporting record(s) found for metadata: " + uuid);
      Element elt = searcher.present(context, request, _config);

      // Get ISO records only
      @SuppressWarnings("unchecked")
            List<Element> isoElt = elt.getChildren();
      for (Element md : isoElt) {
View Full Code Here

Examples of org.fao.geonet.kernel.search.MetaSearcher.present()

        // FIXME ? from and to parameter could be used but if not
        // set, the service return the whole range of results
        // which could be huge in non fast mode ?
        elData.addContent(new Element("to").setText(searcher.getSize() +""));
   
        Element result = searcher.present(context, elData, _config);
       
        // Update result elements to present
        SelectionManager.updateMDResult(context.getUserSession(), result);
   
        return result;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.