|
||||||||
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 CustomItem
Method Summary | |
int |
getMinimumHeight(javax.microedition.lcdui.CustomItem ci)
Get the minimum height of this component |
int |
getMinimumWidth(javax.microedition.lcdui.CustomItem ci)
Get the minimum width of this component |
int |
getPreferredHeight(javax.microedition.lcdui.CustomItem ci,
int width)
Get the preferred height of this component |
int |
getPreferredWidth(javax.microedition.lcdui.CustomItem ci,
int height)
Get the preferred width of this component |
void |
paint(javax.microedition.lcdui.Graphics g,
javax.microedition.lcdui.CustomItem ci,
boolean hasFocus)
Method to be used for drawing a CustomItem's label. |
Method Detail |
public void paint(javax.microedition.lcdui.Graphics g, javax.microedition.lcdui.CustomItem ci, boolean hasFocus)
g
- Graphics object to use for drawingci
- CustomItem to drawhasFocus
- true if the CustomItem has cursor focuspublic int getMinimumHeight(javax.microedition.lcdui.CustomItem ci)
ci
- CustomItem to obtain size information aboutpublic int getMinimumWidth(javax.microedition.lcdui.CustomItem ci)
ci
- CustomItem to obtain size information aboutpublic int getPreferredHeight(javax.microedition.lcdui.CustomItem ci, int width)
ci
- CustomItem to obtain size information aboutwidth
- the tentative content width in pixels,
or -1 if a tentative width has not been computedpublic int getPreferredWidth(javax.microedition.lcdui.CustomItem ci, int height)
ci
- CustomItem to obtain size information aboutheight
- 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 |