Package net.rim.blackberry.api.phone.phonelogs

Examples of net.rim.blackberry.api.phone.phonelogs.CallLog


        final int numberOfCalls = CallLogNamespace.numberOfLogsInFolder(folderID);
        final Vector found = new Vector();
        int iElement = 0;

        for (int i = 0; i < numberOfCalls; i++) {
            final CallLog l = CallLogNamespace.callLogAt(i, folderID);
            final CallLogObject log = new CallLogObject(l);
            if (testable != null) {
                if (testable.test(log)) {
                    FindNamespace.insertElementByOrder(found, log, orderByField, isAscending);
                    iElement++;
View Full Code Here


        public Object invoke(final Object thiz, final Object[] args) throws Exception {
            if (args != null) {
                final int len = args.length;
                if (len == 2) {
                    final int index = ((Integer) args[0]).intValue();
                    final CallLog callLog = callLogAt(index, ((Integer) args[1]).intValue());

                    if (callLog != null) {
                        return new CallLogObject(callLog);
                    }
                }
View Full Code Here

            _view.setDataTemplateFocus(BackgroundFactory
                    .createLinearGradientBackground(Color.LIGHTBLUE,
                            Color.LIGHTBLUE, Color.BLUE, Color.BLUE));
            final DataTemplate dataTemplate = new DataTemplate(_view, 1, 1) {
                public Field[] getDataFields(final int modelRowIndex) {
                    final CallLog log = (CallLog) _model.getRow(modelRowIndex);
                    String text;
                    if (log instanceof PhoneCallLog) {
                        final PhoneCallLog phoneCallLog = (PhoneCallLog) log;
                        text = phoneCallLog.getParticipant().getNumber();
                    } else {
View Full Code Here

                // Create a new reference to the currently seleccted table. Must
                // be final
                // so that it can be referenced from anonymous inner classes.
                final PhoneCallTable tableRef = table;
                if (tableRef.getNumberOfRows() > 0) {
                    final CallLog callLog = table.getSelectedItem();

                    // Create menu item to view the currently selected call
                    final MenuItem viewItem =
                            new MenuItem(new StringProvider("View"), 0x230010,
                                    100);
View Full Code Here

TOP

Related Classes of net.rim.blackberry.api.phone.phonelogs.CallLog

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.