|
||||||||
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 StringItem
Method Summary | |
javax.microedition.lcdui.Font |
getDefaultFont()
Get the default font to use for drawing a StringItem |
int |
getMinimumHeight(java.lang.String label,
TextView txt,
int appearanceMode,
boolean acceptsFocus)
Get the minimum height of this component |
int |
getMinimumWidth(java.lang.String label,
TextView txt,
int appearanceMode,
boolean acceptsFocus)
Get the minimum width of this component |
int |
getPreferredHeight(java.lang.String label,
TextView txt,
int appearanceMode,
boolean acceptsFocus,
int width)
Get the preferred height of this component |
int |
getPreferredWidth(java.lang.String label,
TextView txt,
int appearanceMode,
boolean acceptsFocus,
int height)
Get the preferred width of this component |
void |
paint(javax.microedition.lcdui.Graphics g,
java.lang.String label,
TextView txt,
int appearanceMode,
boolean acceptsFocus,
int width,
int height,
boolean hasFocus)
Method to be used for drawing a StringItem. |
Method Detail |
public void paint(javax.microedition.lcdui.Graphics g, java.lang.String label, TextView txt, int appearanceMode, boolean acceptsFocus, int width, int height, boolean hasFocus)
g
- Graphics object to use for drawinglabel
- Label of this StringItemtxt
- TextView containing contents of this StringItemappearanceMode
- appearance mode of the ImageItem,
one of Item.PLAIN, Item.BUTTON or
Item.HYPERLINKacceptsFocus
- true if this is an interactive StringItem
(has commands attached)width
- assigned width, in pixels, of the StringItemheight
- assigned height, in pixels, of the StringItemhasFocus
- true if the StringItem has cursor focuspublic int getMinimumHeight(java.lang.String label, TextView txt, int appearanceMode, boolean acceptsFocus)
label
- Label of this StringItemtxt
- TextView containing contents of this StringItemappearanceMode
- appearance mode of the ImageItem,
one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINKacceptsFocus
- true if this is an interactive StringItem
(has commands attached)public int getMinimumWidth(java.lang.String label, TextView txt, int appearanceMode, boolean acceptsFocus)
label
- Label of this StringItemtxt
- TextView containing contents of this StringItemappearance
- mode of the ImageItem, one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINKacceptsFocus
- true if this is an interactive StringItem
(has commands attached)public int getPreferredHeight(java.lang.String label, TextView txt, int appearanceMode, boolean acceptsFocus, int width)
label
- Label of this StringItemtxt
- TextView containing contents of this StringItemappearance
- mode of the ImageItem, one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINKacceptsFocus
- true if this is an interactive StringItem
(has commands attached)width
- 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 appearanceMode, boolean acceptsFocus, int height)
label
- Label of this StringItemtxt
- TextView containing contents of this StringItemappearance
- mode of the ImageItem, one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINKacceptsFocus
- true if this is an interactive StringItem
(has commands attached)height
- the tentative content height in pixels,
or -1 if a tentative height has not been computedpublic javax.microedition.lcdui.Font getDefaultFont()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |