|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Methods needed to customize look and feel of a TextField
Method Summary | |
char |
getDecimalChar()
Get the decimal separator character |
javax.microedition.lcdui.Font |
getDefaultFont()
Get the default font to use for drawing a TextField |
int |
getMinimumHeight(java.lang.String label,
TextView txt)
Get the minimum height of this component |
int |
getMinimumWidth(java.lang.String label,
TextView txt)
Get the minimum width of this component |
int |
getOffset(java.lang.String label,
TextView txt)
Get the offset needed for spacing |
javax.microedition.lcdui.List |
getPhoneList()
Get the phone list screen to display (if possible) when a phone number field is activated |
int |
getPreferredHeight(java.lang.String label,
TextView txt,
int width)
Get the preferred height of this component |
int |
getPreferredWidth(java.lang.String label,
TextView txt,
int height)
Get the preferred width of this component |
java.lang.String |
getSelectedPhoneString(javax.microedition.lcdui.List phoneList)
Get the text that should be set in the TextField due to a selection from the phone list |
void |
paint(javax.microedition.lcdui.Graphics g,
java.lang.String label,
TextView txt,
int width,
int height,
boolean hasFocus,
boolean editable)
Method to be used for drawing a TextField. |
void |
updateCursorPosition(int x,
int y,
java.lang.String label,
TextView txt)
Update the cursor position within the TextView if a pointer action occurs |
Method Detail |
public char getDecimalChar()
public javax.microedition.lcdui.Font getDefaultFont()
public int getMinimumHeight(java.lang.String label, TextView txt)
label
- Label for this componenttxt
- TextView that stores the contents
of this componentpublic int getMinimumWidth(java.lang.String label, TextView txt)
label
- Label for this componenttxt
- TextView that stores the contents
of this componentpublic javax.microedition.lcdui.List getPhoneList()
public int getPreferredHeight(java.lang.String label, TextView txt, int width)
label
- Label for this componenttxt
- TextView that stores the contents
of this componentwidth
- the tentative content width in pixels,
or -1 if a tentative width has not been computedpublic int getPreferredWidth(java.lang.String label, TextView txt, int height)
label
- Label for this componenttxt
- TextView that stores the contents
of this componentheight
- the tentative content height in pixels,
or -1 if a tentative height has not been computedpublic int getOffset(java.lang.String label, TextView txt)
label
- Label for this componenttxt
- TextView that stores the contents of this componentpublic java.lang.String getSelectedPhoneString(javax.microedition.lcdui.List phoneList)
phoneList
- List containing phone numbers (same object
returned in getPhoneList())public void paint(javax.microedition.lcdui.Graphics g, java.lang.String label, TextView txt, int width, int height, boolean hasFocus, boolean editable)
g
- Graphics object to use for drawinglabel
- Label for this componenttxt
- TextView that stores the contents
of this componentwidth
- of the componentheight
- of the componenthasFocus
- true if the component has cursor focuseditable
- true if the TextField does not contain
UNEDITABLE constraintpublic void updateCursorPosition(int x, int y, java.lang.String label, TextView txt)
x
- The x position of the pointer actiony
- The y position of the pointer actionlabel
- Label for this componenttxt
- TextView that stores the contents
of this component
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |