FileDocCategorySizeDatePackage
LFFactoryImpl.javaAPI DocphoneME MR2 API (J2ME)5316Wed May 02 18:00:20 BST 2007javax.microedition.lcdui

LFFactoryImpl

public class LFFactoryImpl extends LFFactory
This is a factory class for the look & feel classes.

Fields Summary
Constructors Summary
Methods Summary
AlertLFgetAlertLF(Alert a)
Returns an Alert look & feel implementation.

param
a -
return
an Alert look & feel implementation

        return new AlertLFImpl(a);
    
CanvasLFgetCanvasLF(Canvas c)
Returns a Canvas look & feel implementation.

param
c -
return
a Canvas look & feel implementation

        return new CanvasLFImpl(c);
    
ChoiceGroupLFgetChoiceGroupLF(ChoiceGroup item)
Returns a ChoiceGroup look & feel implementation.

param
item -
return
a ChoiceGroup look & feel implementation

       
        ChoiceGroup cg = item;
        if (cg.choiceType == Choice.POPUP) {
            return new ChoiceGroupPopupLFImpl(cg);
        } else {
            return new ChoiceGroupLFImpl(cg);
        }
    
CustomItemLFgetCustomItemLF(CustomItem item)
Returns a CustomItem look & feel implementation.

param
item -
return
a CustomItem look & feel implementation

        return new CustomItemLFImpl(item);
    
DateFieldLFgetDateFieldLF(DateField item)
Returns a DateField look & feel implementation.

param
item -
return
a DateField look & feel implementation

        return new DateFieldLFImpl(item);
    
FormLFgetFormLF(Form f)
Returns a Form look & feel implementation.

param
f -
return
a Form look & feel implementation

        return new FormLFImpl(f, f.items, f.numOfItems);
    
GaugeLFgetGaugeLF(Gauge item)
Returns a Gauge look & feel implementation.

param
item -
return
a Gauge look & feel implementation

        return new GaugeLFImpl(item);
    
ImageItemLFgetImageItemLF(ImageItem item)
Returns an ImageItem look & feel implementation.

param
item -
return
an ImageItem look & feel implementation

        return new ImageItemLFImpl(item);
    
FormLFgetListLF(List list)
Returns a List look & feel implementation.

param
list -
return
a List look & feel implementation

        return new FormLFImpl(list, list.cg);
    
SpacerLFgetSpacerLF(Spacer spacer)
Returns a Spacer look & feel implementation.

param
spacer
return
a Spacer look & feel implementation

        return new SpacerLFImpl(spacer);
    
StringItemLFgetStringItemLF(StringItem item)
Returns a StringItem look & feel implementation.

param
item -
return
a StringItem look & feel implementation

        return new StringItemLFImpl(item);
    
FormLFgetTextBoxFormLF(TextBox tb)
Returns a TextBox look & feel implementation.

param
tb -
return
a TextBox look & feel implementation

        return new FormLFImpl(tb, tb.textField);
    
TextFieldLFgetTextBoxLF(TextField tf)
Returns a TextField look & feel implementation for use in a TextBox screen.

param
tf -
return
a TextField look & feel implementation

        return new TextBoxLFImpl(tf);
    
TextFieldLFgetTextFieldLF(TextField tf)
Returns a TextField look & feel implementation.

param
tf -
return
a TextField look & feel implementation

        return new TextFieldLFImpl(tf);
    
TickerLFgetTickerLF(Ticker ticker)
Returns a Ticker look and feel implementation.

param
ticker -
return
a Ticker look and feel implementation.

        return new TickerLFImpl(ticker);