Package org.apache.ofbiz.widget.model
Class ModelFormField.DateTimeField
java.lang.Object
org.apache.ofbiz.widget.model.FieldInfo
org.apache.ofbiz.widget.model.ModelFormField.DateTimeField
- Direct Known Subclasses:
ModelFormField.DateFindField
- Enclosing class:
- ModelFormField
Models the <date-time> element.
- See Also:
-
widget-form.xsd
-
Field Summary
Fields inherited from class org.apache.ofbiz.widget.model.FieldInfo
CHECK, CONTAINER, DATE_TIME, DATEQBE, DISPLAY, DISPLAY_ENTITY, DROP_DOWN, FILE, FORM, GRID, HIDDEN, HYPERLINK, IGNORED, IMAGE, LOOKUP, MENU, PASSWORD, RADIO, RANGEQBE, RESET, SCREEN, SOURCE_AUTO_ENTITY, SOURCE_AUTO_SERVICE, SOURCE_EXPLICIT, SUBMIT, TEXT, TEXTAREA, TEXTQBE
-
Constructor Summary
ModifierConstructorDescriptionDateTimeField
(int fieldSource, String type) DateTimeField
(int fieldSource, ModelFormField modelFormField) DateTimeField
(ModelFormField modelFormField) protected
DateTimeField
(ModelFormField.DateTimeField original, ModelFormField modelFormField) DateTimeField
(Element element, ModelFormField modelFormField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ModelFieldVisitor visitor) copy
(ModelFormField modelFormField) Returns a new instance of this object.getClock()
Gets clock.getDefaultDateTimeString
(Map<String, Object> context) Returns the default-value if specified, otherwise the current date, time or timestampGets default value.getDefaultValue
(Map<String, Object> context) Gets default value.Gets input method.getMask()
Gets mask.getStep()
Gets step.getType()
Gets type.void
renderFieldString
(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) Methods inherited from class org.apache.ofbiz.widget.model.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, isInputFieldType, toString
-
Constructor Details
-
DateTimeField
-
DateTimeField
-
DateTimeField
-
DateTimeField
-
DateTimeField
-
-
Method Details
-
accept
-
copy
Description copied from class:FieldInfo
Returns a new instance of this object. -
getClock
Gets clock.- Returns:
- the clock
-
getDefaultDateTimeString
Returns the default-value if specified, otherwise the current date, time or timestamp- Parameters:
context
- Context Map- Returns:
- Default value string for date-time
-
getDefaultValue
Gets default value.- Returns:
- the default value
-
getDefaultValue
Gets default value.- Parameters:
context
- the context- Returns:
- the default value
-
getInputMethod
Gets input method.- Returns:
- the input method
-
getMask
Gets mask.- Returns:
- the mask
-
getStep
Gets step.- Returns:
- the step
-
getType
Gets type.- Returns:
- the type
-
renderFieldString
public void renderFieldString(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) throws IOException- Specified by:
renderFieldString
in classFieldInfo
- Throws:
IOException
-