Examples of SearchCommand


Examples of com.apress.progwt.server.web.domain.SearchCommand

            String message) throws SiteException {

        ModelMap rtn = ControllerUtil.getModelMap(req, userService);

        rtn.addAttribute("message", message);
        addResults(rtn, new SearchCommand(searchString));

        return rtn;
    }
View Full Code Here

Examples of com.baulsupp.kolja.log.viewer.commands.SearchCommand

  public void createDefaultCommands() {
    super.createDefaultCommands();

    commands.add(new GotoLineCommand());
    commands.add(new SearchCommand(this));
  }
View Full Code Here

Examples of org.broad.igv.ui.action.SearchCommand

        //Need to call this to attach listener
        MongoFeatureSource.loadFeatureTrack(MongoCollabPluginTest.getTestLocator(), new ArrayList<Track>());

        String searchStr = testFeat.getName();
        SearchCommand cmd = new SearchCommand(null, searchStr, false);
        List<SearchCommand.SearchResult> list = cmd.runSearch(searchStr);

        assertEquals(1, list.size());
        SearchCommand.SearchResult result = list.get(0);

        assertEquals(SearchCommand.ResultType.FEATURE, result.getType());
View Full Code Here

Examples of org.broad.igv.ui.action.SearchCommand

     * @param searchString
     * @param flankingRegion
     * @return The found locus, null if not found
     */
    public static Locus getLocus(String searchString, int flankingRegion) {
        SearchCommand cmd = new SearchCommand(getDefaultFrame(), searchString);
        List<SearchCommand.SearchResult> results = cmd.runSearch(searchString);
        Locus locus = null;
        for (SearchCommand.SearchResult result : results) {
            if (result.getType() != SearchCommand.ResultType.ERROR) {
                int delta = 0;

View Full Code Here

Examples of org.broad.igv.ui.action.SearchCommand

            log.debug("Enter search by locus: " + searchText);
        }

        if ((searchText != null) && (searchText.length() > 0)) {
            searchTextField.setText(searchText);
            (new SearchCommand(getDefaultReferenceFrame(), searchText)).execute();
            //This is not necessary, since we receive a ViewChange.Result later
            //chromosomeComboBox.setSelectedItem(getDefaultReferenceFrame().getChrName());
        }

        if (log.isDebugEnabled()) {
View Full Code Here

Examples of org.broad.igv.ui.action.SearchCommand

                IGV.getInstance().setGeneList(GeneListManager.getInstance().getGeneList(listName), false);
            } else {
                if (FrameManager.isGeneListMode()) {
                    IGV.getInstance().setGeneList(null, false);
                }
                (new SearchCommand(FrameManager.getDefaultFrame(), locus, false)).execute();
                //Zoom should be implicit in the locus
                //FrameManager.getDefaultFrame().setZoom(entry.getZoom());
            }

        }
View Full Code Here

Examples of org.cipres.treebase.web.model.SearchCommand

  public ModelAndView onSubmit (HttpServletRequest request,
        HttpServletResponse response,
        Object command,
        BindException errors) throws Exception {

    SearchCommand searchCommand = (SearchCommand) command;
    List<SearchCriteriaCommand> criterias = searchCommand.getCriterias();
    if (request.getParameter("Submit Query") != null) {
      if (criterias.size() == 0) {
        request.setAttribute("messages", getMessageSourceAccessor().getMessage("search.no.criteria.selected"));
        return showForm(request, response, errors);
      }
View Full Code Here

Examples of org.cipres.treebase.web.model.SearchCommand

* @see org.springframework.web.servlet.mvc.AbstractFormController#formBackingObject(javax.servlet.http.HttpServletRequest)
*/
protected Object formBackingObject(HttpServletRequest request) throws ServletException {

  // retrieve SearchCommand object from request scope
  SearchCommand searchCommand = (SearchCommand) request.getSession().getAttribute(Constants.SEARCH_COMMAND);
  if (searchCommand == null) {
    searchCommand = new SearchCommand();
  }
  return searchCommand;
}
View Full Code Here

Examples of org.cipres.treebase.web.model.SearchCommand

   * @see org.springframework.web.servlet.mvc.Controller#handleRequest(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
   */
  public ModelAndView handleRequest(HttpServletRequest request,
      HttpServletResponse response) throws Exception {
   
    SearchCommand searchCommand = (SearchCommand) request.getSession().getAttribute(Constants.SEARCH_COMMAND);
    StudyCriteria studyCriteria = new StudyCriteria();
    List<SearchCriteriaCommand> criterias = searchCommand.getCriterias();
   
    Collection<Study> studyList = new ArrayList<Study>();
    // no longer needed
    request.getSession().removeAttribute(Constants.SEARCH_COMMAND);
    if (searchCommand == null) {
View Full Code Here

Examples of org.cipres.treebase.web.model.SearchCommand

    String query = request.getParameter("query");
    if ( ! TreebaseUtil.isEmpty(query) ) {
      return this.handleQueryRequest(request, response, errors, query);
    }
    if (formName.equals("searchByTaxonLabel")) {
      SearchCommand newSearchCommand = (SearchCommand)searchCommand;
      String searchOn = request.getParameter("searchOn");
      String searchTerm = convertStars(request.getParameter("searchTerm"));
      String[] searchTerms = searchTerm.split("\\r\\n")
      Collection<Taxon> taxa = new HashSet<Taxon>();
      for ( int i = 0; i < searchTerms.length; i++ ) {
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.