|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.DeprecatedUINode | +--oracle.cabo.ui.BaseUINode | +--oracle.cabo.ui.BaseMutableUINode | +--oracle.cabo.ui.beans.BaseWebBean | +--oracle.cabo.ui.beans.MarlinBean | +--oracle.cabo.ui.beans.form.FormElementBean | +--oracle.cabo.ui.beans.form.TextInputBean | +--oracle.cabo.ui.beans.form.DateFieldBean
The DateField control creates a text field for entering dates and a button for picking dates from a calendar. The name property is required and must be set for the validation to work correctly.
In addition, the HTML implementation takes advantage of several Javascript libraries and Java Server Pages which must be installed correctly for the DateField to function. The JSP to use can be specified by the destination property, but developers will only extremely rarely want to override the default value.
The DateField will default its format to the "short" date format
appropriate for the current locale; for example, in English,
this is "mm/dd/yy". However, the format can be overridden
by setting the onSubmitValidater
to an implementation of the DateValidater
.
Multiple windows are not available on most pda browsers, so the application must navigate onto a separate calendar page. Thus on the pda the dateField sends a 'date' event which can be handled by the class oracle.cabo.servlet.event.mobile.DateEventHandler. For those not using the UIX Servlet, there is a utility class oracle.cabo.servlet.event.mobile.DateEventUtils.
<dateField name="date2" columns="20"> <onSubmitValidater> <date dateStyle="shortish"/> </onSubmitValidater> </dateField>An example on a pda follows:
<ctrl:page xmlns="http://xmlns.oracle.com/uix/ui" xmlns:ctrl="http://xmlns.oracle.com/uix/controller" expressionLanguage="el"> <ctrl:content> <form name="demoForm"> <contents> <messageDateField required="yes" name="p_date" prompt="Date" value="${uix.eventResult.p_date}"/> </contents> </form> </ctrl:content> <ctrl:handlers> <ctrl:event name="date cancel" > <ctrl:instance class="oracle.cabo.servlet.event.mobile.DateEventHandler" method="getEventHandler" /> </ctrl:event> </ctrl:handlers> </ctrl:page>
DateValidater
Constructor Summary | |
|
DateFieldBean()
Construct an instance of the DateFieldBean. |
protected |
DateFieldBean(boolean ignored,
java.lang.String localName)
Construct an instance of the DateFieldBean. |
|
DateFieldBean(java.lang.String name)
Construct an instance of the DateFieldBean. |
|
DateFieldBean(java.lang.String name,
java.util.Date value)
Construct an instance of the DateFieldBean. |
|
DateFieldBean(java.lang.String name,
java.util.Date value,
java.util.Date minValue,
java.util.Date maxValue)
Construct an instance of the DateFieldBean. |
Method Summary | |
java.lang.String |
getDestination()
Gets The destination used to populate the modal date picking dialog. |
static java.lang.String |
getDestination(MutableUINode bean)
Gets The destination used to populate the modal date picking dialog. |
java.util.Date |
getMaxValue()
Gets The maximum value allowed for the Date value. |
static java.util.Date |
getMaxValue(MutableUINode bean)
Gets The maximum value allowed for the Date value. |
java.util.Date |
getMinValue()
Gets The minimum value allowed for the Date value. |
static java.util.Date |
getMinValue(MutableUINode bean)
Gets The minimum value allowed for the Date value. |
java.lang.String |
getPickerId()
Gets The id of the InlineDatePicker component which can be used to pick the Date value for this DateField. |
static java.lang.String |
getPickerId(MutableUINode bean)
Gets The id of the InlineDatePicker component which can be used to pick the Date value for this DateField. |
java.util.Date |
getValue()
Gets The Date value of the DateField. |
static java.util.Date |
getValue(MutableUINode bean)
Gets The Date value of the DateField. |
static void |
setDestination(MutableUINode bean,
java.lang.String destination)
Sets The destination used to populate the modal date picking dialog. |
void |
setDestination(java.lang.String destination)
Sets The destination used to populate the modal date picking dialog. |
void |
setMaxValue(java.util.Date maxValue)
Sets The maximum value allowed for the Date value. |
void |
setMaxValue(long maxValue)
Sets The maximum value allowed for the Date value. |
static void |
setMaxValue(MutableUINode bean,
java.util.Date maxValue)
Sets The maximum value allowed for the Date value. |
static void |
setMaxValue(MutableUINode bean,
long maxValue)
Sets The maximum value allowed for the Date value. |
void |
setMinValue(java.util.Date minValue)
Sets The minimum value allowed for the Date value. |
void |
setMinValue(long minValue)
Sets The minimum value allowed for the Date value. |
static void |
setMinValue(MutableUINode bean,
java.util.Date minValue)
Sets The minimum value allowed for the Date value. |
static void |
setMinValue(MutableUINode bean,
long minValue)
Sets The minimum value allowed for the Date value. |
static void |
setPickerId(MutableUINode bean,
java.lang.String pickerId)
Sets The id of the InlineDatePicker component which can be used to pick the Date value for this DateField. |
void |
setPickerId(java.lang.String pickerId)
Sets The id of the InlineDatePicker component which can be used to pick the Date value for this DateField. |
void |
setValue(java.util.Date value)
Sets The Date value of the DateField. |
void |
setValue(long value)
Sets The Date value of the DateField. |
static void |
setValue(MutableUINode bean,
java.util.Date value)
Sets The Date value of the DateField. |
static void |
setValue(MutableUINode bean,
long value)
Sets The Date value of the DateField. |
void |
setValueBinding(BoundValue boundValue)
Binds the The Date value of the DateField. |
static void |
setValueBinding(MutableUINode bean,
BoundValue boundValue)
Binds the The Date value of the DateField. |
static void |
setValueBinding(MutableUINode bean,
java.lang.Object selectKey)
Binds the The Date value of the DateField. |
static void |
setValueBinding(MutableUINode bean,
java.lang.String dataNamespace,
java.lang.String dataName,
java.lang.Object selectKey)
Binds the The Date value of the DateField. |
void |
setValueBinding(java.lang.Object selectKey)
Binds the The Date value of the DateField. |
void |
setValueBinding(java.lang.String dataNamespace,
java.lang.String dataName,
java.lang.Object selectKey)
Binds the The Date value of the DateField. |
Methods inherited from class oracle.cabo.ui.beans.form.FormElementBean |
getName, getName, getOnBlur, getOnBlur, getOnFocus, getOnFocus, isDisabled, isDisabled, isReadOnly, isReadOnly, setDisabled, setDisabled, setName, setName, setNameBinding, setNameBinding, setNameBinding, setNameBinding, setNameBinding, setNameBinding, setOnBlur, setOnBlur, setOnFocus, setOnFocus, setReadOnly, setReadOnly |
Methods inherited from class oracle.cabo.ui.beans.MarlinBean |
isEqualMarlinName |
Methods inherited from class oracle.cabo.ui.BaseUINode |
getAttributeNames, getAttributeValue, getAttributeValueImpl, getChildArray, getChildNames, getIndexedChild, getIndexedChild, getIndexedChildCount, getLocalName, getNamedChild, getNamespaceURI, getNodeID, getNodeRole, getPreorderDescendentAttributeValue, getRawAttributeValue, getRenderedUINode, getRenderer, getRenderer, render, render, toString |
Methods inherited from class oracle.cabo.ui.DeprecatedUINode |
getAttributeValue, getChildNames, getNamedChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.cabo.ui.UINode |
getAttributeNames, getAttributeValue, getAttributeValue, getChildNames, getChildNames, getIndexedChild, getIndexedChild, getIndexedChildCount, getLocalName, getNamedChild, getNamedChild, getNamespaceURI, getNodeID, getNodeRole, getRawAttributeValue, render, render |
Constructor Detail |
public DateFieldBean()
public DateFieldBean(java.lang.String name)
name
- the name used to identify the element in client-to-client or
client-to-server events.public DateFieldBean(java.lang.String name, java.util.Date value)
name
- the name used to identify the element in client-to-client or
client-to-server events.value
- The Date value of the DateField.public DateFieldBean(java.lang.String name, java.util.Date value, java.util.Date minValue, java.util.Date maxValue)
name
- the name used to identify the element in client-to-client or
client-to-server events.value
- The Date value of the DateField.minValue
- The minimum value allowed for the Date value.maxValue
- The maximum value allowed for the Date value.protected DateFieldBean(boolean ignored, java.lang.String localName)
Method Detail |
public final java.lang.String getDestination()
public final void setDestination(java.lang.String destination)
public final java.util.Date getValue()
public final void setValue(java.util.Date value)
public final void setValue(long value)
public final void setValueBinding(BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public final void setValueBinding(java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public final void setValueBinding(java.lang.String dataNamespace, java.lang.String dataName, java.lang.Object selectKey)
dataNamespace
- the namespace to be passed to
RenderingContext.getDataObject()
dataName
- the name to be passed to
RenderingContext.getDataObject()
selectKey
- the key to be passed to selectValue()
on the
DataObject
.public final java.util.Date getMinValue()
public final void setMinValue(java.util.Date minValue)
public final void setMinValue(long minValue)
public final java.util.Date getMaxValue()
public final void setMaxValue(java.util.Date maxValue)
public final void setMaxValue(long maxValue)
public final java.lang.String getPickerId()
public final void setPickerId(java.lang.String pickerId)
public static java.lang.String getDestination(MutableUINode bean)
public static void setDestination(MutableUINode bean, java.lang.String destination)
public static java.util.Date getValue(MutableUINode bean)
public static void setValue(MutableUINode bean, java.util.Date value)
public static void setValue(MutableUINode bean, long value)
public static void setValueBinding(MutableUINode bean, BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public static void setValueBinding(MutableUINode bean, java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public static void setValueBinding(MutableUINode bean, java.lang.String dataNamespace, java.lang.String dataName, java.lang.Object selectKey)
dataNamespace
- the namespace to be passed to
RenderingContext.getDataObject()
dataName
- the name to be passed to
RenderingContext.getDataObject()
selectKey
- the key to be passed to selectValue()
on the
DataObject
.public static java.util.Date getMinValue(MutableUINode bean)
public static void setMinValue(MutableUINode bean, java.util.Date minValue)
public static void setMinValue(MutableUINode bean, long minValue)
public static java.util.Date getMaxValue(MutableUINode bean)
public static void setMaxValue(MutableUINode bean, java.util.Date maxValue)
public static void setMaxValue(MutableUINode bean, long maxValue)
public static java.lang.String getPickerId(MutableUINode bean)
public static void setPickerId(MutableUINode bean, java.lang.String pickerId)
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |