public class nUIDateEntry extends nUIEntryElement implements IDateEntry
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_PIN_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
Constructor and Description |
---|
nUIDateEntry()
Date-entry constructor.
|
nUIDateEntry(java.util.Hashtable properties) |
nUIDateEntry(java.lang.String text)
Date-entry constructor.
|
nUIDateEntry(java.lang.String text,
java.util.Hashtable properties) |
nUIDateEntry(java.lang.String text,
java.lang.String format)
Date-entry constructor.
|
nUIDateEntry(java.lang.String text,
java.lang.String format,
java.util.Hashtable properties) |
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'.
|
getFontStyle, getFormat, getHintText, getHintTextColor, getLines, getTextColor, isGrowingOnTextEntry, setFontSize, setFontStyle, setGrowingOnTextEntry, setHintText, setHintTextColor, setLines, setTextColor
applyBackground, applyBackground, applyBackground
getBackgroundDrawable, getBottom, getElementIdentifier, getFocusable, getGesturable, getHeight, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getProperties, getProperty, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, getY, insertAtInternal, isEnabled, isVisible, onRemoved, remove, setBackgroundDrawable, setBottom, setElementIdentifier, setEnabled, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setProperties, setProperty, setRight, setTop, setTriggerable, setVisible, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getFirstChild, getId, getLastChild, getNextSibling, getParent, getPrevSibling, getTag, insertAfter, insertAt, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setId, setTag, setUnlinkChildrenOnRemoval
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBackgroundDrawable
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()
public nUIDateEntry(java.lang.String text)
text
will be a dd/MM/yyyy format date.text
- The default date to display (or null to use the current time)public nUIDateEntry(java.lang.String text, java.lang.String format)
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 nUIDateEntry(java.util.Hashtable properties)
public nUIDateEntry(java.lang.String text, java.util.Hashtable properties)
public nUIDateEntry(java.lang.String text, java.lang.String format, java.util.Hashtable properties)
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)
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