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

ItemLF

public interface ItemLF
Look and Feel interface used by Item.

See Naming Conventions for information about method naming conventions.

Fields Summary
Constructors Summary
Methods Summary
public booleanisRequestedSizesValid()
Return whether the cached requested sizes are valid.

return
true if the cached requested sizes are up to date. false if they have been invalidated.

public voidlAddCommand(Command cmd, int i)
Notifies L&F of a command addition in the corresponding Item.

param
cmd the newly added command
param
i the index of the added command in the ChoiceGroup's commands[] array

public voidlCommitPendingInteraction()
Called to commit any pending user interaction for the current item before an abstract command is fired. Caller should hold LCDUILock around this call.

public intlGetMinimumHeight()
Get the minimum height of this Item

return
the minimum height

public intlGetMinimumWidth()
Get the minimum width of this Item

return
the minimum width

public intlGetPreferredHeight(int w)
Get the preferred height of this Item

param
w tentative locked width
return
the preferred height

public intlGetPreferredWidth(int h)
Get the preferred width of this Item

param
h tentative locked height
return
the preferred width

public voidlRemoveCommand(Command cmd, int i)
Notifies L&F of a command removal in the corresponding Item.

param
cmd the newly removed command
param
i the index of the removed command in the ChoiceGroup's commands[] array

public voidlSetDefaultCommand(Command cmd, int i)
Notifies L&F of the default command change in the corresponding Item.

param
cmd the newly set default command
param
i index of this new command in the ChoiceGroup's commands array

public voidlSetLabel(java.lang.String label)
Notifies L&F of a label change in the corresponding Item.

param
label the new label string

public voidlSetLayout(int layout)
Notifies L&F of a layout change in the corresponding Item.

param
layout the new layout descriptor

public voidlSetOwner(Screen oldOwner)
Notify this itemLF that its owner screen has changed.

param
oldOwner old owner screen before this change. New owner can be found in Item model.

public voidlSetPreferredSize(int width, int height)
Notifies L&F of a preferred size change in the corresponding Item.

param
width the value to which the width is locked, or -1 if it is unlocked
param
height the value to which the height is locked, or -1 if it is unlocked