|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tue.id.tim.PresenceWatcher
TIM Presence Watcher.
Description: a plugin for JBother that watches and changes the status change of the user and the buddies.
Copyright: Copyright (c) 2005 Jun Hu
Company: ID, TU/e
Field Summary | |
(package private) ControlPanel |
cp
a GUI control panel to show and change the stadus of the user and the buddies. |
private java.util.ResourceBundle |
resources
i18n translation resources from JBother |
Constructor Summary | |
PresenceWatcher()
|
Method Summary | |
private void |
buddyPresenceModeHandler(com.valhalla.jbother.plugins.events.BuddyPresenceModeEvent pluginEvent)
buddyPresenceModeHandler |
private void |
currentPresenceModeHandler(com.valhalla.jbother.plugins.events.CurrentPresenceModeEvent pluginEvent)
currentPresenceModeHandler |
private void |
exitingHandler(com.valhalla.jbother.plugins.events.ExitingEvent event)
when existing, let the control panel save its screen positions and dimenstions. |
private java.lang.String |
getStatus(org.jivesoftware.smack.packet.Presence.Mode mode)
return description of a certain presence mode. |
void |
handleEvent(com.valhalla.pluginmanager.PluginEvent pluginEvent)
this plugin handles three events: the presence change of the user, the presence change of a buddy, and exisiting. |
boolean |
init()
when load the plugin, show the control panel and register this plugin to the plugin event chain. |
void |
unload()
Unloads the plugin. remove it from the plugin event chain. hide the control panel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.ResourceBundle resources
ControlPanel cp
Constructor Detail |
public PresenceWatcher()
Method Detail |
public boolean init()
init
in interface com.valhalla.pluginmanager.Plugin
public void unload()
unload
in interface com.valhalla.pluginmanager.Plugin
public void handleEvent(com.valhalla.pluginmanager.PluginEvent pluginEvent)
handleEvent
in interface com.valhalla.pluginmanager.PluginEventListener
pluginEvent
- PluginEventprivate void exitingHandler(com.valhalla.jbother.plugins.events.ExitingEvent event)
event
- ExitingEventprivate void buddyPresenceModeHandler(com.valhalla.jbother.plugins.events.BuddyPresenceModeEvent pluginEvent)
pluginEvent
- BuddyPresenceModeEventprivate void currentPresenceModeHandler(com.valhalla.jbother.plugins.events.CurrentPresenceModeEvent pluginEvent)
pluginEvent
- CurrentPresenceModeEventprivate java.lang.String getStatus(org.jivesoftware.smack.packet.Presence.Mode mode)
mode
- Mode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |