| java.lang.Object javax.microedition.lcdui.ItemLFImpl javax.microedition.lcdui.TextFieldLFImpl javax.microedition.lcdui.TextBoxLFImpl
Method Summary | |
protected int | getIndexAt(int x, int y) | protected int[] | getInputModeAnchor() This is a utility function to calculate the anchor point
for the InputModeIndicator layer. | void | lCallShowNotify() | public void | lDelete(int offset, int length) Notifies L&amsp;F of character deletion in the corresponding
TextField. | void | lGetContentSize(int size, int availableWidth) Sets the content size in the passed in array. | public void | lInsert(char data, int offset, int length, int position) Notifies L&s;F of a character insertion in the corresponding
TextBox. | void | lPaintContent(Graphics g, int width, int height) Paints the content area of this TextField. | public void | lSetChars() Notifies L&F of a content change in the corresponding TextBox. | public void | lSetConstraints() Notifies L&s;F that constraints have to be changed. | public void | lSetMaxSize(int maxSize) Notifies L&s;F of a maximum size change in the corresponding
TextBox. | boolean | moveCursor(int dir) | public void | paint(Graphics g, DynamicCharacterArray dca, char opChar, int constraints, Font font, int fgColor, int w, int h, int offset, int options, TextCursor cursor, TextInfo info) Paint the text, linewrapping when necessary
Parameters: g - the Graphics to use to paint with. | protected void | setCaretPosition(int pos) Set new cursor position. | boolean | setVerticalScroll() | void | uCallScrollContent(int scrollType, int thumbPosition) Scroll content inside of the form.
Parameters: scrollType - scrollType. | protected void | uScrollAt(int position) Perform a scrolling at the given position. | protected void | uScrollByLine(int dir) Perform a line scrolling in the given direction. | protected void | uScrollViewport(int dir) Perform a page flip in the given direction. |
myInfo | protected TextInfo myInfo(Code) | | Contains line-break information for a blob of text
|
scrollInitialized | protected boolean scrollInitialized(Code) | | A flag indicating the scroll indicator has been initialized
for this textbox. This happens only once when the textbox
first paints its contents.
|
TextBoxLFImpl | TextBoxLFImpl(TextField tf)(Code) | | Creates TextFieldLF for the passed in TextField.
Parameters: tf - The TextField associated with this TextFieldLF |
getIndexAt | protected int getIndexAt(int x, int y)(Code) | | Get character index at the pointer position
Parameters: x - pointer x coordinate Parameters: y - pointer y coordinate the character index |
getInputModeAnchor | protected int[] getInputModeAnchor()(Code) | | This is a utility function to calculate the anchor point
for the InputModeIndicator layer. Override TextFieldLFImpl
version for effeciency.
anchor (x, y, w, h) |
lCallShowNotify | void lCallShowNotify()(Code) | | Called by the system to notify this Item it is being shown
The default implementation of this method updates
the 'visible' state
|
lDelete | public void lDelete(int offset, int length)(Code) | | Notifies L&amsp;F of character deletion in the corresponding
TextField.
Parameters: offset - the beginning of the deleted region Parameters: length - the number of characters deleted exception: IllegalArgumentException - if the resulting contentswould be illegal for the current exception: StringIndexOutOfBoundsException - if offset and length do notspecify a valid range within the contents of the TextField |
lGetContentSize | void lGetContentSize(int size, int availableWidth)(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: availableWidth - The width available for this Item |
lInsert | public void lInsert(char data, int offset, int length, int position)(Code) | | Notifies L&s;F of a character insertion in the corresponding
TextBox.
Parameters: data - the source of the character data Parameters: offset - the beginning of the region of characters copied Parameters: length - the number of characters copied Parameters: position - the position at which insertion occurred |
lPaintContent | void lPaintContent(Graphics g, int width, int height)(Code) | | Paints the content area of this TextField.
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 |
lSetChars | public void lSetChars()(Code) | | Notifies L&F of a content change in the corresponding TextBox.
|
lSetConstraints | public void lSetConstraints()(Code) | | Notifies L&s;F that constraints have to be changed.
|
lSetMaxSize | public void lSetMaxSize(int maxSize)(Code) | | Notifies L&s;F of a maximum size change in the corresponding
TextBox.
Parameters: maxSize - - the new maximum size |
moveCursor | boolean moveCursor(int dir)(Code) | | Move the text cursor in the given direction
Parameters: dir - direction to move true if the cursor was moved, false otherwise |
paint | public void paint(Graphics g, DynamicCharacterArray dca, char opChar, int constraints, Font font, int fgColor, int w, int h, int offset, int options, TextCursor cursor, TextInfo info)(Code) | | Paint the text, linewrapping when necessary
Parameters: g - the Graphics to use to paint with. If g is null thenonly the first four arguments are used and nothing ispainted. Use this to return just the displayed string Parameters: dca - the text to paint Parameters: opChar - if opChar > 0 then an optional character to paint. Parameters: constraints - text constraints Parameters: font - the font to use to paint the text Parameters: fgColor - foreground color Parameters: w - the available width for the text Parameters: h - the available height for the text Parameters: offset - the first line pixel offset Parameters: options - any of Text.[NORMAL | INVERT | HYPERLINK | TRUNCATE] Parameters: cursor - text cursor object to use to draw vertical bar Parameters: info - TextInfo structure to use for paint |
setCaretPosition | protected void setCaretPosition(int pos)(Code) | | Set new cursor position. Update text info if cursor position is changed
Parameters: pos - new position |
setVerticalScroll | boolean setVerticalScroll()(Code) | | Used internally to set the vertical scroll position
|
uScrollAt | protected void uScrollAt(int position)(Code) | | Perform a scrolling at the given position.
Parameters: context - position |
uScrollByLine | protected void uScrollByLine(int dir)(Code) | | Perform a line scrolling in the given direction. This method will
attempt to scroll the view to show next/previous line.
Parameters: dir - the direction of the flip, either DOWN or UP |
uScrollViewport | protected void uScrollViewport(int dir)(Code) | | Perform a page flip in the given direction. This method will
attempt to scroll the view to show as much of the next page
as possible. It uses the locations and bounds of the items on
the page to best determine a new location - taking into account
items which may lie on page boundaries as well as items which
may span several pages.
Parameters: dir - the direction of the flip, either DOWN or UP |
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)
|
|
|