|
||||||||
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 ChoiceGroup
Method Summary | |
int |
getMinimumHeight(java.lang.String label,
int type)
Get the minimum height of this component |
int |
getMinimumWidth(java.lang.String label,
int type)
Get the minimum width of this component |
int |
getPreferredHeight(java.lang.String label,
int type,
int width)
Get the preferred height of this component |
int |
getPreferredWidth(java.lang.String label,
int type,
int height)
Get the preferred width of this component |
void |
paint(javax.microedition.lcdui.Graphics g,
java.lang.String label,
int type,
boolean hasFocus)
Method to be used for drawing a ChoiceGroup. |
Method Detail |
public void paint(javax.microedition.lcdui.Graphics g, java.lang.String label, int type, boolean hasFocus)
g
- Graphics object to use for drawinglabel
- Label to display for this ChoiceGrouptype
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPhasFocus
- indicates if this ChoiceGroup has cursor focuspublic int getMinimumHeight(java.lang.String label, int type)
label
- Label to display for this ChoiceGrouptype
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPpublic int getMinimumWidth(java.lang.String label, int type)
label
- Label to display for this ChoiceGrouptype
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPpublic int getPreferredHeight(java.lang.String label, int type, int width)
label
- Label to display for this ChoiceGrouptype
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPwidth
- the tentative content width in pixels,
or -1 if a tentative width has not been computedpublic int getPreferredWidth(java.lang.String label, int type, int height)
label
- Label to display for this ChoiceGrouptype
- the choice type, one of IMPLICIT, EXCLUSIVE,
MULTIPLE or POPUPheight
- the tentative content height in pixels,
or -1 if a tentative height has not been computed
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |