|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID
Represents the caller ID information associated with a phone call log.
This is the information that shows up as the caller in the message list and when a log gets opened for viewing.
| Constructor Summary | ||
|
PhoneCallLogID(String number)
Creates a new PhoneCallLogID instance. |
|
| Method Summary | ||
|
String |
getAddressBookFormattedNumber()
Retrieves the address-book phone number for this caller ID. |
|
String |
getName()
Retrieves the name associated with this caller ID. |
|
String |
getNumber()
Retrieves the original number for this caller ID. |
|
String |
getType()
Retrieves the type of the caller ID as recorded in the Address Book. |
|
void |
setName(String name)
Sets the name for this caller ID. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PhoneCallLogID(String number)
The input phone number acts like the identifier for the object. If the number exists in the address book, then all the caller information in the address book gets transferred to this object (name, company, etc.). If not, then a blank object is created with the number as the main identification.
number - Phone number for this caller.| Method Detail |
public String getAddressBookFormattedNumber()
If a phone number in the address book matches the raw phone number
from this PhoneCallLogID, that address-book phone number
is returned, otherwise, the raw phone number is returned.
null for raw number.public String getName()
If the number specified on creation has no associated address book entry, this method null.
public String getNumber()
Use this method to retrieve the original phone number given to this
object when it was created. Note that this number may be different in
format to the number in an associated address book entry for a known
caller. For example, if this caller ID is created with the raw number
"8887465", and the associated address book entry for this caller has the
number "(519) 888-7465", then the method getNumber() returns the
String "8887465", while the method
getAddressBookFormattedNumber() returns the String
"(519) 888-7465".
public String getType()
If there is a phone number in the address book that can be matched with the raw phone number from this PhoneCallLogID, then the type of the number (home, work, etc.) is returned. If not, a default type is returned (ie "Phone"). If all else fails, an empty string is returned.
public void setName(String name)
name - New name for this caller ID.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.