Examples of find()


Examples of org.zkoss.ganttz.TaskList.find()

            // update the current taskComponent's parents
            List<Task> parents = new ArrayList<Task>(context.getMapper()
                    .getParents(taskComponent.getTask()));
            TaskList taskList = taskComponent.getTaskList();
            for (Task task : parents) {
                TaskComponent parentComponent = taskList.find(task);
                if (parentComponent != null) {
                    updateTaskComponent(parentComponent);
                }
            }
        }
View Full Code Here

Examples of org.zkoss.ztl.JQuery.find()

    @Override
    protected void executeTest() {
        JQuery cell_F_6 = loadCell();
        clickCell(cell_F_6);
        clickCell(cell_F_6);
        int originalWidth = cell_F_6.find("div").last().width();
        String beforeCss = cell_F_6.css("white-space");
        click(jq("$fastIconBtn $wrapTextBtn:visible"));
        System.out.println(">>>beforeCss:"+beforeCss);
        waitResponse();
View Full Code Here

Examples of pdp.scrabble.game.BestPlacement.find()

    public Placement suggestPlacement(
      Player player, AIConfig config, List<Letter> required,
      List<Letter> excluded) {

  BestPlacement bestPlacement = new BestPlacementImpl(this.game);
  return bestPlacement.find(player, config, required, excluded);
    }
}
View Full Code Here

Examples of srsim.persistence.DerbyEmbeddedDS.find()

    record.setEnergyConsumption(1400.0D);
    record.setTimeStamp(System.currentTimeMillis());
    ds.persist(record);
    Criterion criterion = new Criterion("temperature").lessEqual("20").and(
        new Criterion("brightness").lessThan("10000"));
    List<SimulationRecord> storedRecords = ds.find(criterion);
    Assert.assertFalse(storedRecords.isEmpty());
  }

  @Test
  public void testRetrievingAllRecords() throws InstantiationException,
View Full Code Here

Examples of tests.api.java.util.support.B.find()

    assertEquals("Wrong cached value",
        "resource", bundle.getString("property"));

    // Regression test for Harmony-3823
    B bb = new B();
    String s = bb.find("nonexistent");
    s = bb.find("name");
    assertEquals("Wrong property got", "Name", s);
  }

  /**
 
View Full Code Here

Examples of versusSNP.blast.util.SNPFinder.find()

          if (isAnother) {
            if (filter.test(set)) {
              blastList.add(set);
            }
            isAnother = isQuery = isSubject = false;
            snpFinder.find(set);
            set = new BlastSet();
          }
          set.setQName(m.group(1));
        } else if ((m=m_Letters.matcher(line)).find()) {
          set.setQLen(m.group(1));
View Full Code Here

Examples of vg.modules.notepad.components.textComponent.ITextComponent.find()

  }
  private synchronized void find() {
    String whatFind = this.searchField.getText();
    ITextComponent textComponent = this.desktop.getCurrentTextComponent();
    if(textComponent != null) {
      textComponent.find(whatFind);
    }
  }
  /**
   * This method deletes non-empty directory.
   */
 
View Full Code Here

Examples of voldemort.server.rebalance.RebalancerState.find()

            RebalancerState rebalancerState = getRebalancerState();
            if(!rebalancerState.update(stealInfo)) {
                throw new VoldemortException("Could not add steal information " + stealInfo
                                             + " since a plan for the same donor node "
                                             + stealInfo.getDonorId() + " ( "
                                             + rebalancerState.find(stealInfo.getDonorId())
                                             + " ) already exists");
            }
            put(MetadataStore.REBALANCING_STEAL_INFO, rebalancerState);
            initCache(REBALANCING_STEAL_INFO);
        } finally {
View Full Code Here

Examples of water.fvec.Frame.find()

   *  frame which contains only vectors which where adapted (the purpose of the
   *  second frame is to delete all adapted vectors with deletion of the
   *  frame). */
  public Frame[] adapt( final Frame fr, boolean exact) {
    Frame vfr = new Frame(fr); // To avoid modification of original frame fr
    int ridx = vfr.find(_output._names[_output._names.length-1]);
    if(ridx != -1 && ridx != vfr._names.length-1){ // Unify frame - put response to the end
      String n = vfr._names[ridx];
      vfr.add(n,vfr.remove(ridx));
    }
    int n = ridx == -1?_output._names.length-1:_output._names.length;
View Full Code Here

Examples of xbird.storage.indexer.BTreeIndexer.find()

                final String docName = pair.getSecond();
                final File idxFile = getIndexFile(col, docName);
                BTreeIndexer indexer = new BTreeIndexer(idxFile);
                final IndexMatch matched;
                try {
                    matched = indexer.find(idxCond);
                } catch (DbException e) {
                    throw new XQRTException("failed to query index: " + idxFile.getAbsolutePath(), e);
                }
                // TODO REVIEWME sort really required?
                final long[] ptrs = filter(matched.getMatchedUnsorted(), docName, idxFile);
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.