Examples of PopupType


Examples of com.bekvon.bukkit.residence.spout.ResidencePopup.PopupType

    @EventHandler(priority = EventPriority.NORMAL)
    public void onButtonClick(ButtonClickEvent event) {
        Player p = event.getPlayer();
        if (event.getScreen() instanceof ResidencePopup) {
            ResidencePopup screen = (ResidencePopup) event.getScreen();
            PopupType type = PopupType.valueOf(screen.getPopupType());
            if (type == PopupType.FLAG_GUI) {
                ResidencePopup popup = (ResidencePopup) screen;
                String flagval = null;
                String flag = null;
                String player = null;
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.PopupType

  }

  private Element createPopupFromType(final PopupType popupTypeParam, final String id) {
    Screen screen = getCurrentScreen();
    LayoutPart layerLayout = rootLayerFactory.createRootLayerLayoutPart(this);
    PopupType popupType = new PopupType(popupTypeParam);
    popupType.prepare(this, screen, screen.getRootElement().getElementType());
    Element element = popupType.create(screen.getRootElement(), this, screen, layerLayout);
    element.setId(id);
    fixupSubIds(element, id);
    if (screen.isBound()) {
      element.layoutElements();
      element.bindControls(screen);
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.PopupType

  public Element createPopupWithId(final String popupId, final String id) {
    return createAndAddPopup(id, popupTypes.get(popupId));
  }

  public Element createPopupWithStyle(final String popupId, final String id, final String style) {
    PopupType popupType = popupTypes.get(popupId);
    popupType.getAttributes().set("style", style);
    return createAndAddPopup(id, popupType);
  }
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.PopupType

  public Element createPopupWithStyle(final String popupId, final String style) {
    return createPopupWithStyle(popupId, style, new Attributes());
  }

  public Element createPopupWithStyle(final String popupId, final String style, final Attributes parameters) {
    PopupType popupType = new PopupType(popupTypes.get(popupId));
    popupType.getAttributes().set("style", style);
    popupType.getAttributes().merge(parameters);
    return createAndAddPopup(NiftyIdCreator.generate(), popupType);
  }
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.PopupType

    PanelType panelType = new PanelType(attributes);
    return buildControl(nifty, screen, parent, panelType, new LayoutPart());
  }

  protected void registerPopup(final Nifty nifty) {
    PopupType popupType = new PopupType(attributes);
    popupType.translateSpecialValues(nifty, null);
    nifty.registerPopup(popupType);
  }
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.PopupType

  public Element build(final Nifty nifty, final Screen screen, final Element parent) {
    throw new RuntimeException("you can't build popups using the PopupBuilder. Please call register() instead to dynamically register popups with Nifty.");
  }

  public void registerPopup(final Nifty nifty) {
    PopupType popupType = (PopupType) buildElementType();
    nifty.registerPopup(popupType);
  }
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.PopupType

    setId(id);
  }

  @Override
  public ElementType createType() {
    return new PopupType(attributes);
  }
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.