Package net.rim.device.api.ui.component

Examples of net.rim.device.api.ui.component.StandardTitleBar


    searchNext.setRunnable(new RunSearch(maxResults));
    nextPreviousManager.add(searchPrevious);
    nextPreviousManager.add(searchNext);
    main.add(nextPreviousManager);
    add(main);
    StandardTitleBar titlebar = new StandardTitleBar();
    titlebar.addTitle("YouTube Client");
    titlebar.addSignalIndicator();
    titlebar.addIcon(_icon);
    setTitleBar(titlebar);

    addMenuItem(new BasicMenuItem("Search", runSearch));
  }
View Full Code Here


    /**
     * Creates a new TitleBarScreen object
     */
    public TitleBarScreen() {
        // Initialize and configure title bar
        final StandardTitleBar titleBar = new StandardTitleBar();

        titleBar.addTitle("<title goes here>");

        final Bitmap bitmap = Bitmap.getBitmapResource("logo.jpg");
        if (bitmap != null) {
            titleBar.addIcon(bitmap);
        }

        titleBar.addClock();

        titleBar.addNotifications();

        titleBar.setPropertyValue(StandardTitleBar.PROPERTY_BATTERY_VISIBILITY,
                StandardTitleBar.BATTERY_VISIBLE_ALWAYS);
        titleBar.setPropertyValue(StandardTitleBar.PROPERTY_WIFI_VISIBILITY,
                StandardTitleBar.PROPERTY_VALUE_ON);
        titleBar.setPropertyValue(
                StandardTitleBar.PROPERTY_CELLULAR_VISIBILITY,
                StandardTitleBar.PROPERTY_VALUE_ON);

        // Set title bar for this screen
        setTitleBar(titleBar);
View Full Code Here

     * Creates a new FMRadioDemoScreen object
     */
    public FMRadioDemoScreen() {
        initializePlayer();

        final StandardTitleBar standardTitleBar = new StandardTitleBar();
        standardTitleBar.addTitle("FM Radio Demo");
        standardTitleBar.addNotifications();
        standardTitleBar.addSignalIndicator();
        setTitleBar(standardTitleBar);

        _mediaHandler = new MediaHandler();
        Application.getApplication().addMediaActionHandler(_mediaHandler);

View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.component.StandardTitleBar

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.