1 package rero.gui.script; 2 3 import rero.client.output.*; 4 import java.util.*; 5 6 import rero.ircfw.interfaces.ChatListener; 7 8 import rero.gui.*; 9 10 import rero.bridges.event.*; 11 12 public class WindowDataListener extends ScriptedEventListener 13 { 14 protected UICapabilities gui; 15 16 public WindowDataListener(UICapabilities _gui) 17 { 18 gui = _gui; 19 } 20 21 public boolean shouldContinue(String window, String text) 22 { 23 HashMap eventData = new HashMap(); 24 25 eventData.put("$parms", text); 26 eventData.put("$data", window + " " + text); 27 eventData.put("$window", window); 28 29 return (dispatchEvent(eventData) != ChatListener.EVENT_HALT); 30 } 31 32 public void setupListener() 33 { 34 gui.setListener(this); 35 } 36 } 37 | Popular Tags |