import java.awt.*; public class SpellCategoryList extends List { private ClientThread ct; SpellCategoryList(int i, boolean b, ClientThread c) { super(i,b); ct = c; } /** * Callback function that reacts on selection of an item */ public boolean handleEvent(Event event) { switch(event.id) { case Event.LIST_SELECT: ct.spellCategorySelect(event); return true; } return false; } }