|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jthomas.mailfaces.FaceResolver
Class to resolve which image should be displayed for a given mailmsg.
FaceResolver implements Runnable and in the run method, it will do
the following:
Get a mailmsg from the Queue (blocks if queue empty)
Determine the icon that goes with this mailmsg and
fill it into the mailmsg
Queue the mailmsg to the FaceFrame queue
Repeat
Constructor Summary | |
FaceResolver()
Default constructor for FaceResolver. |
Method Summary | |
void |
checkAddress()
Method: checkAddress() |
void |
queuePut(java.lang.Object obj)
queuePut will submit mailmsgs to the FaceResolver Queue. |
void |
refreshOptions()
Method: refreshOptions() get control initially and when the user refreshes the Option file. |
boolean |
resolve(Mailmsg mailmsg,
boolean usecache,
boolean domainonly)
Method: resolve(Mailmsg,useCacheFlag,domainOnlyFlag) will determine what icon should be displayed for the the specified mailmsg. |
void |
run()
This method will get a Mailmsg Object from the queue and attempt to determine what Icon to use to represent it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FaceResolver()
Method Detail |
public void queuePut(java.lang.Object obj)
This method is used by other objects to add mailmsgs to the Resolver queue so they can have the icon resolved.
obj
- - A Mailmsg objectpublic void run()
run
in interface java.lang.Runnable
public boolean resolve(Mailmsg mailmsg, boolean usecache, boolean domainonly)
It will search the Select statements and the KillSelect statements for a match and if found place a pointer to the image into the Mailmsg object. If it finds a selected icon that also has a audio file specified, it will place a pointer to the audio file into the Mailmsg object also.to be played.
public void refreshOptions()
public void checkAddress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |