DCT Lightfoot v3 API specification

javax.microedition.lcdui
Class DateField

java.lang.Object
  |
  +--javax.microedition.lcdui.Item
        |
        +--javax.microedition.lcdui.DateField

public class DateField
extends Item

A date field class allows dates to be displayed and entered


Nested Class Summary
protected  class DateField.Peer
          Peer class that does the drawing
 
Nested classes inherited from class javax.microedition.lcdui.Item
 
Field Summary
static int DATE
          Only allow dates to be displayed and entered
static int DATE_TIME
          Allow date and time to be displayed and entered
static int TIME
          Only allow times to be displayed and entered
 
Fields inherited from class javax.microedition.lcdui.Item
form, highlighted, label, peer
 
Constructor Summary
DateField(java.lang.String label, int mode)
          Create a new date field with a label and the default timezone
DateField(java.lang.String label, int mode, TimeZone zone)
          Create a new date field with a label and the specified timezone
 
Method Summary
 Date getDate()
          Get the date
 int getInputMode()
          Get the input mode
 void setDate(Date date)
          Set the date
 void setInputMode(int mode)
          Set the input mode
 
Methods inherited from class javax.microedition.lcdui.Item
getLabel, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE

public static final int DATE
Only allow dates to be displayed and entered

See Also:
Constant Field Values

TIME

public static final int TIME
Only allow times to be displayed and entered

See Also:
Constant Field Values

DATE_TIME

public static final int DATE_TIME
Allow date and time to be displayed and entered

See Also:
Constant Field Values
Constructor Detail

DateField

public DateField(java.lang.String label,
                 int mode)
Create a new date field with a label and the default timezone

Parameters:
label - The label
mode - The mode to do

DateField

public DateField(java.lang.String label,
                 int mode,
                 TimeZone zone)
Create a new date field with a label and the specified timezone

Parameters:
label - The label
mode - The mode to do
zone - The timezone
Method Detail

getDate

public Date getDate()
Get the date

Returns:
the date

setDate

public void setDate(Date date)
Set the date

Parameters:
date - The date to set

getInputMode

public int getInputMode()
Get the input mode

Returns:
the mode

setInputMode

public void setInputMode(int mode)
Set the input mode

Parameters:
mode - The mode to set

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification