ejel
Class NextInboxEmailEventArgs

java.lang.Object
  extended by ejel.EventArgs
      extended by ejel.NextInboxEmailEventArgs

public class NextInboxEmailEventArgs
extends EventArgs

Object of this class are sent as part of params passed to the listener of the EventID.EID_NEXT_INBOX_EMAIL event.

See Also:
InboxEmailsReader

Constructor Summary
NextInboxEmailEventArgs(javax.mail.Message message, boolean hasNext)
          Constructs a new NextInboxEmailEventArgs
 
Method Summary
 boolean getAbortStatus()
          Gets the asynchronous iterate operation abort status
 javax.mail.Message getMessage()
          Gets the Message object containing the email message
 boolean hasNext()
          Gets a boolean value indicating if there is one or more queued email messages
 void setAbortStatus()
          Call this function to abort the asyncronous iterate operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NextInboxEmailEventArgs

public NextInboxEmailEventArgs(javax.mail.Message message,
                               boolean hasNext)
Constructs a new NextInboxEmailEventArgs

Parameters:
message - The Message object containing the email message
hasNext - Set to true to indicate that there is one or more queued email messages
Method Detail

getMessage

public javax.mail.Message getMessage()
Gets the Message object containing the email message

Returns:
The Message object containing the email message

hasNext

public boolean hasNext()
Gets a boolean value indicating if there is one or more queued email messages

Returns:
true to indicate that there is one or more queued email messages

setAbortStatus

public void setAbortStatus()
Call this function to abort the asyncronous iterate operation


getAbortStatus

public boolean getAbortStatus()
Gets the asynchronous iterate operation abort status

Returns:
The asynchronous iterate operation abort status