|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--wtanaka.praya.Status
The status of a recipient.
Return to
or the Praya Homepage
| Field Summary | |
static java.lang.String |
AVAILABLE
Named constant for representing a user that is online and available. |
static Status |
AVAILABLE_STATUS
special named constant for available status |
static java.lang.String |
AWAY
Named constant for representing a user that is online but not available (away, busy, etc) |
static Status |
BRB_STATUS
special named constant for be right back status, used by Yahoo, MSN |
static Status |
BUSY_STATUS
special named constant for busy status, used by Yahoo, MSN |
static Status |
IDLE_STATUS
special named constant for idle status |
private double |
m_availabilityLevel
How available they are (0.0 = not, 1.0 = are) |
private java.lang.String |
m_statusString
Textual description of the person's availability ("away," "available," etc. |
static Status |
NOT_AT_DESK_STATUS
special named constant for not at my desk status, used by Yahoo |
static Status |
NOT_AT_HOME_STATUS
special named constant for not at home status, used by Yahoo |
static Status |
NOT_IN_OFFICE_STATUS
special named constant for not in the office status, used by Yahoo |
static java.lang.String |
OFFLINE
Named constant for representing a user that is offline. |
static Status |
ON_PHONE_STATUS
special named constant for on the phone status, used by Yahoo, MSN |
static Status |
ON_VACATION_STATUS
special named constant for on vacation status, used by Yahoo |
static Status |
OUT_TO_LUNCH_STATUS
special named constant for out to lunch status, used by Yahoo, MSN |
static Status |
STEPPED_OUT_STATUS
special named constant for on vacation status, used by Yahoo |
| Constructor Summary | |
Status(double availability,
java.lang.String statusString)
Constructor |
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getDescription()
Returns either AVAILABLE, OFFLINE or AWAY |
java.lang.String |
getStatusString()
Returns a more descriptive status string for the user. |
int |
hashCode()
|
boolean |
isOffline()
|
boolean |
isOnline()
|
java.lang.String |
toString()
Unfortunately, IBM JDK 1.3.0 on linux uses this method to determine if a change should be made to a JComboBox that has these objects in its model. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String AVAILABLE
public static final java.lang.String AWAY
public static final java.lang.String OFFLINE
public static final Status IDLE_STATUS
public static final Status AVAILABLE_STATUS
public static final Status BUSY_STATUS
public static final Status BRB_STATUS
public static final Status NOT_AT_HOME_STATUS
public static final Status NOT_IN_OFFICE_STATUS
public static final Status NOT_AT_DESK_STATUS
public static final Status ON_PHONE_STATUS
public static final Status ON_VACATION_STATUS
public static final Status OUT_TO_LUNCH_STATUS
public static final Status STEPPED_OUT_STATUS
private double m_availabilityLevel
private java.lang.String m_statusString
| Constructor Detail |
public Status(double availability,
java.lang.String statusString)
availability - the availability between 0.0 and 1.0
inclusivestatusString - a descriptive string representing the
status.| Method Detail |
public java.lang.String getDescription()
AVAILABLE,
OFFLINE,
AWAYpublic java.lang.String getStatusString()
public boolean isOnline()
public boolean isOffline()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||