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

de.lessvoid.nifty.examples.defaultcontrols.common.JustAnExampleModelClass 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.defaultcontrols.common;

/**
 * This is just an example. This should really be your own model. The ListBox does call toString() on this
 * to get the label it should display. But you can use your own ListBoxViewConverter if you want to use more
 * sophisticated mechanism.
 *
 * @author void
 */
public class JustAnExampleModelClass {
  private final String label;

  public JustAnExampleModelClass(final String label) {
    this.label = label;
  }

  @Override
  public String toString() {
    return label;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy