Examples of StringHandler


Examples of com.esri.gpt.framework.http.StringHandler

  @Override
  public void ping(String url) throws Exception {
    HttpClientRequest httpRequest = new HttpClientRequest();
    httpRequest.setUrl(url);
    httpRequest.setCredentialProvider(getCredentialProvider());
    httpRequest.setContentHandler(new StringHandler());
    httpRequest.execute();
  }
View Full Code Here

Examples of logisticspipes.utils.gui.GuiStringHandlerButton.StringHandler

  public void initGui() {
    super.initGui();
    buttonList.clear();
    final String blocked = StringUtil.translate(PREFIX + "Blocked");
    final String allowed = StringUtil.translate(PREFIX + "Allowed");
    buttonList.add(new GuiStringHandlerButton(0, width / 2 + 23, height / 2 + 27 - 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlocking() ? blocked : allowed;}}));
    buttonList.add(new GuiStringHandlerButton(1, width / 2 + 23, height / 2 + 60 - 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlockProvider() ? blocked : allowed;}}));
    buttonList.add(new GuiStringHandlerButton(2, width / 2 + 23, height / 2 + 93 - 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlockCrafer() ? blocked : allowed;}}));
    buttonList.add(new GuiStringHandlerButton(3, width / 2 + 23, height / 2 + 126- 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlockSorting() ? blocked : allowed;}}));
    buttonList.add(new GuiStringHandlerButton(4, width / 2 + 23, height / 2 + 160- 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlockPower() ? blocked : allowed;}}));
  }
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.