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

TickerLFImpl

public class TickerLFImpl extends Object implements TickerLF
Implementation class for TickerLF interface.

Fields Summary
private DisplayableLF
owner
DisplayableLF this ticker is associated with
private Ticker
ticker
Ticker object that corresponds to this Look & Feel object
Constructors Summary
TickerLFImpl(Ticker ticker)
Constructs a new Ticker object, given its initial contents string.

param
ticker Ticker object for which L&F has to be created
throws
NullPointerException if str is null

	    this.ticker = ticker;
    
Methods Summary
public voidlSetOwner(DisplayableLF owner)
needed for implementations where the ticker is operated through the Displayable directly

param
owner the last Displayable this ticker was set to

        this.owner = owner;
    
public voidlSetString(java.lang.String str)
change the string set to this ticker

param
str string to set on this ticker.

        if (owner != null) {
            Display d = owner.lGetCurrentDisplay();
            if (d != null) {
                d.lSetTicker(owner, ticker);
            }
        }