com.jthomas.mailfaces
Class Face

java.lang.Object
  |
  +--com.jthomas.mailfaces.Face

public class Face
extends java.lang.Object

Class to handle the display of a "face" that represents one or more e-mail messages. This class maintains a hashtable of Mailmsgs that are related to this face and a reference to a FaceButton object that contains the Picon. The actual display of the Face is handled by FaceBoard.

Author:
John Thomas jthomas@cruzio.com
See Also:
FaceBoard Mailmsg

Method Summary
 FaceButton getButton()
          Get a reference to the FaceButton that contains the Picon.
 Mailmsg[] getMailmsgs()
          getMailmsgs() will return an array of Mailmsgs associated with this Face.
 int getNumber()
          access the count of mailmsgs that are represented by this face.
 void reset()
          reset() is called when the containing FaceBoard is reset.
 void setButton(FaceButton button)
          save a reference to the FaceButton that contains the Picon
 void update(Mailmsg mailmsg)
          update(mailmsg,imageurl) will update an existing Face object with a mailmsg.
 void update(Mailmsg mailmsg, java.lang.String imageurl)
          update(mailmsg,imageurl) will update a new Face object with a mailmsg and a URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

reset

public void reset()
reset() is called when the containing FaceBoard is reset.

This will reflect the reset action to the associated FaceButton.

Returns:
void

update

public void update(Mailmsg mailmsg,
                   java.lang.String imageurl)
update(mailmsg,imageurl) will update a new Face object with a mailmsg and a URL.

Returns:
void

update

public void update(Mailmsg mailmsg)
update(mailmsg,imageurl) will update an existing Face object with a mailmsg.

Returns:
void

getNumber

public int getNumber()
access the count of mailmsgs that are represented by this face.


setButton

public void setButton(FaceButton button)
save a reference to the FaceButton that contains the Picon


getButton

public FaceButton getButton()
Get a reference to the FaceButton that contains the Picon.


getMailmsgs

public Mailmsg[] getMailmsgs()
getMailmsgs() will return an array of Mailmsgs associated with this Face.

Returns:
Mailmsg[] - An array of Mailmsg objects.