| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--i3mclient.i3m.I3M
The logic of the main window of I3M.
I3MGUI| Field Summary | |
static int | 
ADDDISCUSSIONMEMBERMESSAGE
Identifies a add discussion member message.  | 
static int | 
AWAY
The away status.  | 
static int | 
AWAYBIRTHDAY0
The away with birthday today status.  | 
static int | 
AWAYBIRTHDAY1
The away with birthday in one day status.  | 
static int | 
AWAYBIRTHDAY2
The away with birthday in two days status.  | 
static int | 
BUDDYCHANGEDMESSAGE
Identifies a buddy changed message.  | 
static int | 
DISCUSSIONLEFT
Identifies that the current user left a discussion completely.  | 
static int | 
DISCUSSIONMEMBERCHANGEDMESSAGE
Identifies a discussion member changed message.  | 
static int | 
DISCUSSIONWINDOWCLOSED
Identifies that the current user only closed the discussion window.  | 
static String[] | 
EMAILPROTOCOLPORT
Contains all email protocol ports.  | 
static String[] | 
EMAILPROTOCOLTEXT
Contains all email protocol strings.  | 
static int | 
IMAP4
Identifies POP3 email protocol.  | 
static int | 
INVISIBLE
The invisible status.  | 
static String[] | 
LANGUAGESHORT
The short language strings for communciation with I3M-Server.  | 
static int | 
OFFLINE
The offline status.  | 
static int | 
OFFLINEBIRTHDAY0
The offline with birthday today status.  | 
static int | 
OFFLINEBIRTHDAY1
The offline with birthday in one day status.  | 
static int | 
OFFLINEBIRTHDAY2
The offline with birthday in two days status.  | 
static int | 
ONLINE
The online status.  | 
static int | 
ONLINEBIRTHDAY0
The online with birthday today status.  | 
static int | 
ONLINEBIRTHDAY1
The online with birthday in one day status.  | 
static int | 
ONLINEBIRTHDAY2
The online with birthday in two days status.  | 
static int | 
POP3
Identifies POP3 email protocol.  | 
static int | 
REALSTATUSCOUNT
How many status exist, which the user really could choose.  | 
static int | 
REMOVEDISCUSSIONMEMBERMESSAGE
Identifies a remove discussion member message.  | 
static int | 
SHAPEMESSAGE
Identifies a shape (circle, rectangle etc.) message.  | 
static String[] | 
STATUSTEXT
Defines strings for all available user status.  | 
static int | 
TEXTMESSAGE
Identifies a plaintext message.  | 
static int | 
TRAYICONCLOSE
Identifies that the user choosed "close" from trayicon context menu.  | 
static int | 
TRAYICONLEFTCLICK
Identifies that the user clicked with left mouse button on the trayicon.  | 
static int | 
TRAYICONRESTORE
Identifies that the user choosed "restore" from trayicon context menu.  | 
| Constructor Summary | |
I3M()
Constructor.  | 
|
| Method Summary | |
 void | 
addStatusListener(StatusListener listener)
Add a status listener.  | 
 void | 
dailyComicReceived(byte[] comicBytes)
Called if getDailyComic was successfull.  | 
 void | 
errorMessage(String message)
Call it, to bring up a message box.  | 
static String | 
getPassword()
Static function to return the current password (needed from Config).  | 
static String | 
getResourcePath(String resource)
Static function to get absolute path of a resource.  | 
static UserData | 
getUserData()
Static function to return the current userData.  | 
 UserList | 
getUserList()
Returns the buddylist.  | 
 void | 
i3mServerException(I3MServerException exception)
Called if a server exception is thrown.  | 
 void | 
init(Shell setWindow,
     com.jeans.trayicon.WindowsTrayIcon setTrayIcon)
Inits the rest.  | 
 void | 
loginAccountDone(long userID)
Called if loginAccount was successfull.  | 
 void | 
loginError()
Called, when a login error (no session) occured.  | 
 void | 
loginGUIDone(long newUserID,
             String newPassword)
Is called, if a login from gui was successfull.  | 
 void | 
logoutAccountDone()
Called if logoutAccount was successfull.  | 
 void | 
messageReceived(MessageData message)
Called if Polling receives a new message from Server.  | 
 void | 
offlineMessagesReceived(MessageData[] offlineMessages)
Called if getOfflineMessages was successfull.  | 
 void | 
removeStatusListener(StatusListener listener)
Remove a status listener.  | 
 void | 
run()
 | 
static void | 
setPassword(String passwordSet)
Static function to set the current password (needed from Config).  | 
 void | 
setStatusDone(int newStatus)
Called if setStatus was successfull.  | 
 void | 
setTrayEventSource(int trayEventSourceSet)
Set the source of the tray event.  | 
static void | 
setUserData(UserData userDataSet)
Static function to set the current userData.  | 
 void | 
setUserDataDone(UserData userData)
Called if setUserData was successfull.  | 
 void | 
shellActivated(ShellEvent event)
 | 
 void | 
shellClosed(ShellEvent event)
 | 
 void | 
shellDeactivated(ShellEvent event)
 | 
 void | 
shellDeiconified(ShellEvent event)
 | 
 void | 
shellIconified(ShellEvent event)
 | 
 void | 
widgetDefaultSelected(SelectionEvent event)
 | 
 void | 
widgetSelected(SelectionEvent event)
 | 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String[] STATUSTEXT
public static final int REALSTATUSCOUNT
public static final int OFFLINE
public static final int ONLINE
public static final int AWAY
public static final int INVISIBLE
public static final int OFFLINEBIRTHDAY0
public static final int OFFLINEBIRTHDAY1
public static final int OFFLINEBIRTHDAY2
public static final int ONLINEBIRTHDAY0
public static final int ONLINEBIRTHDAY1
public static final int ONLINEBIRTHDAY2
public static final int AWAYBIRTHDAY0
public static final int AWAYBIRTHDAY1
public static final int AWAYBIRTHDAY2
public static final int TEXTMESSAGE
public static final int SHAPEMESSAGE
public static final int BUDDYCHANGEDMESSAGE
public static final int DISCUSSIONMEMBERCHANGEDMESSAGE
public static final int ADDDISCUSSIONMEMBERMESSAGE
public static final int REMOVEDISCUSSIONMEMBERMESSAGE
public static final String[] LANGUAGESHORT
public static final int DISCUSSIONLEFT
public static final int DISCUSSIONWINDOWCLOSED
public static final int TRAYICONLEFTCLICK
public static final int TRAYICONRESTORE
public static final int TRAYICONCLOSE
public static final String[] EMAILPROTOCOLTEXT
public static final String[] EMAILPROTOCOLPORT
public static final int POP3
public static final int IMAP4
| Constructor Detail | 
public I3M()
| Method Detail | 
public void init(Shell setWindow,
                 com.jeans.trayicon.WindowsTrayIcon setTrayIcon)
setWindow - the main shell of i3msetTrayIcon - the small icon in the lower right edge of windows (null if linux)public void addStatusListener(StatusListener listener)
listener - the listener to registerpublic void removeStatusListener(StatusListener listener)
listener - the listener to unregisterpublic UserList getUserList()
public void widgetSelected(SelectionEvent event)
widgetSelected in interface SelectionListenerpublic void widgetDefaultSelected(SelectionEvent event)
widgetDefaultSelected in interface SelectionListenerpublic void shellActivated(ShellEvent event)
shellActivated in interface ShellListenerpublic void shellClosed(ShellEvent event)
shellClosed in interface ShellListenerpublic void shellDeactivated(ShellEvent event)
shellDeactivated in interface ShellListenerpublic void shellDeiconified(ShellEvent event)
shellDeiconified in interface ShellListenerpublic void shellIconified(ShellEvent event)
shellIconified in interface ShellListenerpublic void loginError()
ErrorListener
loginError in interface ErrorListenerpublic void errorMessage(String message)
ErrorListener
errorMessage in interface ErrorListenermessage - The message which should apear in the message box.public void messageReceived(MessageData message)
MessageListener
messageReceived in interface MessageListenermessage - The new received messagepublic static final UserData getUserData()
setUserData(UserData)public static void setUserData(UserData userDataSet)
userDataSet - The new userDatagetUserData()public static final String getPassword()
setPassword(String)public static final void setPassword(String passwordSet)
passwordSet - The new password of current user in plain textgetPassword()public static String getResourcePath(String resource)
resource - The relative path to a file.
public void setTrayEventSource(int trayEventSourceSet)
trayEventSourceSet - Set the source of the tray event. Must be one of this consts: TRAYICONLEFTCLICK, TRAYICONRESTORE, TRAYICONCLOSEpublic void run()
run in interface Runnablepublic void dailyComicReceived(byte[] comicBytes)
SMGetDailyComicListener
dailyComicReceived in interface SMGetDailyComicListenercomicBytes - The received daily comic as byte arraypublic void i3mServerException(I3MServerException exception)
ServerMethodListener
i3mServerException in interface ServerMethodListenerexception - The converted I3M-server exceptionpublic void setStatusDone(int newStatus)
SMSetStatusListener
setStatusDone in interface SMSetStatusListenernewStatus - The status which was setpublic void offlineMessagesReceived(MessageData[] offlineMessages)
SMGetOfflineMessagesListener
offlineMessagesReceived in interface SMGetOfflineMessagesListenerofflineMessages - The received offline messagespublic void loginAccountDone(long userID)
SMLoginAccountListener
loginAccountDone in interface SMLoginAccountListeneruserID - The userID of the user who logged inpublic void logoutAccountDone()
SMLogoutAccountListener
logoutAccountDone in interface SMLogoutAccountListener
public void loginGUIDone(long newUserID,
                         String newPassword)
LoginGUIListener
loginGUIDone in interface LoginGUIListenernewUserID - The new accepted userIDnewPassword - The new accepted passwordpublic void setUserDataDone(UserData userData)
SMSetUserDataListener
setUserDataDone in interface SMSetUserDataListeneruserData - The userData which was set.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||