Package net.rim.blackberry.api.pdap.contactlinking

Examples of net.rim.blackberry.api.pdap.contactlinking.LinkableContact


     * @see MainScreen#makeMenu(Menu, int)
     */
    protected void makeMenu(final Menu menu, final int instance) {
        menu.add(_viewEmailMenuItem);
        menu.add(_viewPhoneMenuItem);
        final LinkableContact selected = getSelectedContact();
        if (LinkedContactUtilities.getLinkedContact(selected) != null) {
            menu.add(new UnlinkContactMenuItem());
        } else {
            menu.add(_linkToBbContact);
        }
View Full Code Here


     * @see LinkedContactInfoProvider#requestFields(String,
     *      LinkedContactCallback, int)
     */
    public void requestFields(final String contactID,
            final LinkedContactCallback adapter, final int fields) {
        final LinkableContact contact =
                ContactListScreen.getUserForID(contactID);

        if ((fields & LinkedContactInfoProvider.AVAILABILITY) != 0) {
            adapter.setAvailability(LinkedContactInfoProvider.AVAILABILITY_ONLINE);
        }
        if ((fields & LinkedContactInfoProvider.STATUS) != 0) {
            adapter.setStatusString("<Sample contact status>");
        }
        if ((fields & LinkedContactInfoProvider.USER_NAME) != 0) {
            adapter.setUserName(contact.toString());
        }
    }
View Full Code Here

TOP

Related Classes of net.rim.blackberry.api.pdap.contactlinking.LinkableContact

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.