Package net.rim.device.api.util

Examples of net.rim.device.api.util.StringProvider


         *
         * @param index
         *            The index of the contact in the contact list to edit
         */
        private EditContactAction(final int index) {
            super(new StringProvider("Edit"), 0x230030, 6);
            _index = index;
            this.setCommand(new Command(new CommandHandler() {
                /**
                 * Edits the contact
                 *
 
View Full Code Here


        add(_timeField);
        add(_notesField);

        // Menu item to save the displayed meeting
        final MenuItem saveItem =
                new MenuItem(new StringProvider("Save"), 0x230020, 11);
        saveItem.setCommand(new Command(new CommandHandler() {
            /**
             * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
             *      Object)
             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                if (onSave()) {
                    close();
                }
            }
        }));

        // Menu item to add an attendee to meeting
        final MenuItem addAttendeeItem =
                new MenuItem(new StringProvider("Add Attendee"), 0x230010, 10);
        addAttendeeItem.setCommand(new Command(new CommandHandler() {
            /**
             * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
             *      Object)
             */
 
View Full Code Here

        _statusField = new LabelField();
        add(_statusField);

        // This menu item provides an alternative to clicking the send button
        final MenuItem sendItem =
                new MenuItem(new StringProvider("Send"), 0x230010, 0);
        sendItem.setCommand(new Command(new CommandHandler() {
            /**
             * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
             *      Object)
             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                handleSend();
            }
        }));

        // This menu item provides an alternative to clicking the clear button
        final MenuItem clearItem =
                new MenuItem(new StringProvider("Clear"), 0x230020, 0);
        clearItem.setCommand(new Command(new CommandHandler() {
            /**
             * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
             *      Object)
             */
 
View Full Code Here

        // Store the UiApplication for use in refreshing the message list field
        _uiApplication = UiApplication.getUiApplication();

        _changeViewMenuItem =
                new MenuItem(new StringProvider("Folders View"), 0x230020, 1);
        _changeViewMenuItem.setCommand(new Command(new CommandHandler() {
            /**
             * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
             *      Object)
             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                _currentDisplayMode = FOLDERS_VIEW_MODE;

                final Folder currentFolder =
                        ((Message) getSelectedItem()).getFolder();

                final FoldersViewScreen foldersViewScreen =
                        new FoldersViewScreen(currentFolder);
                UiApplication.getUiApplication().pushScreen(foldersViewScreen);
            }
        }));

        _deleteMenuItem =
                new MenuItem(new StringProvider("Delete Message"), 0x230010, 0);
        _deleteMenuItem.setCommand(new Command(new CommandHandler() {
            /**
             * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
             *      Object)
             */
 
View Full Code Here

    private class SaveMenuItem extends MenuItem {
        /**
         * Default constructor
         */
        private SaveMenuItem() {
            super(new StringProvider("Save"), 0x230010, 5);
            this.setCommand(new Command(new CommandHandler() {
                /**
                 * Saves and closes this screen.
                 *
                 * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
View Full Code Here

    /**
     * A menu item to delete all records in the list field
     */
    private final class DeleteAll extends MenuItem {
        private DeleteAll() {
            super(new StringProvider("Delete All"), 0x230050, 4);
            this.setCommand(new Command(new CommandHandler() {
                /**
                 * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
                 *      Object)
                 */
 
View Full Code Here

    /**
     * A menu item to populate the list field
     */
    private final class Populate extends MenuItem {
        private Populate() {
            super(new StringProvider("Populate"), 0x230010, 0);
            this.setCommand(new Command(new CommandHandler() {
                /**
                 * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
                 *      Object)
                 */
 
View Full Code Here

    private final class SimulateLmmLow extends MenuItem {
        /**
         * Creates a new SimulateLmmLow object
         */
        private SimulateLmmLow() {
            super(new StringProvider("Simulate LMM Low"), 0x330000, 5);
            this.setCommand(new Command(new CommandHandler() {
                /**
                 * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
                 *      Object)
                 */
 
View Full Code Here

    private final class SimulateLmmMedium extends MenuItem {
        /**
         * Creates a new SimulateLmmMedium object
         */
        private SimulateLmmMedium() {
            super(new StringProvider("Simulate LMM Medium"), 0x330010, 6);
            this.setCommand(new Command(new CommandHandler() {
                /**
                 * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
                 *      Object)
                 */
 
View Full Code Here

    private final class SimulateLmmHigh extends MenuItem {
        /**
         * Creates a new SimulateLmmHigh object
         */
        private SimulateLmmHigh() {
            super(new StringProvider("Simulate LMM High"), 0x330020, 7);
            this.setCommand(new Command(new CommandHandler() {
                /**
                 * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
                 *      Object)
                 */
 
View Full Code Here

TOP

Related Classes of net.rim.device.api.util.StringProvider

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.