com.vaadin.flow.component.avatar.
Class AvatarGroup.AvatarGroupI18n
All Implemented Interfaces:
Enclosing class:
The internationalization properties for AvatarGroup
.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the translated word for
anonymous
.Gets the translated phrase for avatar group accessible label when having many active users.
Gets the translated phrase for avatar group accessible label when having one active user.
setAnonymous
(String anonymous) Sets the translated word for
anonymous
.setManyActiveUsers
(String manyActiveUsers) Sets the translated phrase for avatar group accessible label when having many active users.
setOneActiveUser
(String oneActiveUser) Sets the translated phrase for avatar group accessible label when having one active user.
-
Constructor Details
-
AvatarGroupI18n
public AvatarGroupI18n()
-
-
Method Details
-
getAnonymous
Gets the translated word for
anonymous
. It's displayed in a tooltip on hover if the name is not defined.Returns:
the translated word for anonymous. It will be
null
, If the translation wasn't set -
setAnonymous
Sets the translated word for
anonymous
.Parameters:
anonymous
- the translated word for anonymous, notnull
Returns:
this instance for method chaining
-
getOneActiveUser
Gets the translated phrase for avatar group accessible label when having one active user.
Returns:
the translated word for the label. It will be
null
, If the translation wasn't set -
setOneActiveUser
Sets the translated phrase for avatar group accessible label when having one active user.
Parameters:
oneActiveUser
- the translated word for the label, notnull
Returns:
this instance for method chaining
-
getManyActiveUsers
Gets the translated phrase for avatar group accessible label when having many active users.
Returns:
the translated word for the label. It will be
null
, If the translation wasn't set -
setManyActiveUsers
Sets the translated phrase for avatar group accessible label when having many active users.
You can use word
{count}
in order to display current count of active users. For example, "Currently {count} active users".Parameters:
manyActiveUsers
- the translated word for the label, notnull
Returns:
this instance for method chaining
-