Examples of indexOf()


Examples of org.zkoss.zkplus.databind.BindingListModelList.indexOf()

    // check if data exists
    if (blml == null || blml.size() < 1)
      return;

    int index = blml.indexOf(getSelectedBranche());

    /**
     * Check, if all tabs with data binded components are created So we work
     * with spring BeanCreation we must check a little bit deeper, because
     * the Controller are preCreated ? After that, go back to the
View Full Code Here

Examples of org.zkoss.zul.ListModelList.indexOf()

    SecTyp typ = getSecurityService().getTypById(right.getRigType().intValue());

    if (right.isNew()) {
      rigType.setSelectedIndex(-1);
    } else {
      rigType.setSelectedIndex(lml.indexOf(typ));
    }

    // set Field Properties
    doSetFieldProperties();
View Full Code Here

Examples of org.zkoss.zul.Treeitem.indexOf()

            private void focusGoUp(Treerow treerow, int position) {
                Treeitem parent = (Treeitem) treerow.getParent();
                @SuppressWarnings("unchecked")
                List<Treeitem> treeItems = parent.getParent().getChildren();
                int myPosition = parent.indexOf();

                if (myPosition > 0) {
                    // the current node is not the first brother
                    Treechildren treechildren = treeItems.get(myPosition - 1)
                            .getTreechildren();
View Full Code Here

Examples of org.zoolu.tools.Parser.indexOf()

   /** Gets host of SipURL */
   public String getHost() { 
     char[] host_terminators={':',';','?'};
     Parser par = new Parser(url);
     int begin = par.indexOf('@'); // skip "sip:user@"
     if (begin < 0) begin = 4; // skip "sip:"
     else begin++; // skip "@"
    
     par.setPos(begin);
     int end = par.indexOf(host_terminators);
View Full Code Here

Examples of pivot.wtk.CardPane.indexOf()

                        CardPane cardPane = (CardPane)getComponent();

                        SelectionChangeTransition selectionChangeTransition =
                            (SelectionChangeTransition)transition;

                        int selectedIndex = cardPane.indexOf(selectionChangeTransition.toCard);
                        cardPane.setSelectedIndex(selectedIndex);
                        CardPaneSkin.this.selectionChangeTransition = null;
                    }
                });
            }
View Full Code Here

Examples of pivot.wtk.text.Element.indexOf()

            }
        } else {
            // The caret is positioned on a non-text character node; insert
            // the text into the descendant's parent
            Element parent = descendant.getParent();
            int index = parent.indexOf(descendant);
            parent.insert(new TextNode(text), index);
        }

        // Set the selection start to the character following the insertion
        setSelection(selectionStart + text.length(), selectionLength);
View Full Code Here

Examples of siena.Json.indexOf()

  }
 
  public void testIndexOf() {
    Json json = Json.list(1, 2, 3, "hello", true, false, null);

    assertEquals(0, json.indexOf(1));
    assertEquals(1, json.indexOf(2));
    assertEquals(2, json.indexOf(3));
    assertEquals(3, json.indexOf("hello"));
    assertEquals(4, json.indexOf(true));
    assertEquals(5, json.indexOf(false));
View Full Code Here

Examples of simtools.data.DataSourceCollection.indexOf()

      DataSourceCollection dsc = null;
      int index = -1;
      Set set = pool.dataSourceCollections();
      for (Iterator it = set.iterator(); it.hasNext(); ) {
        DataSourceCollection col = (DataSourceCollection)it.next();
        int idx = col.indexOf(ret);
        if (idx!=-1) {
          index = idx;
          dsc = col;
          break;
        }
View Full Code Here

Examples of tkuri.uty.Bs.indexOf()

      } else {
        host = path;
        path = Bs.valueOf("/");
      }

      int c = host.indexOf(':');
      if (c < 0) {
        port = 80;
      } else {
        port = (int) host.sub(c + 1).toLong();
        host = host.slice(0, c);
View Full Code Here

Examples of weka.core.FastVector.indexOf()

       // - relational
       dataRel = new Instances(data.attribute(4).relation(), 0);
       // -- first instance
       valsRel = new double[2];
       valsRel[0] = Math.PI + 1;
       valsRel[1] = attValsRel.indexOf("val5.3");
       dataRel.add(new Instance(1.0, valsRel));
       // -- second instance
       valsRel = new double[2];
       valsRel[0] = Math.PI + 2;
       valsRel[1] = attValsRel.indexOf("val5.2");
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.