Enum Class TUIModule.Property

java.lang.Object
java.lang.Enum<TUIModule.Property>
com.calebleavell.jatui.modules.TUIModule.Property
All Implemented Interfaces:
Serializable, Comparable<TUIModule.Property>, Constable
Enclosing class:
TUIModule

public static enum TUIModule.Property extends Enum<TUIModule.Property>
Fields that can be recursively updated in the Builder.
You can change the recursion flags for these fields (see DirectedGraphNode.PropertyUpdateFlag).

To update the flag for a property on a builder, call TUIModule.Builder.updateFlag(Property, DirectedGraphNode.PropertyUpdateFlag)
You can also call TUIModule.Builder.lockProperty(Property) or TUIModule.Builder.unlockProperty(Property).

Note: setting the ansi, scanner, print stream, or enabling ansi will automatically lock those property flags, but setting application or merging ansi (appending/prepending) will not automatically lock the corresponding flags.
  • Enum Constant Details

    • APPLICATION

      public static final TUIModule.Property APPLICATION
      The ApplicationModule corresponding to this module
    • SET_ANSI

      public static final TUIModule.Property SET_ANSI
      Deals with replacing the ansi completely with setAnsi()
    • MERGE_ANSI

      public static final TUIModule.Property MERGE_ANSI
      Deals with appending to or prepending to the ansi
    • SCANNER

      public static final TUIModule.Property SCANNER
      The Scanner this module may read data from (not every module reads data)
    • PRINTSTREAM

      public static final TUIModule.Property PRINTSTREAM
      The PrintStream this module may write to (not every module writes data)
    • ENABLE_ANSI

      public static final TUIModule.Property ENABLE_ANSI
      Whether Ansi can be displayed for this module (takes precedent over SET_ANSI)
  • Method Details

    • values

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

      public static TUIModule.Property valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null