|
||||||||
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 DateField
Method Summary | |
int |
getMinimumHeight(java.lang.String label,
int mode)
Get the minimum height of this component |
int |
getMinimumWidth(java.lang.String label,
int mode)
Get the minimum width of this component |
int |
getPreferredHeight(java.lang.String label,
int mode,
int width)
Get the preferred height of this component |
int |
getPreferredWidth(java.lang.String label,
int mode,
int height)
Get the preferred width of this component |
void |
paint(javax.microedition.lcdui.Graphics g,
java.lang.String label,
int mode,
boolean hasFocus)
Method to be used for drawing a DateField. |
Method Detail |
public void paint(javax.microedition.lcdui.Graphics g, java.lang.String label, int mode, boolean hasFocus)
g
- Graphics object to use for drawinglabel
- Label of this DateFieldmode
- Mode of this DateField, one of DateField.DATE,
DateField.TIME or DateField.DATE_TIMEhasFocus
- true if this DateField
currently has cursor focus, false otherwisepublic int getMinimumHeight(java.lang.String label, int mode)
label
- Label of this DateFieldmode
- Mode of this DateField, one of DateField.DATE,
DateField.TIME or DateField.DATE_TIMEpublic int getMinimumWidth(java.lang.String label, int mode)
label
- Label of this DateFieldmode
- Mode of this DateField, one of DateField.DATE,
DateField.TIME or DateField.DATE_TIMEpublic int getPreferredHeight(java.lang.String label, int mode, int width)
label
- Label of this DateFieldmode
- Mode of this DateField, one of DateField.DATE,
DateField.TIME or DateField.DATE_TIMEwidth
- the tentative content width in pixels,
or -1 if a tentative width has not been computedpublic int getPreferredWidth(java.lang.String label, int mode, int height)
label
- Label of this DateFieldmode
- Mode of this DateField, one of DateField.DATE,
DateField.TIME or DateField.DATE_TIMEheight
- 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 |