Class ActionRef.EnabledRule

java.lang.Object
org.apache.juneau.console.widgets.ActionRef.EnabledRule
Enclosing class:
ActionRef

public static class ActionRef.EnabledRule extends Object
One row-state rule gating an ActionRef.

Built by ActionRef.enabledWhen(String,Op,Object,String), which is the only shape that can produce a well-formed one; a hand-assembled instance is checked again at serve time, so neither route can smuggle a rule with no reason past the bar.

  • Field Details

    • field

      public String field
      The row field this rule tests. Must not be blank.
    • op

      public Op op
      The comparison operator. Must not be null.
    • value

      public Object value
      The comparison value for Op.EQ/Op.NE; must be null for Op.PRESENT/Op.ABSENT.
    • reason

      public String reason
      Why the action is unavailable when this rule does not match. Required — must not be blank.
  • Constructor Details