public interface IIconEnum
public enum Priority implements IIconEnum { LOW("transfer-down"), MEDIUM("square-medium"), HIGH("transfer-up"); private String icon; private Priority(String icon) { this.icon = icon; } public String getIcon() { return icon; } };Just make your enum to implement IIconEnum that forces you to have a getIcon() method. This method has to return an icon id from Material Design Icons. OpenXava can use these icons in several parts of the UI.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIcon()
Icon id from Material Design Icons.
|
java.lang.String getIcon()