
de.lessvoid.nifty.examples.defaultcontrols.common.JustAnExampleModelClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nifty-examples Show documentation
Show all versions of nifty-examples Show documentation
Lots of Nifty example code! You can find the source for nearly all demos/tutorials in here.
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