jmc
Class MidletEventListener

java.lang.Object
  extended by jmc.MidletEventListener
All Implemented Interfaces:
com.sun.lwuit.events.SelectionListener, JabberListener

public class MidletEventListener
extends java.lang.Object
implements JabberListener, com.sun.lwuit.events.SelectionListener

Midlet events manager


Field Summary
 boolean keypressed
           
 
Constructor Summary
MidletEventListener(GuiMidlet _midlet)
           
 
Method Summary
 void connectedEvent()
          Event method invoked by CommunicationManager when connection is established
 void disconnectedEvent()
          Event method invoked by CommunicationManager when disconnection occurs
 void newComposingEvent(Conversation _conv)
          ConversationListener method for a new message arrival from the server
 void newConversationEvent(Conversation _conv)
          ConversationListener method for a new chat start notification
 void newInvitationEvent(java.lang.String from, java.lang.String room)
          ConversationListener method for a new invitation arrival from a jid
 void newMessageEvent(Conversation _conv, int tab)
          ConversationListener method for a new message arrival from the server
 void notifyError(Conversation _conversation, Message _errorMessage)
          ConversationListener method for the chat notification error
 void notifyJudInfo(java.lang.String info)
          RosterListener method for alerting a new jud search response event
 void notifyPresence(Jid _roster, java.lang.String _presence)
          PresenceListener method for presence notifications
 void notifyPresenceError(java.lang.String code)
          Notify an error in presence management
 void notifyRoster()
          RosterListener method for the reading of the roster items list
 void registrationFailure(java.lang.Exception e, boolean offline)
          Error in registration to server
 void selectionChanged(int old, int newtab)
           
 void unauthorizedEvent(java.lang.String reason)
           
 void updateScreen()
          Refresh screen
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keypressed

public boolean keypressed
Constructor Detail

MidletEventListener

public MidletEventListener(GuiMidlet _midlet)
Method Detail

connectedEvent

public void connectedEvent()
Event method invoked by CommunicationManager when connection is established


unauthorizedEvent

public void unauthorizedEvent(java.lang.String reason)
Specified by:
unauthorizedEvent in interface JabberListener
Parameters:
reason -

disconnectedEvent

public void disconnectedEvent()
Event method invoked by CommunicationManager when disconnection occurs

Specified by:
disconnectedEvent in interface JabberListener

notifyError

public void notifyError(Conversation _conversation,
                        Message _errorMessage)
ConversationListener method for the chat notification error

Specified by:
notifyError in interface JabberListener
Parameters:
Conversation -
Message -

registrationFailure

public void registrationFailure(java.lang.Exception e,
                                boolean offline)
Error in registration to server

Parameters:
Exception -

newConversationEvent

public void newConversationEvent(Conversation _conv)
ConversationListener method for a new chat start notification

Specified by:
newConversationEvent in interface JabberListener
Parameters:
Conversation -

newMessageEvent

public void newMessageEvent(Conversation _conv,
                            int tab)
ConversationListener method for a new message arrival from the server

Specified by:
newMessageEvent in interface JabberListener
Parameters:
Conversation -

newComposingEvent

public void newComposingEvent(Conversation _conv)
ConversationListener method for a new message arrival from the server

Specified by:
newComposingEvent in interface JabberListener
Parameters:
Conversation -

newInvitationEvent

public void newInvitationEvent(java.lang.String from,
                               java.lang.String room)
ConversationListener method for a new invitation arrival from a jid

Specified by:
newInvitationEvent in interface JabberListener
Parameters:
from, - room

notifyPresence

public void notifyPresence(Jid _roster,
                           java.lang.String _presence)
PresenceListener method for presence notifications

Specified by:
notifyPresence in interface JabberListener
Parameters:
Jid -
String -

notifyRoster

public void notifyRoster()
RosterListener method for the reading of the roster items list

Specified by:
notifyRoster in interface JabberListener
Parameters:
Jid -
String -

notifyJudInfo

public void notifyJudInfo(java.lang.String info)
RosterListener method for alerting a new jud search response event

Specified by:
notifyJudInfo in interface JabberListener
Parameters:
String -

notifyPresenceError

public void notifyPresenceError(java.lang.String code)
Notify an error in presence management

Specified by:
notifyPresenceError in interface JabberListener

updateScreen

public void updateScreen()
Refresh screen

Specified by:
updateScreen in interface JabberListener

selectionChanged

public void selectionChanged(int old,
                             int newtab)
Specified by:
selectionChanged in interface com.sun.lwuit.events.SelectionListener