FileDocCategorySizeDatePackage
FormLF.javaAPI DocphoneME MR2 API (J2ME)3340Wed May 02 18:00:22 BST 2007javax.microedition.lcdui

FormLF

public interface FormLF implements DisplayableLF
Look and Feel interface used by Form.

See Naming Conventions for information about method naming conventions.

Fields Summary
Constructors Summary
Methods Summary
public voidlDelete(int itemNum, Item deletedItem)
Notifies look&feel object of an item deleted in the corresponding Form.

param
itemNum - the index of the deleted item
param
deletedItem - the item deleted in the corresponding form

public voidlDeleteAll()
Notifies look&feel object of an item deleted in the corresponding Form.

public ItemlGetCurrentItem()
Gets item currently in focus.

return
the item currently in focus in this FormLF; if there are no items in focus, null is returned

public voidlInsert(int itemNum, Item item)
Notifies look&feel object of an item deleted in the corresponding Form.

param
itemNum - the index of the deleted item
param
item - the item deleted in the corresponding Form

public voidlSet(int itemNum, Item item)
Notifies look&feel object of an item deleted in the corresponding Form.

param
itemNum - the index of the item set
param
item - the item set in the corresponding Form

public voiduCallPeerStateChanged(int modelVersion, int itemPeerId, int hint)
Called by Display to notify current FormLF of a change in its peer state. If there is a ItemLF matches the peerId, the ItemLF will be called to process this notification. Otherwise, this is treated as a notification to this FormLF itself.

param
modelVersion the version of the peer's data model
param
itemPeerId the id of the ItemLF's peer whose state has changed
param
hint some value that is interpreted only between the peers

public voiduItemMakeVisible(Item item)
Notifies look&feel object of a call to Display.setCurrentItem() Note that null can be passed in clear the previously set current item.

param
item - the item in the corresponding Form to be displayed