public class CharacterListBoxViewConverter implements
ListBoxViewConverter<net.cis.common.model.system.Character> {
@Override
public void display(Element listBoxItem, Character character) {
final Element characterName = listBoxItem
.findElementByName("#listbox.character.name");
final TextRenderer characterNameRenderer = characterName
.getRenderer(TextRenderer.class);
final Element characterSpecies = listBoxItem
.findElementByName("#listbox.character.species");
final TextRenderer characterSpeciesRenderer = characterSpecies
.getRenderer(TextRenderer.class);
final Element icon = listBoxItem
.findElementByName("#listbox.character.icon");
final ImageRenderer iconRenderer = icon
.getRenderer(ImageRenderer.class);
if (character != null) {
characterNameRenderer.setText(character.getName());
characterSpeciesRenderer.setText(character.getSpecies());