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);
}