Package com.vaadin.flow.component.avatar
Class AvatarGroup.AvatarGroupI18n
java.lang.Object
com.vaadin.flow.component.avatar.AvatarGroup.AvatarGroupI18n
- All Implemented Interfaces:
Serializable
- Enclosing class:
- AvatarGroup
The internationalization properties for
AvatarGroup
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the translated word foranonymous
.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 foranonymous
.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 foranonymous
. 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 foranonymous
.- 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
-