Examples of indexOf()


Examples of org.glassfish.grizzly.http.util.MimeHeaders.indexOf()

            return null;
        }

        // check if we need to wrap the BodyHandler with ExpectHandler
        final MimeHeaders headers = requestPacket.getHeaders();
        final int expectHeaderIdx = headers.indexOf(Header.Expect, 0);

        return expectHeaderIdx != -1
                && headers.getValue(expectHeaderIdx).equalsIgnoreCase("100-Continue")
                ? new ExpectHandler(bodyHandler)
                : bodyHandler;
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.views.table.TableItemOrTreeItem.indexOf()

    if (event == null || (event.detail & (SWT.HOT | SWT.SELECTED | SWT.FOCUSED)) == 0) {

      int pos;
      TableItemOrTreeItem parentItem = item.getParentItem();
      if (parentItem != null) {
        pos = parentItem.indexOf(item) + ((table.indexOf(parentItem) + 1) % 2);
      } else {
        pos = table.indexOf(item);
      }
      Color color = alternatingColors[pos % 2];
      if (color != null) {
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.views.table.TableOrTreeSWT.indexOf()

    if (event == null || (event.detail & (SWT.HOT | SWT.SELECTED | SWT.FOCUSED)) == 0) {

      int pos;
      TableItemOrTreeItem parentItem = item.getParentItem();
      if (parentItem != null) {
        pos = parentItem.indexOf(item) + ((table.indexOf(parentItem) + 1) % 2);
      } else {
        pos = table.indexOf(item);
      }
      Color color = alternatingColors[pos % 2];
      if (color != null) {
View Full Code Here

Examples of org.htmlparser.util.NodeList.indexOf()

  }

  // It's a bit of work to insert a node with the htmlparser module.
  private void insertRowAfter(Row existingRow, Row childRow) {
    NodeList rowNodes = tableNode.getChildren();
    int index = rowNodes.indexOf(existingRow.rowNode);
    Stack<Node> tempStack = new Stack<Node>();

    while (rowNodes.size() - 1 > index) {
      tempStack.push(rowNodes.elementAt(tableNode.getChildren().size() - 1));
      rowNodes.remove(rowNodes.size() - 1);
View Full Code Here

Examples of org.infinispan.schematic.internal.document.MutableArray.indexOf()

    }

    @Override
    public void replay( MutableDocument delegate ) {
        MutableArray array = mutableParent(delegate);
        actualIndex = array.indexOf(value);
        array.remove(actualIndex);
    }

    @Override
    public String toString() {
View Full Code Here

Examples of org.itsnat.comp.list.ItsNatComboBox.indexOf()

    public void itemStateChanged(ItemEvent e)
    {
        Object itemValue = e.getItem();

        ItsNatComboBox combo = getItsNatComboBox();
        int index = combo.indexOf(itemValue);
        int status = e.getStateChange();
        //HTMLDocument doc = (HTMLDocument)itsNatDoc.getDocument();
        String msg = "ERROR ";
        if (status == ItemEvent.DESELECTED)
            msg = "OK deselected " + index + " ";
View Full Code Here

Examples of org.jboss.netty.buffer.ChannelBuffer.indexOf()

        }

        ChannelBuffer binaryData = buffer.readBytes(frameSize);
        buffer.skipBytes(1);

        int ffDelimPos = binaryData.indexOf(binaryData.readerIndex(), binaryData.writerIndex(), (byte) 0xFF);
        if (ffDelimPos >= 0) {
            throw new IllegalArgumentException("a text frame should not contain 0xFF.");
        }

        return new TextWebSocketFrame(binaryData);
View Full Code Here

Examples of org.jdom.Element.indexOf()

        Element sibling = nodes.get(0);
        Element parent = sibling.getParentElement();
        node = (Element) sibling.clone();
        Attribute targetAttrLang = getLanguageAttr(node);
        targetAttrLang.setValue(locale.getLanguage());
        int indexOfElement = parent.indexOf(sibling);
        parent.addContent(indexOfElement+1, node);
        return node;
    }

    public void inject(Map<Locale,Properties> bundles) throws Exception {
View Full Code Here

Examples of org.jfree.chart.plot.XYPlot.indexOf()

    plot.setDataset(1, actualDataset);

    XYLineAndShapeRenderer idealRenderer = new XYLineAndShapeRenderer(true, false);
    idealRenderer.setDrawSeriesLineAsPath(true);
    idealRenderer.setStroke(new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 10f, new float[]{10f, 10f}, 0f));
    plot.setRenderer(plot.indexOf(idealDataset), idealRenderer);

    XYLineAndShapeRenderer actualRenderer = new XYLineAndShapeRenderer(true, false);
    actualRenderer.setDrawSeriesLineAsPath(true);
    //idealRenderer.setStroke(new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 10f, new float[]{10f, 10f}, 0f));
    plot.setRenderer(plot.indexOf(actualDataset), actualRenderer);
View Full Code Here

Examples of org.jfree.data.time.TimeSeriesCollection.indexOf()

    public void showData(String name, boolean show) {
        TimeSeriesCollection dataset = model.getDatasetPer100();
        boolean shapeVisible = false;
        for (TimeSeriesEx<StatisticsData> timeSeriesEx : (List<TimeSeriesEx<StatisticsData>>) dataset.getSeries()) {
            StatisticsData data = timeSeriesEx.getUserObject();
            int seriesIndex = dataset.indexOf(timeSeriesEx);
            rendererPer100.setSeriesLinesVisible(seriesIndex, data.isShow());
            shapeVisible = data.isShow() && timeSeriesEx.getItemCount() == 1;
            rendererPer100.setSeriesShapesVisible(seriesIndex, shapeVisible);
        }
        dataset = model.getDatasetPer1000();
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.