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
  • Constructor Details

  • Method Details

    • accept

      public void accept(ModelFieldVisitor visitor) throws Exception
      Specified by:
      accept in class FieldInfo
      Throws:
      Exception
    • copy

      public FieldInfo copy(ModelFormField modelFormField)
      Description copied from class: FieldInfo
      Returns a new instance of this object.
      Specified by:
      copy in class FieldInfo
    • isTwelveHour

      public boolean isTwelveHour()
      Returns:
      True if this field uses a 12-hour clock. If false then a 24-hour clock should be used.
    • getDefaultDateTimeString

      public String getDefaultDateTimeString(Map<String,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()
      Gets default value.
      Returns:
      the default value
    • getDefaultValue

      public String getDefaultValue(Map<String,Object> context)
      Gets default value.
      Parameters:
      context - the context
      Returns:
      the default value
    • getInputMethod

      public String getInputMethod()
      Gets input method.
      Returns:
      the input method
    • useMask

      public boolean useMask()
      Gets mask.
      Returns:
      the mask
    • getStep

      public int getStep()
      Gets step.
      Returns:
      the step
    • isDateType

      public final boolean isDateType()
    • isTimeType

      public final boolean isTimeType()
    • isTimestampType

      public final boolean isTimestampType()
    • renderFieldString

      public void renderFieldString(Appendable writer, Map<String,Object> context, FormStringRenderer formStringRenderer) throws IOException
      Specified by:
      renderFieldString in class FieldInfo
      Throws:
      IOException