Enum TimeTextField.Mode

java.lang.Object
java.lang.Enum<TimeTextField.Mode>
org.bzdev.swing.TimeTextField.Mode
All Implemented Interfaces:
Serializable, Comparable<TimeTextField.Mode>
Enclosing class:
TimeTextField

public static enum TimeTextField.Mode extends Enum<TimeTextField.Mode>
TimeTextField Modes. These specify whether additional characters are allowed in the input field of a TimeTextField.
  • Enum Constant Details

    • PLAIN

      public static final TimeTextField.Mode PLAIN
      Plain mode. No special characters are allowed.
    • QUERY

      public static final TimeTextField.Mode QUERY
      Query Mode. If the Text field contains the value, '?', that indicates that an application will interactively obtain the value from the user in some way (e.g., via a dialog box that is dismissed when the time interval expires
    • INDEFINITE

      public static final TimeTextField.Mode INDEFINITE
      Indefinite Mode. If the TimeTextField contains the value, '*', that indicates that the time interval is indefinite and will be determined autonomously by an application.
    • QUERY_AND_INDEFINITE

      public static final TimeTextField.Mode QUERY_AND_INDEFINITE
      Combined Mode. A combination of both QUERY and INDEFINITE modes, as determined by a presence of either a '*' or a '?' in the text field.
  • Method Details

    • values

      public static TimeTextField.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TimeTextField.Mode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null