| java.lang.Object javax.microedition.lcdui.ItemLFImpl javax.microedition.lcdui.ChoiceGroupLFImpl
All known Subclasses: javax.microedition.lcdui.ChoiceGroupPopupLFImpl,
ChoiceGroupLFImpl | class ChoiceGroupLFImpl extends ItemLFImpl implements ChoiceGroupLF(Code) | | This is the look and feel implementation for ChoiceGroup.
|
Field Summary | |
ChoiceGroup | cg ChoiceGroup associated with this ChoiceGroupLF. | int | selectedIndex The currently selected index of this ChoiceGroup (-1 by default). |
Method Summary | |
void | createNativeResource(int ownerId) Creates and sets native resource for current ChoiceGroup. | boolean | equateNLA() | boolean | equateNLB() | public Font | getDefaultFont() | public void | lDelete(int elementNum) Notifies Look &s; Feel that an element referenced by
elementNum was deleted in the corresponding
ChoiceGroup. | public void | lDeleteAll() Notifies Look &s; Feel that all elements
were deleted in the corresponding ChoiceGroup. | public int | lGetSelectedFlags(boolean[] selectedArray_return) Gets selected flags.(only elements corresponding to the
elements are expected to be filled). | public int | lGetSelectedIndex() | void | lHideNativeResource() /**
Override ItemLFImpl method to sync with native resource
before hiding the native resource. | public void | lInsert(int elementNum, String stringPart, Image imagePart) Notifies Look &s; Feel that an element was inserted into the
ChoiceGroup at the the elementNum specified. | public boolean | lIsSelected(int elementNum) Determines if an element with a passed in index
is selected or not. | public void | lSet(int elementNum, String stringPart, Image imagePart) Notifies Look &s; Fell 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. | public void | lSetFitPolicy(int fitPolicy) Notifies Look &s; Feel that a new text fit policy was set
in the corresponding ChoiceGroup. | public void | lSetFont(int elementNum, Font font) Notifies Look &s; Feel that a new font was set for an
element with the specified elementNum in the
corresponding ChoiceGroup. | public void | lSetSelectedFlags(boolean[] selectedArray) Notifies Look &s; Feel that selected state was changed on
several elements in the corresponding MULTIPLE ChoiceGroup
(cannot be null). | public void | lSetSelectedIndex(int elementNum, boolean selected) Notifies Look &s; Feel that an element was selected (or
deselected) in the corresponding ChoiceGroup.
Parameters: elementNum - the number of the element. | boolean | uCallPeerStateChanged(int hint) Called by event delivery to notify an ItemLF in current FormLF
of a change in its peer state. |
selectedIndex | int selectedIndex(Code) | | The currently selected index of this ChoiceGroup (-1 by default).
|
ChoiceGroupLFImpl | ChoiceGroupLFImpl(ChoiceGroup choiceGroup)(Code) | | Creates ChoiceLF for the passed in ChoiceGroup.
Parameters: choiceGroup - - the ChoiceGroup object associated with this view |
createNativeResource | void createNativeResource(int ownerId)(Code) | | Creates and sets native resource for current ChoiceGroup.
Override function in ItemLFImpl.
Parameters: ownerId - Owner screen's native resource id |
equateNLA | boolean equateNLA()(Code) | | Determine if this Item should have a newline after it
true if it should have a newline after |
equateNLB | boolean equateNLB()(Code) | | Determine if this Item should have a newline before it
true if it should have a newline before |
getDefaultFont | public Font getDefaultFont()(Code) | | Gets default font to render ChoiceGroup element if it was not
set by the application
- the font to render ChoiceGroup element if it was not set by the app |
lDelete | public void lDelete(int elementNum)(Code) | | Notifies Look &s; Feel that an element referenced by
elementNum was deleted in the corresponding
ChoiceGroup.
Parameters: elementNum - the index of the deleted element |
lDeleteAll | public void lDeleteAll()(Code) | | Notifies Look &s; Feel that all elements
were deleted in the corresponding ChoiceGroup.
|
lGetSelectedFlags | public int lGetSelectedFlags(boolean[] selectedArray_return)(Code) | | Gets selected flags.(only elements corresponding to the
elements are expected to be filled). ChoiceGroup sets the rest to
false
Parameters: selectedArray_return - to contain the results the number of selected elements |
lGetSelectedIndex | public int lGetSelectedIndex()(Code) | | Gets currently selected index
currently selected index |
lHideNativeResource | void lHideNativeResource()(Code) | | /**
Override ItemLFImpl method to sync with native resource
before hiding the native resource. Selection of native resource will
be preserved before the resource is hidden.
|
lInsert | public void lInsert(int elementNum, String stringPart, Image imagePart)(Code) | | Notifies Look &s; Feel that an element was inserted into the
ChoiceGroup at the the elementNum specified.
Parameters: elementNum - the index of the element where insertion occurred Parameters: stringPart - the string part of the element to be inserted Parameters: imagePart - the image part of the element to be inserted,or null if there is no image part |
lIsSelected | public boolean lIsSelected(int elementNum)(Code) | | Determines if an element with a passed in index
is selected or not.
Parameters: elementNum - the index of an element in question true if the element is selected, false - otherwise |
lSet | public void lSet(int elementNum, String stringPart, Image imagePart)(Code) | | Notifies Look &s; Fell 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.
Parameters: elementNum - the index of the element set Parameters: stringPart - the string part of the new element Parameters: imagePart - the image part of the element, or null if there is no image part |
lSetFitPolicy | public void lSetFitPolicy(int fitPolicy)(Code) | | Notifies Look &s; Feel that a new text fit policy was set
in the corresponding ChoiceGroup.
Parameters: fitPolicy - preferred content fit policy for choice elements |
lSetFont | public void lSetFont(int elementNum, Font font)(Code) | | Notifies Look &s; Feel that a new font was set for an
element with the specified elementNum in the
corresponding ChoiceGroup.
Parameters: elementNum - the index of the element, starting from zero Parameters: font - the preferred font to use to render the element |
lSetSelectedFlags | public void lSetSelectedFlags(boolean[] selectedArray)(Code) | | Notifies Look &s; Feel that selected state was changed on
several elements in the corresponding MULTIPLE ChoiceGroup
(cannot be null).
Parameters: selectedArray - an array in which the method collect theselection status |
lSetSelectedIndex | public void lSetSelectedIndex(int elementNum, boolean selected)(Code) | | Notifies Look &s; Feel that an element was selected (or
deselected) in the corresponding ChoiceGroup.
Parameters: elementNum - the number of the element. Indexing of theelements is zero-based Parameters: selected - the new state of the element true=selected ,false=not selected |
uCallPeerStateChanged | boolean uCallPeerStateChanged(int hint)(Code) | | Called by event delivery to notify an ItemLF in current FormLF
of a change in its peer state.
Parameters: hint - index of the element whose selection status has changed always true so ItemStateListener should be notified |
Methods inherited from javax.microedition.lcdui.ItemLFImpl | abstract void createNativeResource(int ownerId)(Code)(Java Doc) protected void createTempNativeResource()(Code)(Java Doc) void deleteNativeResource()(Code)(Java Doc) boolean equateNLA()(Code)(Java Doc) boolean equateNLB()(Code)(Java Doc) Display getCurrentDisplay()(Code)(Java Doc) int getLayout()(Code)(Java Doc) native int getMinimumHeight0(int nativeId)(Code)(Java Doc) native int getMinimumWidth0(int nativeId)(Code)(Java Doc) native int getPreferredHeight0(int nativeId, int w)(Code)(Java Doc) native int getPreferredWidth0(int nativeId, int h)(Code)(Java Doc) void initNativeResource()(Code)(Java Doc) final public boolean isRequestedSizesValid()(Code)(Java Doc) public void lAddCommand(Command cmd, int i)(Code)(Java Doc) void lCallHideNotify()(Code)(Java Doc) void lCallPaint(Graphics g, int w, int h)(Code)(Java Doc) void lCallShowNotify()(Code)(Java Doc) void lCallTraverseOut()(Code)(Java Doc) public void lCommitPendingInteraction()(Code)(Java Doc) int lGetAdornedMinimumHeight()(Code)(Java Doc) int lGetAdornedMinimumWidth()(Code)(Java Doc) int lGetAdornedPreferredHeight(int width)(Code)(Java Doc) int lGetAdornedPreferredWidth(int height)(Code)(Java Doc) protected int lGetLockedHeight()(Code)(Java Doc) int lGetLockedWidth()(Code)(Java Doc) public int lGetMinimumHeight()(Code)(Java Doc) public int lGetMinimumWidth()(Code)(Java Doc) public int lGetPreferredHeight(int w)(Code)(Java Doc) public int lGetPreferredWidth(int h)(Code)(Java Doc) void lGetRequestedSizes()(Code)(Java Doc) void lHideNativeResource()(Code)(Java Doc) void lMove(int deltaX, int deltaY)(Code)(Java Doc) public void lRemoveCommand(Command cmd, int i)(Code)(Java Doc) void lRequestInvalidate(boolean width, boolean height)(Code)(Java Doc) void lRequestPaint()(Code)(Java Doc) void lRequestPaint(int x, int y, int w, int h)(Code)(Java Doc) public void lSetDefaultCommand(Command cmd, int i)(Code)(Java Doc) public void lSetLabel(String label)(Code)(Java Doc) public void lSetLayout(int layout)(Code)(Java Doc) void lSetLocation(int x, int y)(Code)(Java Doc) public void lSetOwner(Screen oldOwner)(Code)(Java Doc) public void lSetPreferredSize(int width, int height)(Code)(Java Doc) final void lSetRequestedSizes(int mw, int mh, int pw, int ph)(Code)(Java Doc) void lSetSize(int w, int h)(Code)(Java Doc) void lShowNativeResource()(Code)(Java Doc) native void setLabel0(int nativeId, String label)(Code)(Java Doc) boolean shouldHExpand()(Code)(Java Doc) boolean shouldHShrink()(Code)(Java Doc) boolean shouldVExpand()(Code)(Java Doc) boolean shouldVShrink()(Code)(Java Doc) void uCallHideNotify()(Code)(Java Doc) void uCallKeyPressed(int keyCode)(Code)(Java Doc) void uCallKeyReleased(int keyCode)(Code)(Java Doc) void uCallKeyRepeated(int keyCode)(Code)(Java Doc) void uCallPaint(Graphics g, int w, int h)(Code)(Java Doc) abstract boolean uCallPeerStateChanged(int hint)(Code)(Java Doc) void uCallPointerDragged(int x, int y)(Code)(Java Doc) void uCallPointerPressed(int x, int y)(Code)(Java Doc) void uCallPointerReleased(int x, int y)(Code)(Java Doc) void uCallShowNotify()(Code)(Java Doc) void uCallSizeChanged(int w, int h)(Code)(Java Doc) boolean uCallTraverse(int dir, int viewportWidth, int viewportHeight, int[] visRect_inout)(Code)(Java Doc) void uCallTraverseOut()(Code)(Java Doc)
|
|
|