Skip to content
Snippets Groups Projects
Commit 82960314 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#585 - chart display and chart group type implement localized enum interface

parent 1f77cacb
No related branches found
No related tags found
No related merge requests found
package de.deadlocker8.budgetmaster.charts;
public enum ChartDisplayType
import de.deadlocker8.budgetmaster.utils.LocalizedEnum;
public enum ChartDisplayType implements LocalizedEnum
{
PIE("pie"),
BAR("bar"),
LINE("line"),
CUSTOM("custom");
private final String localizationKey;
ChartDisplayType(String localizationKey)
{
PIE,
BAR,
LINE,
CUSTOM
this.localizationKey = localizationKey;
}
@Override
public String getLocalizationKey()
{
return "chart.display.type." + localizationKey;
}
}
package de.deadlocker8.budgetmaster.charts;
public enum ChartGroupType
import de.deadlocker8.budgetmaster.utils.LocalizedEnum;
public enum ChartGroupType implements LocalizedEnum
{
NONE("none"),
MONTH("month"),
YEAR("year");
private final String localizationKey;
ChartGroupType(String localizationKey)
{
NONE,
MONTH,
YEAR
this.localizationKey = localizationKey;
}
@Override
public String getLocalizationKey()
{
return "chart.group.type." + localizationKey;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment