Enum PopupManager.FeatureTypeChangeMode

  • All Implemented Interfaces:
    Serializable, Comparable<PopupManager.FeatureTypeChangeMode>
    Enclosing class:
    PopupManager

    public static enum PopupManager.FeatureTypeChangeMode
    extends Enum<PopupManager.FeatureTypeChangeMode>
    Specifies the way that a feature type change should occur. When changing a feature type, the new type will typically have a prototype with default values. Either all of the current values can be reset to the default values of the prototype, or all current values can be kept where possible (some values may not be allowed in the new feature type, in which case they will be set to the default).
    Since:
    100.0.0
    • Enum Constant Detail

      • RESET_TO_DEFAULTS

        public static final PopupManager.FeatureTypeChangeMode RESET_TO_DEFAULTS
        Resets all fields to the default values defined in the feature template prototype.
        Since:
        100.0.0
      • KEEP_VALUES

        public static final PopupManager.FeatureTypeChangeMode KEEP_VALUES
        Keeps all applicable current field values. If the value is not allowed in the new feature type, then it will be set to null.
        Since:
        100.0.0
    • Method Detail

      • values

        public static PopupManager.FeatureTypeChangeMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PopupManager.FeatureTypeChangeMode c : PopupManager.FeatureTypeChangeMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PopupManager.FeatureTypeChangeMode 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