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
public static class AvatarGroup.AvatarGroupI18n extends Object implements Serializable
The internationalization properties forAvatarGroup.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AvatarGroupI18n()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnonymous()Gets the translated word foranonymous.StringgetManyActiveUsers()Gets the translated phrase for avatar group accessible label when having many active users.StringgetOneActiveUser()Gets the translated phrase for avatar group accessible label when having one active user.AvatarGroup.AvatarGroupI18nsetAnonymous(String anonymous)Sets the translated word foranonymous.AvatarGroup.AvatarGroupI18nsetManyActiveUsers(String manyActiveUsers)Sets the translated phrase for avatar group accessible label when having many active users.AvatarGroup.AvatarGroupI18nsetOneActiveUser(String oneActiveUser)Sets the translated phrase for avatar group accessible label when having one active user.
-
-
-
Method Detail
-
getAnonymous
public String 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
public AvatarGroup.AvatarGroupI18n setAnonymous(String anonymous)
Sets the translated word foranonymous.- Parameters:
anonymous- the translated word for anonymous, notnull- Returns:
- this instance for method chaining
-
getOneActiveUser
public String 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
public AvatarGroup.AvatarGroupI18n setOneActiveUser(String oneActiveUser)
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
public String 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
public AvatarGroup.AvatarGroupI18n setManyActiveUsers(String manyActiveUsers)
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
-
-