|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jthomas.mailfaces.MailFaces
This is the main class for the MailFaces application.
This application will examine the mail waiting at a Mail Server and display an Icon that represents the sender of the Mail. The user can either select unique images to be displayed based on information from the Mail headers or by default it will look up the From: user@host and search the PIcon Database for a matching image.
MailFaces creates 4 main Class Objects that work together along with some supporting Classes
The following are Classes that are used by the above.
There are also some utility Objects that are involved
For additional details, refer to the MailFaces online documentation
Credits:
--------------------------- ImageButton object from: Marty Hall: Java Resource Page. hall@apl.jhu.edu ------------------------- Regexp Object from: Copyright (c) 1995 Starwave Corporation. All Rights Reserved. A perl-like regular expression matcher for java. Version 1.10, 02 Feb 1996 Author Jonathan Payne --------------------------
Class: MailFaces.java
Main application object for MailFaces.
MailFaces.java contains the "main" method that is given control initially. It will create a MailFaces object and give control to the "init()" method. The init method will do the initial setup of the Mailfaces environment and then invoke the "run()" method that will start up the various threads that will actually do the work and then wait for the other threads to terminate. The main purpose of the MailFaces class (other than getting things started) is to act as the global namespace for communication between other components.
FaceResolver
,
FaceBoard
,
FaceFrame
,
FaceServer
,
FaceOptions
,
FaceSelect
,
FaceSelection
,
FaceSMS
,
FaceGroup
,
Queue
,
FaceMailbox
,
Mailmsg
,
PiconDB
,
FaceOptions
Method Summary | |
void |
addFaceEventListener(FaceEventListener rcl)
Adds the FaceEventListener to the collection of those interested in new FaceOptionsEvent |
static void |
displayDebugInfo()
displayDebugInfo is called by FaceFrame when the user clicks the DebugInfo It will display some debug info. |
void |
editOptions()
editOptions() will invoke the JEditor internal editor on the .opt file |
boolean |
editOptionsSupported()
editOptionsSupported() will verify that JEditor can be invoked (Requires Java 2) |
void |
fireFaceEvent(int id)
Send a FaceEvent to all registered listeners |
FaceCache |
getCacheRef()
This returns the reference to the one and Only FaceCache object |
int |
getDelay()
|
FaceAudio |
getFaceAudioRef()
Method to access the one and Only FaceAudio object |
FaceBoard |
getFaceBoardRef()
Method to access the one and Only FaceBoard object |
FaceFrame |
getFaceFrameRef()
Method to access the one and Only FaceFrame object |
FaceOptions |
getFaceOptionsRef()
Method to access the one and Only Options object |
FaceSMS |
getFaceSMSRef()
Method to access the one and Only Options object |
boolean |
getFlagAudio()
return/set the _FlagAudio flag |
boolean |
getFlagCheckMail()
return/set the _FlagCheckMail flag |
boolean |
getFlagQuitMail()
return/set the _FlagQuitMail flag |
boolean |
getFlagResetMail()
return/set the _FlagResetMail flag |
boolean |
getFlagResetServer()
return/set the _FlagResetServer flag |
FaceMailbox |
getMailboxRef()
This returns the reference to the current Mailbox object |
PiconDB |
getPiconDBRef()
Method to access the one and Only PiconDB object |
static MailFaces |
getRef()
Class method that returns the reference to the only MailFaces Object |
FaceResolver |
getResolverRef()
This returns the reference to the one and Only FaceResolver object |
void |
init()
Called by MailFaces.main() to do initial setup. |
static void |
main(java.lang.String[] args)
The "main" class method is invoked when MailFaces is invoked as a Java application. |
void |
refreshOptions()
Reprocess the Options file when User has made a Refresh request. |
void |
removeFaceEventListener(FaceEventListener rcl)
Removes the FaceEventListener from the collection of those interested in new FaceOptionsEvents |
void |
run()
Main processing loop for MailFaces. |
void |
setBusy(boolean busy)
Method to allow the components to signal that the application is busy |
void |
setDelay(int delay)
Method to allow the user to get/set the Delay interval |
void |
setFlagAudio(boolean flag)
|
void |
setFlagCheckMail(boolean flag)
|
void |
setFlagQuitMail(boolean flag)
|
void |
setFlagResetMail(boolean flag)
|
void |
setFlagResetServer(boolean flag)
|
void |
setServer(int ServerNumber)
Change the Server to be accessed. |
static java.lang.String |
version()
Returns the MailFaces application Version and release Date. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String version()
public static MailFaces getRef()
public void init()
- Setup FaceProperties object from MailFaces.ini file. - Call setupOptions to read the MailFaces Options file - Setup the FaceBoard object that will handle User interface - Setup the Mailbox object - Setup the Image Cache - Setup the Resolver Object
public boolean editOptionsSupported()
public void editOptions()
public void refreshOptions()
public void setServer(int ServerNumber)
This method is called from the event handler for the menu bar "Server" item.
public void run()
start processing threads While (not done) open Mailbox Check if any new mail and process it delay until time to check it again
run
in interface java.lang.Runnable
public static void displayDebugInfo()
public void addFaceEventListener(FaceEventListener rcl)
rcl
- the FaceEventListener to addpublic void removeFaceEventListener(FaceEventListener rcl)
public void fireFaceEvent(int id)
id
- FaceEvent identifierFaceEvent
public FaceCache getCacheRef()
public FaceMailbox getMailboxRef()
public FaceResolver getResolverRef()
public PiconDB getPiconDBRef()
public FaceBoard getFaceBoardRef()
public FaceFrame getFaceFrameRef()
public FaceAudio getFaceAudioRef()
public FaceOptions getFaceOptionsRef()
public FaceSMS getFaceSMSRef()
public void setDelay(int delay)
public int getDelay()
public void setBusy(boolean busy)
public boolean getFlagCheckMail()
public void setFlagCheckMail(boolean flag)
public boolean getFlagResetMail()
public void setFlagResetMail(boolean flag)
public boolean getFlagResetServer()
public void setFlagResetServer(boolean flag)
public boolean getFlagQuitMail()
public void setFlagQuitMail(boolean flag)
public boolean getFlagAudio()
public void setFlagAudio(boolean flag)
public static void main(java.lang.String[] args)
Args: -d Debug flag name.opt Option file to be usedIt will then call the MailFaces init method to get everything prepared. It will then startup the a new thread that invokes the MailFaces.run() method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |