Examples of containsText()


Examples of org.apache.pivot.wtk.Manifest.containsText()

            @Override
            public void buttonPressed(Button button) {
                Manifest clipboardContent = Clipboard.getContent();

                if (clipboardContent != null
                    && clipboardContent.containsText()) {
                    try {
                        label.setText(clipboardContent.getText());
                    } catch(IOException exception) {
                        System.err.println(exception);
                    }
View Full Code Here

Examples of org.apache.pivot.wtk.Manifest.containsText()

    public void paste() {
        Manifest clipboardContent = Clipboard.getContent();

        if (clipboardContent != null
            && clipboardContent.containsText()) {
            String json = null;
            JSONSerializer jsonSerializer = new JSONSerializer();
            try {
                json = clipboardContent.getText();
                setValue(jsonSerializer.readObject(new StringReader(json)));
View Full Code Here

Examples of org.apache.pivot.wtk.Manifest.containsText()

    public void paste() {
        Manifest clipboardContent = Clipboard.getContent();

        if (clipboardContent != null
            && clipboardContent.containsText()) {
            String xml = null;
            XMLSerializer xmlSerializer = new XMLSerializer();
            try {
                xml = clipboardContent.getText();
                setDocument(xmlSerializer.readObject(new StringReader(xml)));
View Full Code Here

Examples of org.apache.pivot.wtk.Manifest.containsText()

    public void paste() {
        Manifest clipboardContent = Clipboard.getContent();

        if (clipboardContent != null
            && clipboardContent.containsText()) {
            String json = null;
            JSONSerializer jsonSerializer = new JSONSerializer();
            try {
                json = clipboardContent.getText();
                setValue(jsonSerializer.readObject(new StringReader(json)));
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.containsText()

  @Override
  public boolean activateCondition() {
    final RSComponent component = interfaces.getComponent(210, 1);
    return game.isLoggedIn() &&
        (objects.getNearest(allAppendages) != null ||
        component.containsText("Abyssal Service") &&
        component.containsText("apologises for the inconvenience"));
  }

  private int getOddAppendage() {
    final int answer = settings.getSetting(setting);
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.containsText()

  public boolean activateCondition() {
    final RSComponent component = interfaces.getComponent(210, 1);
    return game.isLoggedIn() &&
        (objects.getNearest(allAppendages) != null ||
        component.containsText("Abyssal Service") &&
        component.containsText("apologises for the inconvenience"));
  }

  private int getOddAppendage() {
    final int answer = settings.getSetting(setting);
    try {
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.containsText()

          walking.walkTileMM(portalLocation.randomize(2, 2));
          return random(1500, 2000);
        }
      }
    }
    if (talkComponent.containsText("Ahem, ")) {
      readyToLeave = false;
    }
    if (talkComponent.containsText("Correct.") || talkComponent.containsText("You can go now.")) {
      readyToLeave = true;
    }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.containsText()

      }
    }
    if (talkComponent.containsText("Ahem, ")) {
      readyToLeave = false;
    }
    if (talkComponent.containsText("Correct.") || talkComponent.containsText("You can go now.")) {
      readyToLeave = true;
    }
    if (interfaces.getComponent(184, 0).isValid()) {
      final int modelID = interfaces.getComponent(184, 8).getComponent(3).getModelID();
      String itemName = null;
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.containsText()

      }
    }
    if (talkComponent.containsText("Ahem, ")) {
      readyToLeave = false;
    }
    if (talkComponent.containsText("Correct.") || talkComponent.containsText("You can go now.")) {
      readyToLeave = true;
    }
    if (interfaces.getComponent(184, 0).isValid()) {
      final int modelID = interfaces.getComponent(184, 8).getComponent(3).getModelID();
      String itemName = null;
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.containsText()

        }
        return random(1000, 2000);
      }
      for (int j = 0; j < 3; j++) {
        final RSComponent iface = interfaces.getComponent(184, 8).getComponent(j);
        if (iface.containsText(itemName)) {
          iface.doClick();
          return random(1000, 1200);
        }
      }
    }
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.