public class MessageClipIn extends java.lang.Object implements ClipIn
| Constructor and Description |
|---|
MessageClipIn()
Constructs an empty MessageClipIn.
|
MessageClipIn(java.lang.String text,
java.lang.String from)
Constructs a MessageClipIn with no recipient.
|
MessageClipIn(java.lang.String text,
java.lang.String from,
java.lang.String to)
Constructs a MessageClipIn with a recipient.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones the ClipIn to an identical one.
|
void |
finalizeAttach(AttachInfo info)
This method is called when the clip-in is removed from a task's clip-in bucket.
|
java.lang.String |
getMessage()
Returns the current message.
|
java.lang.String |
getRecipient()
Returns the current recipient.
|
java.lang.String |
getSender()
Returns the current sender.
|
void |
initializeAttach(AttachInfo info)
This method is called before the clip-in enters a task's clip-in bucket.
|
void |
setMessage(java.lang.String text)
Sets the message.
|
void |
setRecipient(java.lang.String to)
Sets the recipient.
|
void |
setSender(java.lang.String from)
Sets the sender.
|
public MessageClipIn()
public MessageClipIn(java.lang.String text,
java.lang.String from)
text - The message being sentfrom - The sender of the messagepublic MessageClipIn(java.lang.String text,
java.lang.String from,
java.lang.String to)
text - The message being sentfrom - The sender of the messageto - The intended recipient of the messagepublic void initializeAttach(AttachInfo info)
initializeAttach in interface ClipIninfo - info about the task the clip-in is being attached topublic void finalizeAttach(AttachInfo info)
finalizeAttach in interface ClipIninfo - info about the task the clip-in is being removed frompublic java.lang.Object clone()
public void setMessage(java.lang.String text)
text - The new value of the messagepublic void setSender(java.lang.String from)
from - The new value of the senderpublic void setRecipient(java.lang.String to)
to - The new value of the recipientpublic java.lang.String getMessage()
public java.lang.String getSender()
public java.lang.String getRecipient()