Package net.homeip.mleclerc.omnilinkbbclient.util

Source Code of net.homeip.mleclerc.omnilinkbbclient.util.MessageScreen

package net.homeip.mleclerc.omnilinkbbclient.util;

import net.rim.device.api.system.Bitmap;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.component.BitmapField;
import net.rim.device.api.ui.component.RichTextField;
import net.rim.device.api.ui.container.HorizontalFieldManager;
import net.rim.device.api.ui.container.PopupScreen;

public class MessageScreen extends PopupScreen {
    public MessageScreen(String message) {
        super( new HorizontalFieldManager(), Field.NON_FOCUSABLE);
        final BitmapField logo = new BitmapField(Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS));
        logo.setSpace( 5, 5 );
        add(logo);

        RichTextField rtf = new RichTextField(message, Field.FIELD_VCENTER | Field.NON_FOCUSABLE | Field.FIELD_HCENTER);
        rtf.setEditable( false );

        add(rtf);
    }
}
TOP

Related Classes of net.homeip.mleclerc.omnilinkbbclient.util.MessageScreen

TOP
Copyright © 2018 www.massapi.com. 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.