Enum Class SafeAction

java.lang.Object
java.lang.Enum<SafeAction>
org.apache.juneau.console.widgets.SafeAction
All Implemented Interfaces:
Serializable, Comparable<SafeAction>, Constable, ActionBarItem

public enum SafeAction extends Enum<SafeAction> implements ActionBarItem
A client-only ActionBarItem with no endpoint.

This slice ships COLLAPSE (collapse the child row). Unlike an ActionRef, a safe action is enabled immediately — including during an in-flight expand GET and after a failed GET — so the user can dismiss a loading or error panel.

Since:
10.0.0
  • Enum Constant Details

  • Method Details

    • values

      public static SafeAction[] 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 SafeAction 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
    • wire

      public String wire()
      Returns the wire token stamped onto data-juneau-safe.
      Returns:
      The wire token (e.g. "collapse").
    • label

      public String label()
      Returns the built-in button label, painted with textContent.
      Returns:
      The label.