|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.Input
org.pajes.html.InputField
org.pajes.html.InputString
org.pajes.html.InputDateTimeString
public class InputDateTimeString
This class creates an input field in a form that accepts a a formatted string from the user.
IsDateTime,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.pajes.html.Input |
|---|
TYPE_ATTRIBUTE |
| Fields inherited from class org.pajes.html.Tag |
|---|
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
|---|---|
protected |
InputDateTimeString()
Creates a new InputFormattedString object. |
|
InputDateTimeString(Form form,
java.lang.String name,
java.text.SimpleDateFormat format)
Creates a named input field with the specified format mask. |
|
InputDateTimeString(Form form,
java.lang.String name,
java.text.SimpleDateFormat format,
java.lang.String value)
Creates a named input field with the specified format mask and default value. |
|
InputDateTimeString(InputField source,
java.text.SimpleDateFormat format)
Creates a named input field. |
| Method Summary | |
|---|---|
java.util.Date |
getDateValue()
Returns the value as a Date object. |
java.text.SimpleDateFormat |
getFormat()
Returns the validation format mask assigned to this field. |
InputDateTimeString |
setFormat(java.text.SimpleDateFormat format)
Sets the validation format for this field. |
Input |
setValue(java.util.Date value)
Sets the value attribute of this INPUT tag. |
Input |
setValue(java.lang.String value)
Sets the value attribute of this INPUT tag. |
| Methods inherited from class org.pajes.html.InputField |
|---|
getClientValidation, getMaxLength, getSize, isMandatory, setMandatory, setMandatory, setMandatory, setMaxLength, setMaxLength, setSize, setSize |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.pajes.html.InputValidation |
|---|
getDOMReference, getName, isRequiringValidation, setOnBlurValidation |
| Constructor Detail |
|---|
public InputDateTimeString(Form form,
java.lang.String name,
java.text.SimpleDateFormat format)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name to apply to the input object, so that it may be
manipulated using client-side JavaScript.format - a format string that complies with the requirements ofIsDateTime.
public InputDateTimeString(Form form,
java.lang.String name,
java.text.SimpleDateFormat format,
java.lang.String value)
form - the form on which this input field will appear. Note that the
element must still be added to the form - this reference is
used by the getDOMReference() method to determine the fully
qualified element name.name - the name to apply to the input object, so that it may be
manipulated using client-side JavaScript.format - a format string that complies with the requirements ofIsDateTime.value - the default value to assign.
public InputDateTimeString(InputField source,
java.text.SimpleDateFormat format)
source - the input field from which this input field will be created.format - a format string that complies with the requirements ofIsDateTime.protected InputDateTimeString()
| Method Detail |
|---|
public java.util.Date getDateValue()
public java.text.SimpleDateFormat getFormat()
public InputDateTimeString setFormat(java.text.SimpleDateFormat format)
format - a DateFormat that complies with the requirements ofIsDateTime. Note that the object may be modified
as necessary!
public Input setValue(java.util.Date value)
value - the value to assign.
public Input setValue(java.lang.String value)
setValue in class Inputvalue - the value to assign.
TagException - if the specified value cannot be parsed into a date.
|
PAJES 3.0.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||