Package pathfinder.bean.spell

Examples of pathfinder.bean.spell.DocumentSpellBook


    add(panel, gbc_panel);
  }

  @Override
  public void setDocument(BeanDocument document) {
    DocumentSpellBook spellBook = document.getBean();

    ArrayList<Spell> spells = new ArrayList<Spell>();
    for (UniqueID id : spellBook.getSpells()) {
      Spell spell = CampaignClient.getInstance().getBean(id);

      if (spell != null) {
        spells.add(spell);
      } else {
        Logger.getLogger(getClass()).warn(
            "not able to find the spell with id" + id);
      }
    }

    lblSpellBookName.setText(document.getDocumentName());
    panel.setSpells(spellBook.getClasseName(), spells);
  }
View Full Code Here


    return "Cr\u00E9e un grimoire";
  }

  @Override
  public BasicBean buildDocument() {
    DocumentSpellBook book = new DocumentSpellBook(
        textFieldSpellBookName.getText(),
        panelFilter.getSelectedClasse(), panelListResult.getSpells());

    System.out.println("bookname: " + book.getClasseName());
    System.out.println("spells: " + book.getSpells());
    return book;
  }
View Full Code Here

TOP

Related Classes of pathfinder.bean.spell.DocumentSpellBook

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.