18 package org.turro.registry;
20 import org.turro.i18n.I_;
27 public class EnumChange<V
extends Enum<V>> extends ValueChange<V> {
29 public EnumChange(ChangeCategory category, String label, V oldValue, V newValue,
boolean duplicates) {
30 super(category, label, oldValue, newValue, duplicates);
33 public EnumChange(ChangeCategory category, String label, V oldValue, V newValue) {
34 super(category, label, oldValue, newValue);
37 public EnumChange(String caption,
int order, String label, V oldValue, V newValue,
boolean duplicates) {
38 super(caption, order, label, oldValue, newValue, duplicates);
41 public EnumChange(String caption,
int order, String label, V oldValue, V newValue) {
42 super(caption, order, label, oldValue, newValue);
46 public String getNewValueString() {
47 return I_.
byKey(getNewValue().toString());
51 public String getOldValueString() {
52 return I_.
byKey(getOldValue().toString());
static String byKey(String key)