Examples of indexOf()


Examples of com.salas.bb.core.GuidesListModel.indexOf()

        GuidesListModel glm = GlobalController.SINGLETON.getGuidesListModel();

        while (!found)
        {
            guide = nextGuide(cgs, guide);
            found = guide == currentGuide || (!guide.isRead() && glm.indexOf(guide) != -1);
        }

        return currentGuide == guide ? null : guide;
    }
View Full Code Here

Examples of com.salas.bb.domain.GuidesSet.indexOf()

            EditGuideDialog dialog = new EditGuideDialog(mainFrame, actAvailable, pubLimit, pubLimitReached);
            dialog.open(set, guide);

            if (!dialog.hasBeenCanceled())
            {
                performUpdates(guide, dialog, set.indexOf(guide));

                boolean newPublishingEnabled = guide.isPublishingEnabled();
                if (newPublishingEnabled && !oldPublishingEnabled)
                {
                    GlobalController.SINGLETON.showNewPublishingDialog();
View Full Code Here

Examples of com.salas.bb.domain.IGuide.indexOf()

        final int index = model.indexOf(feed) + 1;
        if (feed != null && index < model.getSize())
        {
            // Get real index
            IFeed entry = (IFeed)model.getElementAt(index);
            int realIndex = guide.indexOf(entry);

            GlobalController.SINGLETON.moveFeed(feed, sGuide, sGuide, realIndex);

            // Select it back and ensure that it's visible.
            list.setSelectedIndex(index);
View Full Code Here

Examples of com.sun.grizzly.util.buf.ByteChunk.indexOf()

        int start, end, semicolon, semicolon2;

        ByteChunk uriBC = coyoteRequest.requestURI().getByteChunk();
        start = uriBC.getStart();
        end = uriBC.getEnd();
        semicolon = uriBC.indexOf(parameter, 0, parameter.length(), 0);
        if (semicolon > 0) {
            semicolon2 = uriBC.indexOf(';', semicolon + parameter.length());
            uriBC.setEnd(start + semicolon);
            byte[] buf = uriBC.getBuffer();
            if (semicolon2 >= 0) {
View Full Code Here

Examples of com.sun.grizzly.util.buf.CharChunk.indexOf()

        index = 0;

        // Resolve occurrences of "/../" in the normalized path
        while (true) {
            index = uriCC.indexOf("/../", 0, 4, index);
            if (index < 0)
                break;
            // Prevent from going outside our context
            if (index == 0)
                return false;
View Full Code Here

Examples of com.sun.jna.Pointer.indexOf()

        public final IRubyObject invoke(Ruby runtime, Function function, Object[] args) {
            Pointer address = function.invokePointer(args);
            if (address == null) {
                return runtime.getNil();
            }
            int len = (int) address.indexOf(0, (byte) 0);
            if (len == 0) {
                return RubyString.newEmptyString(runtime);
            }
            ByteList bl = new ByteList(len);
            bl.length(len);
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.util.IntegerArray.indexOf()

                && _enhancedDOM.hasDOMSource()) {
                nodes = getDOMNodeById(token)
            }

            // Did we find the context node in the set of nodes?
            if (nodes != null && nodes.indexOf(node) >= 0) {
                return 1;
            }
        }

        // Didn't find the context node in the set of nodes returned by id
View Full Code Here

Examples of com.sun.org.apache.xml.internal.utils.SuballocatedIntVector.indexOf()

                SuballocatedIntVector nsContext=findNamespaceContext(makeNodeIdentity(baseHandle));

            if(nsContext==null)
              return NULL;
            int i=1 + nsContext.indexOf(nodeHandle);
            if(i<=0 || i==nsContext.size())
              return NULL;

            return nsContext.elementAt(i);
          }
View Full Code Here

Examples of com.sun.xml.ws.api.message.HeaderList.indexOf()

                    }
                    edList.remove(id);
                    context.setEdIdforEh(null);
                    // FIXME: RJE -- remove cast when MessageContext supports replace()
                    HeaderList h = (HeaderList) headers;
                    int index = h.indexOf(header);
                    h.set(index, processedHeader);
                    found = true;
                    break;
                }
            }
View Full Code Here

Examples of com.tinyline.tiny2d.TinyString.indexOf()

    String url;
    TinyString xlink_href = ((SVGGroupElem)linkNode).xlink_href;
    if(xlink_href == null) return;
    // System.out.println("linkEvent: " + xlink_href);
    // If its a local link
    int hashIndex = xlink_href.indexOf('#',0);
    if(hashIndex != -1)
    {
      //local link
      // Go thru all animations. For each anim with id equals
      // the local_link and which begin equals 'indefinite':
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.