|
||||||||
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 CheckboxItem
Method Summary | |
javax.microedition.lcdui.Font |
getDefaultFont()
Get the default font to use for drawing a CheckboxItem |
int |
getMinimumHeight(int choiceType,
TextView txt,
javax.microedition.lcdui.Image img)
Get the minimum height of this component |
int |
getMinimumWidth(int choiceType,
TextView txt,
javax.microedition.lcdui.Image img)
Get the minimum width of this component |
int |
getPreferredHeight(int choiceType,
TextView txt,
javax.microedition.lcdui.Image img,
int width)
Get the preferred height of this component |
int |
getPreferredWidth(int choiceType,
TextView txt,
javax.microedition.lcdui.Image img,
int height)
Get the preferred width of this component |
int |
getTextPosition(int choiceType,
TextView txt,
javax.microedition.lcdui.Image img)
Get the x position where the text should be located |
void |
paint(javax.microedition.lcdui.Graphics g,
int choiceType,
TextView txt,
javax.microedition.lcdui.Image img,
boolean isSelected,
int height,
int width,
boolean hasFocus)
Method to be used for drawing a CheckboxItem |
Method Detail |
public void paint(javax.microedition.lcdui.Graphics g, int choiceType, TextView txt, javax.microedition.lcdui.Image img, boolean isSelected, int height, int width, boolean hasFocus)
g
- Graphics object to use for drawingchoiceType
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPtxt
- the textview containing the text information for this
checkbox itemimg
- the image to be displayed with this checkbox itemisSelected
- true if the checkbox is selectedheight
- the assigned height of this check boxwidth
- the assigned width of this check boxhasFocus
- true if this item currently has cursor
focus, false otherwisepublic int getMinimumHeight(int choiceType, TextView txt, javax.microedition.lcdui.Image img)
choiceType
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPtxt
- the textview containing the text information for this
checkbox itemimg
- the image to be displayed with this checkbox itempublic int getMinimumWidth(int choiceType, TextView txt, javax.microedition.lcdui.Image img)
choiceType
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPtxt
- the textview containing the text information for this
checkbox itemimg
- the image to be displayed with this checkbox itempublic int getPreferredHeight(int choiceType, TextView txt, javax.microedition.lcdui.Image img, int width)
choiceType
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPtxt
- the textview containing the text information for this
checkbox itemimg
- the image to be displayed with this checkbox itemwidth
- the tentative content width in pixels,
or -1 if a tentative width has not been computedpublic int getPreferredWidth(int choiceType, TextView txt, javax.microedition.lcdui.Image img, int height)
choiceType
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPtxt
- the textview containing the text information for this
checkbox itemimg
- the image to be displayed with this checkbox itemheight
- the tentative content height in pixels,
or -1 if a tentative height has not been computedpublic int getTextPosition(int choiceType, TextView txt, javax.microedition.lcdui.Image img)
choiceType
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPtxt
- the textview containing the text information for this
checkbox itemimg
- the image to be displayed with this checkbox itempublic javax.microedition.lcdui.Font getDefaultFont()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |