Class DateInput

java.lang.Object
org.strassburger.tui4j.input.Input<Date,DateInput>
org.strassburger.tui4j.input.DateInput

public class DateInput extends Input<Date,DateInput>
A class for handling date input
  • Constructor Details

    • DateInput

      public DateInput()
  • Method Details

    • read

      public Date read() throws InputValidationException
      Description copied from class: Input
      Read the input value
      Specified by:
      read in class Input<Date,DateInput>
      Returns:
      the input value
      Throws:
      InputValidationException - if the input is invalid and retryOnInvalid is false
    • setDateFormat

      public DateInput setDateFormat(String dateFormat)
      Set the date format for input validation
      Parameters:
      dateFormat - the date format to use (e.g., "dd/MM/yyyy")
      Returns:
      the DateInput object
    • getDateFormat

      public String getDateFormat()
      Get the current date format
      Returns:
      the date format string
    • setInline

      public DateInput setInline(boolean inline)