Examples of attachWidget()


Examples of org.dyno.visual.swing.plugin.spi.WidgetAdapter.attachWidget()

  }

  public static WidgetAdapter createWidgetAdapter(Component widget, boolean parseField) {
    WidgetAdapter adapter = createWidgetAdapter(widget.getClass());
    if (parseField)
      adapter.attachWidget(widget);
    else
      adapter.setWidget(widget);
    return adapter;
  }
View Full Code Here

Examples of org.getspout.spoutapi.gui.GenericPopup.attachWidget()

    container.setX(x).setY(y);
    container.setWidth(370).setHeight(20);
    container.setAuto(false);
    container.setLayout(ContainerType.HORIZONTAL);

    popup.attachWidget(plugin, container);
    player.getMainScreen().attachPopupScreen(popup);

  }

}
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    Color grey = new Color(0.80F, 0.80F, 0.80F, 0.65F);

    hastebinLink = new GenericLabel("Generating hastie...");
    hastebinLink.setX(95).setY(top);
    hastebinLink.setTextColor(grey);
    screen.attachWidget("Spoutcraft", hastebinLink);
    generateHastie();

    Button button = new CopyErrorURL(this).setText("Copy Link");
    button.setHeight(20).setWidth(80);
    button.setX((int) (hastebinLink.getWidth() + hastebinLink.getX() + 10.0));
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    Button button = new CopyErrorURL(this).setText("Copy Link");
    button.setHeight(20).setWidth(80);
    button.setX((int) (hastebinLink.getWidth() + hastebinLink.getX() + 10.0));
    button.setY(top-5);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);

    top += 25;

    button = new ReportErrorButton().setText("Report");
    button.setHeight(20).setWidth(70);
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    button = new ReportErrorButton().setText("Report");
    button.setHeight(20).setWidth(70);
    button.setX((int) (width / 2 - button.getWidth() - button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);

    button = new IgnoreErrorButton().setText("Ignore");
    button.setHeight(20).setWidth(70);
    button.setX((int) (width / 2 + button.getWidth() / 2));
    button.setY(top);
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    button = new IgnoreErrorButton().setText("Ignore");
    button.setHeight(20).setWidth(70);
    button.setX((int) (width / 2 + button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);
    top += 30;
  }

  @Override
  public void drawScreen(int var1, int var2, float var3) {
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    label = new GenericLabel(message);
    size = Spoutcraft.getMinecraftFont().getTextWidth(label.getText());
    label.setX((int) (width / 2 - size / 2)).setY(top);
    label.setTextColor(grey);
    screen.attachWidget("Spoutcraft", label);

    LocalTexture texture = new LocalTexture();
    texture.setUrl(FileUtil.getAssetsDir().getPath()+"/misc/disconnected.png").setX((int) (width / 2 - 64)).setY(top);
    texture.setHeight(128).setWidth(128);
    screen.attachWidget("Spoutcraft", texture);
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    screen.attachWidget("Spoutcraft", label);

    LocalTexture texture = new LocalTexture();
    texture.setUrl(FileUtil.getAssetsDir().getPath()+"/misc/disconnected.png").setX((int) (width / 2 - 64)).setY(top);
    texture.setHeight(128).setWidth(128);
    screen.attachWidget("Spoutcraft", texture);

    top += 116;

    Button button;
    button = new ReconnectButton().setText("Attempt to Reconnect");
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    button = new ReconnectButton().setText("Attempt to Reconnect");
    button.setHeight(20).setWidth(200);
    button.setX((int) (width / 2 - button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);
    top += 26;

    button = new ReturnToServerList().setText("Return to " + SpoutClient.getInstance().getServerManager().getJoinedFromName());
    button.setHeight(20).setWidth(200);
    button.setX((int) (width / 2 - button.getWidth() / 2));
View Full Code Here

Examples of org.spoutcraft.api.gui.GenericScrollArea.attachWidget()

    button = new ReturnToServerList().setText("Return to " + SpoutClient.getInstance().getServerManager().getJoinedFromName());
    button.setHeight(20).setWidth(200);
    button.setX((int) (width / 2 - button.getWidth() / 2));
    button.setY(top);
    button.setAlign(WidgetAnchor.TOP_CENTER);
    screen.attachWidget("Spoutcraft", button);
    top += 26;

    button = new ReturnToMainMenu().setText("Return to Main Menu");
    button.setHeight(20).setWidth(200);
    button.setX((int) (width / 2 - button.getWidth() / 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.