Interface HasActions<T extends HasActions<T>>

Type Parameters:
T - inheritor class type
All Superinterfaces:
ByLocator
All Known Implementing Classes:
EntityComboBox, EntityPicker, MultiSelectComboBoxPicker, MultiValuePicker, ValuePicker

public interface HasActions<T extends HasActions<T>> extends ByLocator
Interface for a web-element wrappers that have an actions to trigger.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default clear action ID.
    static final String
    Default lookup action ID.
    static final String
    Default open action ID.
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    Triggers the action with the passed ID by clicking button.
    default <V extends Composite<V>>
    V
    triggerActionWithView(Class<V> clazz, String actionId)
    Triggers the actions with the passed ID by clicking button and returns the opened wired composite (view).

    Methods inherited from interface io.jmix.masquerade.sys.ByLocator

    getBy
  • Field Details

  • Method Details

    • triggerAction

      default T triggerAction(String actionId)
      Triggers the action with the passed ID by clicking button.
      Parameters:
      actionId - action ID to trigger
      Returns:
      this to call fluent API
    • triggerActionWithView

      default <V extends Composite<V>> V triggerActionWithView(Class<V> clazz, String actionId)
      Triggers the actions with the passed ID by clicking button and returns the opened wired composite (view).
      Type Parameters:
      V - composite class type
      Parameters:
      clazz - composite class to wire and return
      actionId - action ID to trigger
      Returns:
      wired web-element wrapper for opened composite