Enum IWatcher.TriggeringType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IWatcher.TriggeringType>
    Enclosing interface:
    IWatcher

    public static enum IWatcher.TriggeringType
    extends java.lang.Enum<IWatcher.TriggeringType>
    Constants that defines the way an event is triggered.

    • ON_TRUE: the event is triggered each time the corresponding watch expression becomes true.
    • ON_TRUE_ONE_SHOT: the event is triggered the first time the corresponding watch expression becomes true. The watcher is then deleted.
    • ON_FALSE: the event is triggered each time the corresponding watch expression becomes false.
    • ON_FALSE_ONE_SHOT: the event is triggered the first time the corresponding watch expression becomes false. The watcher is then deleted.
    • ON_TOGGLE: the event is triggered each time the corresponding watch expression becomes true or false.

    See Also:
    General description of events in oro-server
    • Method Detail

      • values

        public static IWatcher.TriggeringType[] 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 (IWatcher.TriggeringType c : IWatcher.TriggeringType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IWatcher.TriggeringType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null