public interface Icons
Examples:
excelButton.setIcon(icons.get(JmixIcon.EXCEL_ACTION)); helpButton.setIcon(icons.get(JmixIcon.INFO));
Icons.Icon| Modifier and Type | Interface and Description |
|---|---|
static interface |
Icons.Icon
Interface for enumerations that represent icon sets.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.regex.Pattern |
ICON_NAME_REGEX |
| 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 iconName)
For the given
Icons.Icon.iconName(), returns the icon source that can be used to set this icon to components. |
@Nullable
java.lang.String get(@Nullable
Icons.Icon icon)
Icons.Icon instance, returns the icon source that can be used to set this icon to components.
Example:
createButton.setIcon(icons.get(JmixIcon.CREATE));
icon - Icons.Icon instanceIcons.Icon.source())@Nullable
java.lang.String get(@Nullable
java.lang.String iconName)
Icons.Icon.iconName(), returns the icon source that can be used to set this icon to components.
Example:
importButton.setIcon(icons.get("IMPORT"));
iconName - icon name that contains only uppercase letters and underscoresIcons.Icon.source())