Package de.lessvoid.nifty.loaderv2.types

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


    this.mouseInputEventProcessor = new MouseInputEventProcessor();
    this.lastTime = timeProvider.getMsTime();
    this.niftyMouse = new NiftyMouseImpl(newRenderDevice.getRenderDevice(), inputSystem, timeProvider);

    try {
      loader = new NiftyLoader(timeProvider);
      loader.registerSchema("nifty.nxs", ResourceLoader.getResourceAsStream("nifty.nxs"));
      loader.registerSchema("nifty-styles.nxs", ResourceLoader.getResourceAsStream("nifty-styles.nxs"));
      loader.registerSchema("nifty-controls.nxs", ResourceLoader.getResourceAsStream("nifty-controls.nxs"));
      NiftyDefaults.initDefaultEffects(this);
View Full Code Here


  }

  public StyleType createStyleType(final Attributes styleAttributes) {
    StyleType styleType = new StyleType(styleAttributes);
    if (attributes != null) {
      styleType.setAttributes(new AttributesType(attributes));
    }
    if (effects != null) {
      styleType.setEffect(effects.create());
    }
    if (interact != null) {
View Full Code Here

  public String controlParameter(final String parameterName) {
    return "$" + parameterName;
  }

  public void registerControlDefintion(final Nifty nifty) {
    ControlDefinitionType controlDefinitionType = (ControlDefinitionType) buildElementType();
    controlDefinitionType.translateSpecialValues(nifty, null);
    controlDefinitionType.makeFlat();
    nifty.registerControlDefintion(controlDefinitionType);
  }
View Full Code Here

    setName(name);
  }

  @Override
  public ElementType createType() {
    return new ControlDefinitionType(attributes);
  }
View Full Code Here

  protected Element createControlInternal(
      final Nifty nifty,
      final Screen screen,
      final Element parent) {
    ControlType controlType = new ControlType(attributes);
    return buildControl(nifty, screen, parent, controlType, new LayoutPart());
  }
View Full Code Here

    return parent.findElementByName(attributes.get("id"));
  }

  @Override
  public ElementType createType() {
    return new ControlType(attributes);
  }
View Full Code Here

    return parent.findNiftyControl(attributes.get("id"), Slider.class);
  }

  @Override
  public ElementType createType() {
    return new ControlType(attributes);
  }
View Full Code Here

    return parent.findNiftyControl(attributes.get("id"), ListBoxControl.class);
  }

  @Override
  public ElementType createType() {
    return new ControlType(attributes);
  }
View Full Code Here

    return parent.findNiftyControl(attributes.get("id"), Label.class);
  }

  @Override
  public ElementType createType() {
    return new ControlType(attributes);
  }
View Full Code Here

    return parent.findNiftyControl(attributes.get("id"), TextField.class);
  }

  @Override
  public ElementType createType() {
    return new ControlType(attributes);
  }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.loaderv2.types.ControlDefinitionType

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.