Package de.lessvoid.nifty.builder

Source Code of de.lessvoid.nifty.builder.LayerBuilder

package de.lessvoid.nifty.builder;

import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.controls.dynamic.LayerCreator;
import de.lessvoid.nifty.elements.Element;
import de.lessvoid.nifty.screen.Screen;

public class LayerBuilder extends ElementBuilder {
  private LayerCreator creator = new LayerCreator();
 
  public LayerBuilder() {
    initialize(creator);
  }
 
  public LayerBuilder(final String id) {
    this();
    this.id(id);
  }

  @Override
  public Element build(final Nifty nifty, final Screen screen, final Element parent) {
    Element e = super.build(nifty, screen, parent);
    screen.addLayerElement(e);
    screen.processAddAndRemoveLayerElements();
    return e;
  }
}
TOP

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

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.