Package de.lessvoid.nifty.screen

Examples of de.lessvoid.nifty.screen.ScreenController


  public void create(
      final Nifty nifty,
      final NiftyType niftyType,
      final TimeProvider timeProvider) {
    String controller = getAttributes().get("controller");
    ScreenController screenController = resolveScreenController(nifty, controller);
   
    String id = getAttributes().get("id");
    Screen screen = new Screen(nifty, id, screenController, timeProvider);
    screen.setDefaultFocusElement(getAttributes().get("defaultFocusElement"));
View Full Code Here


    screen.processAddAndRemoveLayerElements();
    nifty.addScreen(id, screen);
  }

  private ScreenController resolveScreenController(final Nifty nifty, final String controller) {
    ScreenController screenController = null;
    if (controller != null) {
      screenController = nifty.findScreenController(controller);
      if (screenController == null) {
        screenController = ClassHelper.getInstance(controller, ScreenController.class);
      }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.screen.ScreenController

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.