Package de.lessvoid.nifty.controls

Examples of de.lessvoid.nifty.controls.DropDown$DropDownViewConverter


          }
          return o1.toString().compareTo(o2.toString());
        }
      });

      DropDown dropDown = screen.findNiftyControl("resolutions", DropDown.class);
      for (DisplayMode mode : sorted) {
        dropDown.addItem(mode);
      }
    } catch (Exception e) {
    }
  }
View Full Code Here


                JSONObject creature = ((JSONArray) creatures).getJSONObject(i);
                model.creatures.add("" + creature.getInt("id"));
            }
            nifty.gotoScreen("creature_select");
            Screen screen = nifty.getScreen("creature_select");
            DropDown niftyControl = screen.findNiftyControl("dropDown", DropDown.class);
            niftyControl.clear();
            niftyControl.addAllItems(model.creatures);
        }
    }
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.controls.DropDown$DropDownViewConverter

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.