Package de.lessvoid.nifty.builder

Examples of de.lessvoid.nifty.builder.ControlBuilder


    this.hintPanelId = hintLayerId + "-hint-panel";

    new LayerBuilder(hintLayerId) {{
      childLayoutAbsoluteInside();
      visible(false);
      control(new ControlBuilder(hintPanelId, hintControl) {{
        parameter("hintText", hintText);
        if (hintStyle != null) {
          style(hintStyle);
        }
      }});
View Full Code Here


  public void onFocus(final boolean getFocus) {
  }

  public void addMenuItem(final String menuText, final T item) {
    final String id = NiftyIdCreator.generate();
    new ControlBuilder(id, "niftyMenuItem") { {
      set("menuText", nifty.specialValuesReplace(menuText));
      set("menuOnClick", "activateItem(" + id + ")");
      set("menuIconVisible", "false");
    } } .build(nifty, screen, element);
    items.put(id, item);
View Full Code Here

    items.put(id, item);
  }

  public void addMenuItem(final String menuText, final String menuIcon, final T item) {
    final String id = NiftyIdCreator.generate();
    new ControlBuilder(id, "niftyMenuItem") { {
      set("menuText", nifty.specialValuesReplace(menuText));
      set("menuOnClick", "activateItem(" + id + ")");
      if (menuIcon != null) {
        set("menuIcon", menuIcon);
        set("menuIconVisible", "true");
View Full Code Here

    } } .build(nifty, screen, element);
    items.put(id, item);
  }

  public void addMenuItemSeparator() {
    new ControlBuilder("niftyMenuItemSeparator").build(nifty, screen, element);
  }
View Full Code Here

      });
    }
  };
   rowControlBuilder.registerControlDefintion(nifty);

  new ListBoxBuilder("debugEntries") {{ viewConverterClass(DebugEntryViewConverter.class); displayItems(12); selectionModeDisabled(); hideHorizontalScrollbar(); width("100%"); height("100%"); childLayoutVertical(); optionalVerticalScrollbar(); alignLeft(); valignBottom(); control(new ControlBuilder("row")); }}
  .build(nifty, nifty.getScreen("debugGUI"), nifty.getScreen("debugGUI").findElementByName("chatpanel"));
 
  debugEntries = nifty.getScreen("debugGUI").findNiftyControl("debugEntries", ListBox.class);
 
  }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.builder.ControlBuilder

Copyright © 2018 www.massapicom. 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.