| java.lang.Object javax.microedition.lcdui.ItemLFImpl javax.microedition.lcdui.ChoiceGroupLFImpl javax.microedition.lcdui.ChoiceGroupPopupLFImpl
ChoiceGroupPopupLFImpl | class ChoiceGroupPopupLFImpl extends ChoiceGroupLFImpl (Code) | | This is the Look &s; Feel implementation for ChoiceGroupPopup.
|
Field Summary | |
CGPopupLayer | popupLayer The PopupLayer that represents open state of this ChoiceGroup POPUP. | int | viewable Content of the popupLayer is drawn in ChoiceGroupPopupLFImpl. |
Method Summary | |
int | getIndexByPointer(int x, int y) | boolean | itemContainsPointer(int x, int y) | boolean | lCallTraverse(int dir, int viewportWidth, int viewportHeight, int[] visRect) | public void | lGetContentSize(int size, int width) Sets the content size in the passed in array. | void | lPaintContent(Graphics g, int width, int height) Paints the content area of the ChoiceGroup POPUP. | boolean | traverseInPopup(int dir, int viewportWidth, int viewportHeight) | void | uCallKeyPressed(int keyCode) | void | uCallPointerPressed(int x, int y) | void | uCallPointerReleased(int x, int y) | void | uCallSizeChanged(int w, int h) | void | uCallTraverseOut() Called by the system to indicate traversal has left this Item
This function simply calls lCallTraverseOut() after obtaining LCDUILock. |
popupLayer | CGPopupLayer popupLayer(Code) | | The PopupLayer that represents open state of this ChoiceGroup POPUP.
|
viewable | int viewable(Code) | | Content of the popupLayer is drawn in ChoiceGroupPopupLFImpl.
That content can be taller then the layer itself.
viewable holds information of the current scroll position
and the size of the content (X, Y, WIDTH, HEIGHT)
|
ChoiceGroupPopupLFImpl | ChoiceGroupPopupLFImpl(ChoiceGroup choiceGroup)(Code) | | Creates ChoiceGroupPopupLF for the passed in choiceGroup of
Choice.POPUP type.
Parameters: choiceGroup - the ChoiceGroup object associated with this view |
getIndexByPointer | int getIndexByPointer(int x, int y)(Code) | | Find the choice index inside of the list containing the pointer
Parameters: x - x coordinate of pointer Parameters: y - y coordinate of pointer choice index, -1 - if index is not found |
itemContainsPointer | boolean itemContainsPointer(int x, int y)(Code) | | Check if the pointer is clicked to the item
Parameters: x - x coordinate of pointer Parameters: y - y coordinate of pointer true if the item contains the pointer, otherwise - false |
lCallTraverse | boolean lCallTraverse(int dir, int viewportWidth, int viewportHeight, int[] visRect)(Code) | | Handle traversal within this ChoiceGroup
Parameters: dir - the direction of traversal Parameters: viewportWidth - the width of the viewport Parameters: viewportHeight - the height of the viewport Parameters: visRect - the in/out rectangle for the internal traversal location true if traversal occurred within this ChoiceGroup |
lGetContentSize | public void lGetContentSize(int size, int width)(Code) | | Sets the content size in the passed in array.
Content is calculated based on the availableWidth.
size[WIDTH] and size[HEIGHT] should be set by this method.
Parameters: size - The array that holds Item content size and location in Item internal bounds coordinate system. Parameters: width - The width available for this Item |
lPaintContent | void lPaintContent(Graphics g, int width, int height)(Code) | | Paints the content area of the ChoiceGroup POPUP.
Graphics is translated to contents origin.
Parameters: g - The graphics where Item content should be painted Parameters: width - The width available for the Item's content Parameters: height - The height available for the Item's content |
traverseInPopup | boolean traverseInPopup(int dir, int viewportWidth, int viewportHeight)(Code) | | Handle traversal in the open popup
Parameters: dir - - the direction of traversal (Canvas.UP, Canvas.DOWN) Parameters: viewportWidth - - the width of the viewport Parameters: viewportHeight - - the height of the viewport true if traverse event was handled, false - otherwise |
uCallKeyPressed | void uCallKeyPressed(int keyCode)(Code) | | Handle a key press event
Parameters: keyCode - the key which was pressed |
uCallPointerPressed | void uCallPointerPressed(int x, int y)(Code) | | Called by the system to signal a pointer press
Parameters: x - the x coordinate of the pointer down Parameters: y - the y coordinate of the pointer down |
uCallPointerReleased | void uCallPointerReleased(int x, int y)(Code) | | Called by the system to signal a pointer release
Parameters: x - the x coordinate of the pointer up Parameters: y - the x coordinate of the pointer up |
uCallSizeChanged | void uCallSizeChanged(int w, int h)(Code) | | Called by the system to indicate the size available to this Item
has changed
Parameters: w - the new width of the item's content area Parameters: h - the new height of the item's content area |
uCallTraverseOut | void uCallTraverseOut()(Code) | | Called by the system to indicate traversal has left this Item
This function simply calls lCallTraverseOut() after obtaining LCDUILock.
|
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)
|
|
|