public interface Icons
Examples:
excelButton.setIcon(icons.get(CubaIcon.EXCEL_ACTION)); helpButton.setIcon(icons.get(CubaIcon.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 |
static java.lang.String |
NAME |
| 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.name(), returns the icon source that can be used to set this icon to components. |
static final java.lang.String NAME
static final java.util.regex.Pattern ICON_NAME_REGEX
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(CubaIcon.CREATE));
icon - Icons.Icon instanceIcons.Icon.source())java.lang.String get(@Nullable
java.lang.String iconName)
Icons.Icon.name(), 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())