| java.lang.Object javax.microedition.lcdui.ItemLFImpl javax.microedition.lcdui.CustomItemLFImpl
CustomItemLFImpl | class CustomItemLFImpl extends ItemLFImpl implements CustomItemLF(Code) | | This is the look and feel implementation for CustomItem .
|
Method Summary | |
void | createNativeResource(int ownerId) Create native resource for current CustomItem . | void | lCallShowNotify() Overrides the default method to set dirty region to full size. | public int | lGetInteractionModes() | void | lGetRequestedSizes() Calculate minimum and preferred width and height of this item and
store the result in instance variables
minimumWidth, minimumHeight, preferredWidth and preferredHeight. | void | lHideNativeResource() | public void | lInvalidate() Notifies L&F that CustomItem was invalidated. | public void | lRepaint() Notifies L&F that repaint of the entire custom item is needed. | public void | lRepaint(int x, int y, int width, int height) Notifies L&F that repaint of the specified region is needed. | public void | lSetLabel(String label) Overriding ItemLFImpl . | void | lSetSize(int w, int h) | void | lShowNativeResource() Override ItemLFImpl method to
set the dirty region and the content buffer
before showing the native resource. | void | uCallHideNotify() Overrides the default method in ItemLFImpl .
Called by the system to notify this CustomItem
that it is being hidden. | void | uCallKeyPressed(int keyCode) Called by the system to signal a key press. | void | uCallKeyReleased(int keyCode) Called by the system to signal a key release. | void | uCallKeyRepeated(int keyCode) Called by the system to signal a key repeat. | void | uCallPaint(Graphics g, int w, int h) Called to paint this CustomItem . | boolean | uCallPeerStateChanged(int hint) Called by Display to notify an ItemLF
in current FormLF of a change in its peer state. | void | uCallPointerDragged(int x, int y) Called by the system to signal a pointer drag. | void | uCallPointerPressed(int x, int y) Called by the system to signal a pointer press. | void | uCallPointerReleased(int x, int y) Called by the system to signal a pointer release. | void | uCallShowNotify() Overrides the default method in ItemLFImpl .
Called by the system to notify this CustomItem
that it is being shown. | void | uCallSizeChanged(int w, int h) Called by the system to indicate the size available to this
Item has changed. | public void | uCallSizeRefresh() Get minimum and preferred sizes from CustomItem
subclass and cache the result in super class. | boolean | uCallTraverse(int dir, int viewportWidth, int viewportHeight, int[] visRect_inout) Called by the system to notify internal traverse into the item. | void | uCallTraverseOut() Called by the system to indicate traversal has left this
Item . |
CustomItemLFImpl | CustomItemLFImpl(CustomItem ci)(Code) | | Creates CustomItemLF associated with the passed in
CustomItem .
Parameters: ci - the CustomItem associated with this look & feel. |
createNativeResource | void createNativeResource(int ownerId)(Code) | | Create native resource for current CustomItem .
Override function in ItemLFImpl .
Parameters: ownerId - Owner screen's native resource id. |
lCallShowNotify | void lCallShowNotify()(Code) | | Overrides the default method to set dirty region to full size.
|
lGetInteractionModes | public int lGetInteractionModes()(Code) | | |
lGetRequestedSizes | void lGetRequestedSizes()(Code) | | Calculate minimum and preferred width and height of this item and
store the result in instance variables
minimumWidth, minimumHeight, preferredWidth and preferredHeight.
Override the version in ItemLFImpl to do nothing.
|
lHideNativeResource | void lHideNativeResource()(Code) | | Override ItemLFImpl method to reset
the dirty region before hiding the native resource
|
lInvalidate | public void lInvalidate()(Code) | | Notifies L&F that CustomItem was invalidated.
|
lRepaint | public void lRepaint()(Code) | | Notifies L&F that repaint of the entire custom item is needed.
|
lRepaint | public void lRepaint(int x, int y, int width, int height)(Code) | | Notifies L&F that repaint of the specified region is needed.
Parameters: x - the x coordinate of the origin of the dirty region Parameters: y - the y coordinate of the origin of the dirty region Parameters: width - the width of the dirty region Parameters: height - the height of the dirty region |
lSetLabel | public void lSetLabel(String label)(Code) | | Overriding ItemLFImpl .
Notifies L&F of a label change in the corresponding
Item .
Parameters: label - the new label string |
lSetSize | void lSetSize(int w, int h)(Code) | | Sets custom item's size
Parameters: w - - the new width of the item Parameters: h - - the new height of the item |
lShowNativeResource | void lShowNativeResource()(Code) | | Override ItemLFImpl method to
set the dirty region and the content buffer
before showing the native resource.
|
uCallHideNotify | void uCallHideNotify()(Code) | | Overrides the default method in ItemLFImpl .
Called by the system to notify this CustomItem
that it is being hidden. This method will be called only
if this CustomItem was hidden.
The default implementation changes the visibleInViewport flag.
|
uCallKeyPressed | void uCallKeyPressed(int keyCode)(Code) | | Called by the system to signal a key press.
Parameters: keyCode - the key code of the key that has been pressed. See Also: CustomItemLFImpl.getInteractionModes |
uCallKeyReleased | void uCallKeyReleased(int keyCode)(Code) | | Called by the system to signal a key release.
Parameters: keyCode - the key code of the key that has been released. See Also: CustomItemLFImpl.getInteractionModes |
uCallKeyRepeated | void uCallKeyRepeated(int keyCode)(Code) | | Called by the system to signal a key repeat.
Parameters: keyCode - the key code of the key that has been repeated. See Also: CustomItemLFImpl.getInteractionModes |
uCallPaint | void uCallPaint(Graphics g, int w, int h)(Code) | | Called to paint this CustomItem .
Parameters: g - the Graphics object to be used forrendering the item. Parameters: w - current width of the item in pixels Parameters: h - current height of the item in pixels |
uCallPeerStateChanged | boolean uCallPeerStateChanged(int hint)(Code) | | Called by Display to notify an ItemLF
in current FormLF of a change in its peer state.
Return false since no notification is needed.
Parameters: hint - notification sub-type defined as above always false since no internal state changes. |
uCallPointerDragged | void uCallPointerDragged(int x, int y)(Code) | | Called by the system to signal a pointer drag.
Parameters: x - the x coordinate of the pointer drag Parameters: y - the x coordinate of the pointer drag See Also: CustomItemLFImpl.getInteractionModes |
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 See Also: CustomItemLFImpl.getInteractionModes |
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 See Also: CustomItemLFImpl.getInteractionModes |
uCallShowNotify | void uCallShowNotify()(Code) | | Overrides the default method in ItemLFImpl .
Called by the system to notify this CustomItem
that it is being shown. This method will be called only
if this CustomItem was made visible.
The default implementation changes the visibleInViewport flag.
|
uCallSizeChanged | void uCallSizeChanged(int w, int h)(Code) | | Called by the system to indicate the size available to this
Item has changed.
SYNC NOTE: Caller must not hold LCDUILock.
Parameters: w - the new width of the item's content area Parameters: h - the new height of the item's content area |
uCallSizeRefresh | public void uCallSizeRefresh()(Code) | | Get minimum and preferred sizes from CustomItem
subclass and cache the result in super class.
|
uCallTraverse | boolean uCallTraverse(int dir, int viewportWidth, int viewportHeight, int[] visRect_inout)(Code) | | Called by the system to notify internal traverse into the item.
Parameters: dir - the direction of traversal Parameters: viewportWidth - the width of the container's viewport Parameters: viewportHeight - the height of the container's viewport Parameters: visRect_inout - passes the visible rectangle into the method, andreturns the updated traversal rectangle from themethod true if internal traversal had occurred,false if traversal should proceed out See Also: CustomItemLFImpl.getInteractionModes See Also: CustomItemLFImpl.traverseOut See Also: CustomItemLFImpl.TRAVERSE_HORIZONTAL See Also: CustomItemLFImpl.TRAVERSE_VERTICAL |
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)
|
|
|