Package org.jpokemon.pokemon

Examples of org.jpokemon.pokemon.PokemonInfo


    }

    searchResultsPanel.removeAll();
    typeSelector.setSelectedItem(null);

    PokemonInfo pokemonInfo;
    for (int i = 1; (pokemonInfo = PokemonInfo.get(i)) != null; i++) {
      if (pokemonInfo.getName().toLowerCase().contains(nameFieldText)) {
        searchResultsPanel.add(new SelectablePokemonPanel(this, pokemonInfo));
      }
    }

    parent.validate();
View Full Code Here


    searchResultsPanel.removeAll();
    nameField.setText(nameFieldDefault);

    Type t1, t2;
    PokemonInfo pokemonInfo;

    for (int i = 1; (pokemonInfo = PokemonInfo.get(i)) != null; i++) {
      t1 = Type.valueOf(pokemonInfo.getType1());
      t2 = Type.valueOf(pokemonInfo.getType2());

      if (selectedType == t1 || selectedType == t2) {
        searchResultsPanel.add(new SelectablePokemonPanel(this, pokemonInfo));
      }
    }
View Full Code Here

public class PokemonInfoSelector extends JPokemonSelector<PokemonInfo> {
  @Override
  protected void reloadItems() {
    removeAllItems();

    PokemonInfo pokemonInfo;
    for (int i = 1; (pokemonInfo = PokemonInfo.get(i)) != null; i++) {
      addElementToModel(pokemonInfo);
    }
  }
View Full Code Here

TOP

Related Classes of org.jpokemon.pokemon.PokemonInfo

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.