Icons.IconICON_NAME_REGEX, NAME| Constructor and Description |
|---|
IconsImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(Icons.Icon icon)
For the given
Icons.Icon instance, returns the icon source that can be used to set this icon to components. |
java.lang.String |
get(java.lang.String icon)
For the given
Icons.Icon.name(), returns the icon source that can be used to set this icon to components. |
void |
init() |
@EventListener(value=AppContextInitializedEvent.class) @Order(value=200) public void init()
public java.lang.String get(@Nullable
Icons.Icon icon)
IconsIcons.Icon instance, returns the icon source that can be used to set this icon to components.
Example:
createButton.setIcon(icons.get(CubaIcon.CREATE));
get in interface Iconsicon - Icons.Icon instanceIcons.Icon.source())public java.lang.String get(@Nullable
java.lang.String icon)
IconsIcons.Icon.name(), returns the icon source that can be used to set this icon to components.
Example:
importButton.setIcon(icons.get("IMPORT"));
get in interface Iconsicon - icon name that contains only uppercase letters and underscoresIcons.Icon.source())