com.mot.lnf
Interface DateFieldLNF


public interface DateFieldLNF

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

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  java.lang.String label,
                  int mode,
                  boolean hasFocus)
Method to be used for drawing a DateField.
Parameters:
g - Graphics object to use for drawing
label - Label of this DateField
mode - Mode of this DateField, one of DateField.DATE, DateField.TIME or DateField.DATE_TIME
hasFocus - true if this DateField currently has cursor focus, false otherwise

getMinimumHeight

public int getMinimumHeight(java.lang.String label,
                            int mode)
Get the minimum height of this component
Parameters:
label - Label of this DateField
mode - Mode of this DateField, one of DateField.DATE, DateField.TIME or DateField.DATE_TIME
Returns:
minimum height, in pixels

getMinimumWidth

public int getMinimumWidth(java.lang.String label,
                           int mode)
Get the minimum width of this component
Parameters:
label - Label of this DateField
mode - Mode of this DateField, one of DateField.DATE, DateField.TIME or DateField.DATE_TIME
Returns:
minimum width, in pixels

getPreferredHeight

public int getPreferredHeight(java.lang.String label,
                              int mode,
                              int width)
Get the preferred height of this component
Parameters:
label - Label of this DateField
mode - Mode of this DateField, one of DateField.DATE, DateField.TIME or DateField.DATE_TIME
width - the tentative content width in pixels, or -1 if a tentative width has not been computed
Returns:
preferred height, in pixels

getPreferredWidth

public int getPreferredWidth(java.lang.String label,
                             int mode,
                             int height)
Get the preferred width of this component
Parameters:
label - Label of this DateField
mode - Mode of this DateField, one of DateField.DATE, DateField.TIME or DateField.DATE_TIME
height - the tentative content height in pixels, or -1 if a tentative height has not been computed
Returns:
preferred width, in pixels