Interface IPropCnrStringSettings<STRING_OPTION extends IPropCnrString>

All Superinterfaces:
IGProp<GProp<?>[]>, IPropCnr
All Known Implementing Classes:
EPlot2D, Plot2D

public interface IPropCnrStringSettings<STRING_OPTION extends IPropCnrString> extends IPropCnr
Interface implements by a property container supporting setting as strings.
Author:
Christopher Mindus
  • Method Details

    • get

      default String get(STRING_OPTION option)
      Gets a string option.
      Parameters:
      option - The option to retrieve.
      Returns:
      The option value set, or its default value if not set (can also be null).
    • getNoDefault

      default String getNoDefault(STRING_OPTION option)
      Gets a stroke option without default value, i.e. returns null if not set.
      Parameters:
      option - The option to retrieve.
      Returns:
      The option value set, or null if not set.
    • set

      default boolean set(STRING_OPTION option, String value) throws PropValidateException
      Sets a string option.
      Parameters:
      option - The option to set.
      value - The string value to set, or null to set default value.
      Returns:
      true if the value was changed, false for no change.
      Throws:
      PropValidateException - If the value doesn't validate.