public class nUIDateEntry extends nUIEntryElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
dd_MM_yyyy
See: http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/i18n/SimpleDateFormat.html
|
static java.lang.String |
HH_mm
See: http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/i18n/SimpleDateFormat.html
|
static java.lang.String |
HH_mm_ss
See: http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/i18n/SimpleDateFormat.html
|
static java.lang.String |
MM_dd_yyyy
See: http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/i18n/SimpleDateFormat.html
|
static java.lang.String |
yyyy_MM_dd
See: http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/i18n/SimpleDateFormat.html
|
Y_IDENTIFIER_PREV_BOTTOM
COLOR_BACKGROUND_NORMAL, COLOR_BLACK, COLOR_FOREGROUND_DARK, COLOR_FOREGROUND_LIGHT, COLOR_FOREGROUND_NORMAL, COLOR_TRANSPARENT, COLOR_WHITE, DIMENSIONS_IDENTIFIER_PARENT_DIMENSIONS
event_listener, event_listener_exclusive, first_child, last_child, next_sibling, nuiid, parent, prev_sibling, unlink_children_on_removal_from_parent
Constructor and Description |
---|
nUIDateEntry(int nuiid,
java.lang.String text)
Date-entry constructor.
|
nUIDateEntry(int nuiid,
java.lang.String text,
java.lang.String format)
Date-entry constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getDate()
Gets the current value set for this date entry.
|
java.lang.String |
getText()
This needs to convert the 'long date' to the output format
|
void |
setDate(long date)
Sets the current date and time of this date entry object.
|
void |
setEditing(boolean editing) |
void |
setText(java.lang.String text)
This needs to convert the passed in text to the 'long date'.
|
getFontSize, getFontStyle, getFormat, getHintText, getLines, setFontSize, setFontSizeAbsolute, setFontSizeRelative, setFontStyle, setFormat, setHintText, setLines
getY, insertAt
getBottom, getFocus, getFocusable, getHeight, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, insertAtInternal, remove, setBottom, setChildFocus, setFocus, setFocusable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setRight, setTop, setTriggerable, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, insertAfter, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace
public static final java.lang.String dd_MM_yyyy
public static final java.lang.String MM_dd_yyyy
public static final java.lang.String yyyy_MM_dd
public static final java.lang.String HH_mm_ss
public static final java.lang.String HH_mm
public nUIDateEntry(int nuiid, java.lang.String text)
text
will be a dd/MM/yyyy format date.nuiid
- Unique Native UI ID (or -1 if unidentified)text
- The default date to display (or null to use the current time)public nUIDateEntry(int nuiid, java.lang.String text, java.lang.String format)
nuiid
- Unique Native UI ID (or -1 if unidentified)text
- The default date to display (or null to use the current time)format
- The expected format of the date or time for this object.public void setDate(long date)
date
- System.currentTimeMillis()
public long getDate()
public void setText(java.lang.String text)
setText
in class nUIEntryElement
text
- Date in String formatpublic java.lang.String getText()
getText
in class nUIEntryElement
public void setEditing(boolean editing)
setEditing
in class nUIEntryElement