Interface GridRowConditionalAction<A extends GridRowConditionalAction<A>>

All Superinterfaces:
Action<A>, Comparable<A>, Copyable<A>, Serializable
All Known Implementing Classes:
DefaultGridRowConditionalAction

public interface GridRowConditionalAction<A extends GridRowConditionalAction<A>> extends Action<A>
The ActionGrid.ActionPlacements.ROW action that can be rendered based on specified conditions. This action can be used only as of the grid row action e.g. to display the action for the specified entity status.

For example, to show the action if the status is "FINISHED" use the following:

 Actions.gridRowConditional()
         .label("Action label")
         .conditional(Conditional.when("status")
                 .equalTo("FINISHED"))
 
Author:
Dima Myroniuk (dmyroniuk)
  • Method Details

    • conditional

      default A conditional(Conditional... conditionals)
      Adds the conditions to render this action.
      Parameters:
      conditionals - the Conditional to render this action
      Returns:
      this action for further customization
    • conditional

      default A conditional(List<Conditional> conditionals)
      Adds the list of conditions to render this action.
      Parameters:
      conditionals - the Conditional to render this action
      Returns:
      this action for further customization