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

de.lessvoid.nifty.examples.all.AllExamples Maven / Gradle / Ivy

Go to download

Lots of Nifty example code! You can find the source for nearly all demos/tutorials in here.

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.examples.all;

import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.examples.NiftyExample;

import javax.annotation.Nonnull;

/**
 * @author void
 */
public class AllExamples implements NiftyExample {
  private static final String ALL_INTRO_XML = "all/intro.xml";
  private final String startScreen;

  public AllExamples() {
    this("start");
  }

  private AllExamples(final String screen) {
    startScreen = screen;
  }

  @Override
  public String getStartScreen() {
    return startScreen;
  }

  @Nonnull
  @Override
  public String getMainXML() {
    return ALL_INTRO_XML;
  }

  @Nonnull
  @Override
  public String getTitle() {
    return "Nifty Examples";
  }

  @Override
  public void prepareStart(Nifty nifty) {
    // nothing to do
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy