Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.List


    public void inquiryCompleted( final int discType )
    {
        synchronized( threadLock )
        {
            searching = false;
            final List menu = this.menu;
            menu.setTitle( ResourceManager.getResource( "selectDevice.Title" ) );
            menu.removeCommand( cancelSearch );
            menu.addCommand( search );
        }
    }
View Full Code Here


    public SelectBTServicesView( final Controller controller )
    {
        super( controller );

        final List menu;
        menu = new List(
                ResourceManager.getResource( "selectService.Title" ),
                List.IMPLICIT
        );

        search = new Command(
                ResourceManager.getResource( "global.Search" ),
                Command.SCREEN,
                SEARCH
        );
        cancelSearch = Application.getCommandFactory().getCommand(
                Command.CANCEL
        );

        menu.addCommand( search );
        menu.addCommand( Application.getCommandFactory().backCommand() );
        menu.setCommandListener( this );

        this.menu = menu;
    }
View Full Code Here

    public void commandAction(
            final Command       command,
            final Displayable   displayable
    )
    {
        final List menu = this.menu;
        final Command search = this.search;
        final Command cancelSearch = this.cancelSearch;
        if( command == search )
        {
            menu.removeCommand( search );
            menu.addCommand( cancelSearch );
            new DiscoveryThread( this ).start();
        }
        else if( command == cancelSearch )
        {
            synchronized( threadLock )
            {
                searching = false;
            }
            BTTool.cancelDiscovery();
            menu.removeCommand( cancelSearch );
            menu.addCommand( search );
        }
        else
        {
            final ControllerEvent event = AbstractController.buildEvent(
                this,
View Full Code Here

        }
    }

    public ServiceRecord getSelected()
    {
        final List menu = this.menu;
        if( menu.getSelectedIndex() >= 0 )
        {
            return (ServiceRecord) services.get( menu.getString(
                    menu.getSelectedIndex()
            ) );
        }
        else
        {
            return null;
View Full Code Here

    public void serviceSearchCompleted( final int transID, final int respCode )
    {
        synchronized( threadLock )
        {
            searching = false;
            final List menu = this.menu;
            menu.setTitle( ResourceManager.getResource( "selectService.Title" ) );
            menu.removeCommand( cancelSearch );
            menu.addCommand( search );
        }
    }
View Full Code Here

    public SelectBTDeviceView( final Controller controller, final int viewId )
    {
        super( controller );
        this.viewId = viewId;

        final List menu = new List(
                ResourceManager.getResource( "selectDevice.Title" ),
                List.IMPLICIT
        );

        search = new Command(
                ResourceManager.getResource( "global.Search" ),
                Command.SCREEN,
                SEARCH
        );
        cancelSearch = Application.getCommandFactory().getCommand(
                Command.CANCEL
        );

        menu.addCommand( search );
        menu.addCommand( Application.getCommandFactory().backCommand() );
        menu.setCommandListener( this );
        this.menu = menu;
    }
View Full Code Here

    public void commandAction(
            final Command       command,
            final Displayable   displayable
    )
    {
        final List menu = this.menu;
        final Command cancelSearch = this.cancelSearch;
        final Command search = this.search;
        if( command == search )
        {
            menu.removeCommand( search );
            menu.addCommand( cancelSearch );
            new DiscoveryThread( this ).start();
        }
        else if( command == cancelSearch )
        {
            synchronized( threadLock )
            {
                searching = false;
            }
            BTTool.cancelDiscovery();
            menu.removeCommand( cancelSearch );
            menu.addCommand( search );
        }
        else
        {
            final ControllerEvent event = AbstractController.buildEvent(
                this,
View Full Code Here

        this.minor = minor;
    }

    public RemoteDevice getSelected()
    {
        final List menu = this.menu;
        if( menu.getSelectedIndex() >= 0 )
        {
            return (RemoteDevice) devices.get( menu.getString(
                    menu.getSelectedIndex()
            ) );
        }
        else
        {
            return null;
View Full Code Here

                                            option.key,
                                            option.defaultValue
                                    )
                            ).toString();
                            Settings.setProperty( option.key, value );
                            final List list = (List) displayable;
                            final String text = ResourceManager.getResource(
                                    option.title + "." + value
                            );
                            list.set(
                                    event.getIndex(),
                                    text,
                                    (Image) images.get(
                                            name + "." + option.index
                                    )
View Full Code Here

            final Font font = Font.getFont(
                    Font.FACE_PROPORTIONAL,
                    Font.STYLE_PLAIN,
                    Font.SIZE_SMALL
            );
            final List list = new List( "", List.IMPLICIT );
            for( int i = 0; i < 3; i++ )
            {
                list.append( "", null );
            }
            for( int i = 0; i < 3; i++ )
            {
                list.setFont( i, font );
            }
            list.deleteAll();
            try
        {
            for( int i = 0; i < 4; i++ )
                {
                    list.append( "", null );
                }
                listFontBug = false;
            }
            catch( Throwable e )
            {
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.List

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.