Methods Summary |
---|
private void | conditionallyRunFromChangedCallback()
synchronized (mFromLock) {
if (mViewWaitingForFromChange != null && mFrom != null) {
mViewWaitingForFromChange.onHeaderLoaded(this);
mViewWaitingForFromChange = null;
}
}
|
public java.lang.String | getDate()
return mDate;
|
public java.lang.String | getFrom()
synchronized (mFromLock) {
return mFrom;
}
|
public int | getMessageCount()
return mMessageCount;
|
public int | getPresenceResourceId()
synchronized (mFromLock) {
return mPresenceResId;
}
|
public java.lang.String | getSubject()
return mSubject;
|
public long | getThreadId()
return mThreadId;
|
public boolean | hasAttachment()
return mHasAttachment;
|
public boolean | hasDraft()
return mHasDraft;
|
public boolean | hasError()
return mHasError;
|
public boolean | isRead()
return mIsRead;
|
public void | setFrom(java.lang.String from)
synchronized (mFromLock) {
mFrom = from;
conditionallyRunFromChangedCallback();
}
|
public void | setFromAndPresence(java.lang.String from, int presenceResId)
synchronized (mFromLock) {
mFrom = from;
mPresenceResId = presenceResId;
conditionallyRunFromChangedCallback();
}
|
public void | setWaitingView(ConversationHeaderView headerView)Called by the {@link ConversationHeaderView} when it wants to
register for updates to the model (only the from name of which
is mutable.
synchronized (mFromLock) {
mViewWaitingForFromChange = headerView;
conditionallyRunFromChangedCallback();
}
|
public java.lang.String | toString()
return "[ConversationHeader from:" + getFrom() + " subject:" + getSubject()
+ "]";
|