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

ChoiceGroupLF

public interface ChoiceGroupLF implements ItemLF
Look and Feel interface used by ChoiceGroup.

See Naming Conventions for information about method naming conventions.

Fields Summary
Constructors Summary
Methods Summary
public FontgetDefaultFont()
Gets default font to render ChoiceGroup element if it was not set by the application

return
- the font to render ChoiceGroup element if it was not set by the app

public voidlDelete(int elementNum)
Notifies L&F that an element referenced by elementNum was deleted in the corresponding ChoiceGroup.

param
elementNum the index of the deleted element

public voidlDeleteAll()
Notifies L&F that all elements were deleted in the corresponding ChoiceGroup.

public intlGetSelectedFlags(boolean[] selectedArray_return)
Get selected flags.

param
selectedArray_return to contain the results
return
the number of selected elements

public intlGetSelectedIndex()
Get current selected index.

return
currently selected index

public voidlInsert(int elementNum, java.lang.String stringPart, Image imagePart)
Notifies L&F that an element was inserted into the ChoiceGroup at the the elementNum specified.

param
elementNum the index of the element where insertion occurred
param
stringPart the string part of the element to be inserted
param
imagePart the image part of the element to be inserted, or null if there is no image part

public booleanlIsSelected(int elementNum)
Determines if an element with a passed in index is selected or not.

param
elementNum the index of an element in question
return
true if the element is selected, false - otherwise

public voidlSet(int elementNum, java.lang.String stringPart, Image imagePart)
Notifies L&F that the String and Image parts of the element referenced by elementNum were set in the corresponding ChoiceGroup, replacing the previous contents of the element.

param
elementNum the index of the element set
param
stringPart the string part of the new element
param
imagePart the image part of the element, or null if there is no image part

public voidlSetFitPolicy(int fitPolicy)
Notifies L&F that a new text fit policy was set in the corresponding ChoiceGroup.

param
fitPolicy preferred content fit policy for choice elements

public voidlSetFont(int elementNum, Font font)
Notifies L&F that a new font was set for an element with the specified elementNum in the corresponding ChoiceGroup.

param
elementNum the index of the element, starting from zero
param
font the preferred font to use to render the element

public voidlSetSelectedFlags(boolean[] selectedArray)
Notifies L&F that selected state was changed on several elements in the corresponding MULTIPLE ChoiceGroup.

param
selectedArray an array in which the method collect the selection status

public voidlSetSelectedIndex(int elementNum, boolean selected)
Notifies L&F that an element was selected/deselected in the corresponding ChoiceGroup.

param
elementNum the number of the element. Indexing of the elements is zero-based
param
selected the new state of the element true=selected, false=not selected