Package de.lessvoid.nifty.controls.dynamic

Source Code of de.lessvoid.nifty.controls.dynamic.PopupCreator

package de.lessvoid.nifty.controls.dynamic;

import de.lessvoid.nifty.NiftyIdCreator;
import de.lessvoid.nifty.controls.dynamic.attributes.ControlAttributes;
import de.lessvoid.nifty.loaderv2.types.ElementType;
import de.lessvoid.nifty.loaderv2.types.PopupType;

public class PopupCreator extends ControlAttributes {
  public PopupCreator() {
    setAutoId(NiftyIdCreator.generate());
  }

  public PopupCreator(final String id) {
    setId(id);
  }

  @Override
  public ElementType createType() {
    return new PopupType(attributes);
  }
}
TOP

Related Classes of de.lessvoid.nifty.controls.dynamic.PopupCreator

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.