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
|
FORMAT_NUMBER_ANY, FORMAT_NUMBER_HIDDEN, FORMAT_STRING_ANY, FORMAT_STRING_HIDDEN
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)
Date-entry constructor.
|
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.Long |
getDateLong()
Gets the current value set for this date entry as a Long Object.
|
java.lang.String |
getFallbackText()
Get the current fallback text that will be used for this nUIDateEntry if the date is not currently set.
|
int |
getHAlign()
Gets the text's horizontal alignment.
|
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 |
setFallbackText(java.lang.String fallbackText)
Set the fallback text to display on the button if the date is currently unset.
|
void |
setFormat(int intFormat)
Unsupported at this level, do not use.
|
void |
setFormat(java.lang.String format)
Set the format for this date entry.
|
void |
setHAlign(int halign)
Sets the alignment of the text.
|
void |
setText(java.lang.String text)
This needs to convert the passed in text to the 'long date'.
|
getEditable, getFontSize, getFontStyle, getFormat, getHintText, getLines, getTextColor, setEditable, setFontSize, setFontSizeAbsolute, setFontSizeRelative, setFontStyle, setHintText, setLines, setTextColor
getY, insertAt
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getHeight, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, insertAtInternal, isEnabled, onRemoved, remove, setBackgroundDrawable, setBgcolor, setBottom, setChildFocus, setEnabled, setFocus, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setRight, setTop, setTriggerable, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getTag, insertAfter, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setTag
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)
nuiid
- Unique Native UI ID (or -1 if unidentified)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 java.lang.Long getDateLong()
public void setFallbackText(java.lang.String fallbackText)
fallbackText
- public java.lang.String getFallbackText()
public void setHAlign(int halign)
halign
- One of nUIConstrants.left, .center or .rightjava.lang.IllegalArgumentException
- if halign is not validpublic int getHAlign()
public void setFormat(java.lang.String format)
setFormat
in class nUIEntryElement
public void setFormat(int intFormat)
setFormat
in class nUIEntryElement
intFormat
- 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