All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lessvoid.xml.lwxs.elements.SubstitutionGroup Maven / Gradle / Ivy

Go to download

Nifty GUI is a Java Library that supports the building of interactive user interfaces for games or similar applications. It utilizes OpenGL for rendering and it can be easily integrated into many rendering systems. The configuration of the GUI is stored in xml files with little supporting Java code. In short Nifty helps you to layout stuff, display it in a cool way and interact with it :)

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.xml.lwxs.elements;

import de.lessvoid.xml.lwxs.Schema;

import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.Collection;

public class SubstitutionGroup {
  @Nonnull
  private final Collection elements = new ArrayList();

  public void addToProcessor(final Schema schema, @Nonnull final XmlProcessorType processor) throws Exception {
    XmlProcessorSubstituitionGroup subst = new XmlProcessorSubstituitionGroup(schema);
    for (Element e : elements) {
      subst.addElement(e);
    }
    processor.addSubstituitionGroup(subst);
  }

  @Nonnull
  public Type getHelperType() {
    return new Type("none", null) {
      @Override
      public void addElement(final Element element) {
        elements.add(element);
      }
    };
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy