com.mot.lnf
Class LNFManager

java.lang.Object
  |
  +--com.mot.lnf.LNFManager

public abstract class LNFManager
extends java.lang.Object

Class that encapsulates all of the look and feel implementation classes for a platform


Field Summary
static int ALERT
          ID used to retrieve AlertLNF
static int CHECKBOX_ITEM
          ID used to retrieve CheckboxItemLNF
static int CHOICE_GROUP
          ID used to retrieve ChoiceGroupLNF
static int COMMAND_MANAGER
          ID used to retrieve CommandManagerLNF
static int CUSTOM_ITEM
          ID used to retrieve CustomItemLNF
static int DATE_FIELD
          ID used to retrieve DateFieldLNF
static int DATE_ITEM
          ID used to retrieve DateItemLNF
static int EXTDISPLAY_TICKER
          ID used to retrieve TickerLNF for the external display
static int EXTDISPLAY_TITLE
          ID used to retrieve TitleLNF for the external display
static int GAUGE
          ID used to retrieve GaugeLNF
static int IMAGE_ITEM
          ID used to retrieve ImageItemLNF
static int SCROLLBAR
          ID used to retrieve ScrollbarLNF
static int STRING_ITEM
          ID used to retrieve StringItemLNF
static int SYSTEM
          ID used to retrieve SystemLNF
static int TEXT_FIELD
          ID used to retrieve TextFieldLNF
static int TICKER
          ID used to retrieve TickerLNF
static int TIME_ITEM
          ID used to retrieve TimeItemLNF
static int TITLE
          ID used to retrieve TitleLNF
 
Method Summary
abstract  TextView createTextView(char[] c, int num, javax.microedition.lcdui.Font f)
          Create a TextView instance.
abstract  java.lang.Object getLNF(int id)
          Return an instance of a look and feel implementation class
static LNFManager getLNFManager()
          Retrieve an instance of the LNFManager to be used on this platform.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALERT

public static final int ALERT
ID used to retrieve AlertLNF

CHECKBOX_ITEM

public static final int CHECKBOX_ITEM
ID used to retrieve CheckboxItemLNF

CHOICE_GROUP

public static final int CHOICE_GROUP
ID used to retrieve ChoiceGroupLNF

COMMAND_MANAGER

public static final int COMMAND_MANAGER
ID used to retrieve CommandManagerLNF

CUSTOM_ITEM

public static final int CUSTOM_ITEM
ID used to retrieve CustomItemLNF

DATE_FIELD

public static final int DATE_FIELD
ID used to retrieve DateFieldLNF

DATE_ITEM

public static final int DATE_ITEM
ID used to retrieve DateItemLNF

GAUGE

public static final int GAUGE
ID used to retrieve GaugeLNF

IMAGE_ITEM

public static final int IMAGE_ITEM
ID used to retrieve ImageItemLNF

SCROLLBAR

public static final int SCROLLBAR
ID used to retrieve ScrollbarLNF

STRING_ITEM

public static final int STRING_ITEM
ID used to retrieve StringItemLNF

SYSTEM

public static final int SYSTEM
ID used to retrieve SystemLNF

TEXT_FIELD

public static final int TEXT_FIELD
ID used to retrieve TextFieldLNF

TICKER

public static final int TICKER
ID used to retrieve TickerLNF

TIME_ITEM

public static final int TIME_ITEM
ID used to retrieve TimeItemLNF

TITLE

public static final int TITLE
ID used to retrieve TitleLNF

EXTDISPLAY_TICKER

public static final int EXTDISPLAY_TICKER
ID used to retrieve TickerLNF for the external display

EXTDISPLAY_TITLE

public static final int EXTDISPLAY_TITLE
ID used to retrieve TitleLNF for the external display
Method Detail

getLNFManager

public static LNFManager getLNFManager()
                                throws java.lang.ClassNotFoundException
Retrieve an instance of the LNFManager to be used on this platform. This method will return a new instance each time it is called.
Returns:
LNFManager for this platform

getLNF

public abstract java.lang.Object getLNF(int id)
Return an instance of a look and feel implementation class
Parameters:
id - indicates which LNF should be returned
Returns:
instance of a look and feel implementation class

createTextView

public abstract TextView createTextView(char[] c,
                                        int num,
                                        javax.microedition.lcdui.Font f)
Create a TextView instance. This method creates a new TextView instance every time it is called.
Parameters:
c - Character array to store in this TextView
num - How many valid characters are in the array
f - Font to use with this TextView
Returns:
new TextView object to use for the given char array