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
public static class ModelFormField.DateTimeField extends FieldInfo
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, module, PASSWORD, RADIO, RANGEQBE, RESET, SCREEN, SOURCE_AUTO_ENTITY, SOURCE_AUTO_SERVICE, SOURCE_EXPLICIT, SUBMIT, TEXT, TEXTAREA, TEXTQBE
-
-
Constructor Summary
Constructors Modifier Constructor Description DateTimeField(int fieldSource, java.lang.String type)
DateTimeField(int fieldSource, ModelFormField modelFormField)
DateTimeField(ModelFormField modelFormField)
protected
DateTimeField(ModelFormField.DateTimeField original, ModelFormField modelFormField)
DateTimeField(org.w3c.dom.Element element, ModelFormField modelFormField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelFieldVisitor visitor)
FieldInfo
copy(ModelFormField modelFormField)
Returns a new instance of this object.java.lang.String
getClock()
java.lang.String
getDefaultDateTimeString(java.util.Map<java.lang.String,java.lang.Object> context)
Returns the default-value if specified, otherwise the current date, time or timestampFlexibleStringExpander
getDefaultValue()
java.lang.String
getDefaultValue(java.util.Map<java.lang.String,java.lang.Object> context)
java.lang.String
getInputMethod()
java.lang.String
getMask()
java.lang.String
getStep()
java.lang.String
getType()
void
renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer)
-
Methods inherited from class org.apache.ofbiz.widget.model.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, isInputFieldType, toString
-
-
-
-
Constructor Detail
-
DateTimeField
protected DateTimeField(ModelFormField.DateTimeField original, ModelFormField modelFormField)
-
DateTimeField
public DateTimeField(org.w3c.dom.Element element, ModelFormField modelFormField)
-
DateTimeField
public DateTimeField(int fieldSource, ModelFormField modelFormField)
-
DateTimeField
public DateTimeField(int fieldSource, java.lang.String type)
-
DateTimeField
public DateTimeField(ModelFormField modelFormField)
-
-
Method Detail
-
accept
public void accept(ModelFieldVisitor visitor) throws java.lang.Exception
-
copy
public FieldInfo copy(ModelFormField modelFormField)
Description copied from class:FieldInfo
Returns a new instance of this object.
-
getClock
public java.lang.String getClock()
-
getDefaultDateTimeString
public java.lang.String getDefaultDateTimeString(java.util.Map<java.lang.String,java.lang.Object> context)
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
public FlexibleStringExpander getDefaultValue()
-
getDefaultValue
public java.lang.String getDefaultValue(java.util.Map<java.lang.String,java.lang.Object> context)
-
getInputMethod
public java.lang.String getInputMethod()
-
getMask
public java.lang.String getMask()
-
getStep
public java.lang.String getStep()
-
getType
public java.lang.String getType()
-
renderFieldString
public void renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer) throws java.io.IOException
- Specified by:
renderFieldString
in classFieldInfo
- Throws:
java.io.IOException
-
-