Example #1
0
 public void removeHackTranslatorListener(HackTranslatorEventListener listener) {
   listeners.removeElement(listener);
 }
Example #2
0
 public void addHackTranslatorListener(HackTranslatorEventListener listener) {
   listeners.addElement(listener);
 }
Example #3
0
 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);
 }