nl.tue.id.tim
Class EmoticonCollector

java.lang.Object
  extended bynl.tue.id.tim.EmoticonCollector
All Implemented Interfaces:
com.valhalla.pluginmanager.Plugin, com.valhalla.pluginmanager.PluginEventListener

public class EmoticonCollector
extends java.lang.Object
implements com.valhalla.pluginmanager.Plugin, com.valhalla.pluginmanager.PluginEventListener

TIM Emoticon Collector plugin for JBother.

Description: This plugin collects emoticons from the conversations.

Copyright: Copyright (c) 2005 Jun Hu

Company: ID, TU/e

Version:
1.0
Author:
Jun Hu

Field Summary
private  EmoticonFrame frame
           
(package private)  java.lang.String regex
           
private  java.util.ResourceBundle resources
          i18n translation resources.
 
Constructor Summary
EmoticonCollector()
           
 
Method Summary
private  void conversationHandler(com.valhalla.jbother.plugins.events.ConversationEvent pluginEvent)
          conversationHandler
 void handleEvent(com.valhalla.pluginmanager.PluginEvent pluginEvent)
          This is the event handling interface defined in JBother Plugin.
 boolean init()
          Initiate the plugin.
 void unload()
          Unloads the plugin. remove this plugin from the PluginChain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

private java.util.ResourceBundle resources
i18n translation resources.


frame

private EmoticonFrame frame

regex

java.lang.String regex
Constructor Detail

EmoticonCollector

public EmoticonCollector()
Method Detail

init

public boolean init()
Initiate the plugin.
add this plugin to the PluginChain

Specified by:
init in interface com.valhalla.pluginmanager.Plugin
Returns:
boolean. if the plugin is sucessfully loaded, retun true.

unload

public void unload()
Unloads the plugin. remove this plugin from the PluginChain.

Specified by:
unload in interface com.valhalla.pluginmanager.Plugin

handleEvent

public void handleEvent(com.valhalla.pluginmanager.PluginEvent pluginEvent)
This is the event handling interface defined in JBother Plugin. Emoticon Collector monitors the conversation events distributed from ChatPanel.

Specified by:
handleEvent in interface com.valhalla.pluginmanager.PluginEventListener
Parameters:
pluginEvent - PluginEvent

conversationHandler

private void conversationHandler(com.valhalla.jbother.plugins.events.ConversationEvent pluginEvent)
conversationHandler

Parameters:
pluginEvent - ConversationEvent