Class AvatarGroupLocator

java.lang.Object
com.vaadin.browserless.locator.Locator<com.vaadin.flow.component.avatar.AvatarGroup,AvatarGroupLocator>
com.vaadin.flow.component.avatar.AvatarGroupLocator
All Implemented Interfaces:
Clickable<com.vaadin.flow.component.avatar.AvatarGroup>, HasThemeFilter<com.vaadin.flow.component.avatar.AvatarGroup,AvatarGroupLocator>

@Generated("com.vaadin.browserless.locator.processor.LocatorProcessor") public class AvatarGroupLocator extends Locator<com.vaadin.flow.component.avatar.AvatarGroup,AvatarGroupLocator> implements Clickable<com.vaadin.flow.component.avatar.AvatarGroup>, HasThemeFilter<com.vaadin.flow.component.avatar.AvatarGroup,AvatarGroupLocator>
Generated locator for AvatarGroup, derived from AvatarGroupTester. Filter steps are inherited from Locator; action methods delegate to a fresh tester around the resolved component, so behavioral changes belong on the tester, not here.
  • Constructor Details

    • AvatarGroupLocator

      public AvatarGroupLocator()
      Creates a locator that searches for a AvatarGroup.
    • AvatarGroupLocator

      public AvatarGroupLocator(com.vaadin.flow.component.avatar.AvatarGroup component)
      Creates a locator already bound to the given component, so that the action methods run against it instead of against a lookup.
      Parameters:
      component - the component the locator resolves to
  • Method Details

    • getComponent

      public com.vaadin.flow.component.avatar.AvatarGroup getComponent()
      Description copied from interface: Clickable
      Gets the component being tested.
      Specified by:
      getComponent in interface Clickable<com.vaadin.flow.component.avatar.AvatarGroup>
      Returns:
      the component under test
    • ensureComponentIsUsable

      public void ensureComponentIsUsable()
      Description copied from interface: Clickable
      Ensures the component is in a usable state before interaction.
      Specified by:
      ensureComponentIsUsable in interface Clickable<com.vaadin.flow.component.avatar.AvatarGroup>
    • getItems

      public List<com.vaadin.flow.component.avatar.AvatarGroup.AvatarGroupItem> getItems()
      Gets all items of the group, whether or not they are shown as individual avatars. Javadoc copied from AvatarGroupTester.getItems().
      Returns:
      the items of the group
      Throws:
      IllegalStateException - if the group is not visible to the user
    • getVisibleItems

      public List<com.vaadin.flow.component.avatar.AvatarGroup.AvatarGroupItem> getVisibleItems()
      Gets the items that are shown as individual avatars. Javadoc copied from AvatarGroupTester.getVisibleItems().
      Returns:
      the items shown as individual avatars
      Throws:
      IllegalStateException - if the group is not visible to the user
    • getOverflowItems

      public List<com.vaadin.flow.component.avatar.AvatarGroup.AvatarGroupItem> getOverflowItems()
      Gets the items that do not fit AvatarGroup.getMaxItemsVisible() and are grouped behind the overflow avatar. Javadoc copied from AvatarGroupTester.getOverflowItems().
      Returns:
      the overflowing items, empty if nothing overflows
      Throws:
      IllegalStateException - if the group is not visible to the user
    • getOverflowAbbreviation

      public String getOverflowAbbreviation()
      Gets the abbreviation shown on the overflow avatar, such as "+3". Javadoc copied from AvatarGroupTester.getOverflowAbbreviation().
      Returns:
      the overflow abbreviation, or null if no items overflow and the overflow avatar is not shown
      Throws:
      IllegalStateException - if the group is not visible to the user
    • getActiveUsersLabel

      public String getActiveUsersLabel()
      Gets the accessible label of the group, that is, the one or many active users phrase with {count} replaced by the total number of items. Javadoc copied from AvatarGroupTester.getActiveUsersLabel().
      Returns:
      the accessible label, or null if no matching translation has been set on the component
      Throws:
      IllegalStateException - if the group is not visible to the user