public void removeHackTranslatorListener(HackTranslatorEventListener listener) { listeners.removeElement(listener); }
public void addHackTranslatorListener(HackTranslatorEventListener listener) { listeners.addElement(listener); }
public void notifyHackTranslatorListeners(byte action, Object data) { HackTranslatorEvent event = new HackTranslatorEvent(this, action, data); for (int i = 0; i < listeners.size(); i++) ((HackTranslatorEventListener) listeners.elementAt(i)).actionPerformed(event); }