| java.lang.Object javax.microedition.lcdui.ItemLFImpl javax.microedition.lcdui.TextFieldLFImpl
All known Subclasses: javax.microedition.lcdui.TextBoxLFImpl,
TextFieldLFImpl | class TextFieldLFImpl extends ItemLFImpl implements TextFieldLF(Code) | | Look and feel implementation of TextField based on
platform widget.
|
Field Summary | |
TextField | tf TextField instance associated with this view. |
Method Summary | |
void | createNativeResource(int ownerId) Create native resource for current TextField . | boolean | equateNLA() Determine if this Item should have a newline after it. | boolean | equateNLB() Determine if this Item should have a newline before it. | public void | itemDeleted() Notifies item that it has been recently deleted
Traverse out the textFieldLF. | public void | lDelete(int offset, int length) Notifies L&F of character deletion in the corresponding
TextField . | public int | lGetCaretPosition() Gets the current input position. | public int | lGetPreferredHeight(int w) Override the preferred height of this Item .
Parameters: w - tentative locked width.Ignored here and preferred width is used always. | public int | lGetPreferredWidth(int h) Override the preferred width of this Item .
Parameters: h - tentative locked height.Ignored here. | void | lHideNativeResource() Override ItemLFImpl method to sync with native resource
before hiding the native resource. | public void | lInsert(char data, int offset, int length, int position) Notifies L&F of a character insertion in the corresponding
TextField .
Parameters: data - the source of the character data. | public void | lSetChars() Notifies L&F of a content change in the corresponding
TextField .
The parameters are not used. | public void | lSetConstraints() Notifies L&F that constraints have to be changed. | public void | lSetInitialInputMode(String characterSubset) Notifies L&F that preferred initial input mode was changed. | public void | lSetMaxSize(int maxSize) Notifies L&F of a maximum size change in the corresponding
TextField . | public boolean | lUpdateContents() Update the character buffer in TextField with latest
user input. | public boolean | lValidate(DynamicCharacterArray buffer, int constraints) Validate a given character array against a constraints. | boolean | uCallPeerStateChanged(int hint) Called by event delivery to notify an ItemLF in current
FormLF of a change in its peer state. |
TextFieldLFImpl | TextFieldLFImpl(TextField tf)(Code) | | Creates TextFieldLF for the passed in
TextField .
Parameters: tf - The TextField associated with this TextFieldLF |
createNativeResource | void createNativeResource(int ownerId)(Code) | | Create native resource for current TextField .
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 |
itemDeleted | public void itemDeleted()(Code) | | Notifies item that it has been recently deleted
Traverse out the textFieldLF.
|
lDelete | public void lDelete(int offset, int length)(Code) | | Notifies L&F of character deletion in the corresponding
TextField .
Parameters: offset - the beginning of the deleted region Parameters: length - the number of characters deleted |
lGetCaretPosition | public int lGetCaretPosition()(Code) | | Gets the current input position.
the current caret position, 0 if at the beginning |
lGetPreferredHeight | public int lGetPreferredHeight(int w)(Code) | | Override the preferred height of this Item .
Parameters: w - tentative locked width.Ignored here and preferred width is used always. the preferred height |
lGetPreferredWidth | public int lGetPreferredWidth(int h)(Code) | | Override the preferred width of this Item .
Parameters: h - tentative locked height.Ignored here. the preferred width |
lHideNativeResource | void lHideNativeResource()(Code) | | Override ItemLFImpl method to sync with native resource
before hiding the native resource.
|
lInsert | public void lInsert(char data, int offset, int length, int position)(Code) | | Notifies L&F of a character insertion in the corresponding
TextField .
Parameters: data - the source of the character data. Not used. Parameters: offset - the beginning of the region of characters copied. Not used. Parameters: length - the number of characters copied. Not used. Parameters: position - the position at which insertion occurred |
lSetChars | public void lSetChars()(Code) | | Notifies L&F of a content change in the corresponding
TextField .
The parameters are not used. Instead, this function directly
uses data from TextField.java.
|
lSetConstraints | public void lSetConstraints()(Code) | | Notifies L&F that constraints have to be changed.
|
lSetInitialInputMode | public void lSetInitialInputMode(String characterSubset)(Code) | | Notifies L&F that preferred initial input mode was changed.
Parameters: characterSubset - a string naming a Unicode character subset,or null |
lSetMaxSize | public void lSetMaxSize(int maxSize)(Code) | | Notifies L&F of a maximum size change in the corresponding
TextField .
Parameters: maxSize - the new maximum size |
lUpdateContents | public boolean lUpdateContents()(Code) | | Update the character buffer in TextField with latest
user input.
true if there is new user input updated in the buffer |
lValidate | public boolean lValidate(DynamicCharacterArray buffer, int constraints)(Code) | | Validate a given character array against a constraints.
Parameters: buffer - a character array Parameters: constraints - text input constraints true if constraints is met by the character array |
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 - any value means contents have changed in native always true to notify ItemStateListener |
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)
|
|
|