ref #8489: fix preference and term issues - continue
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / NavigatorOrderEnum.java
1 /**
2 * Copyright (C) 2018 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9 package eu.etaxonomy.taxeditor.preference;
10
11 import eu.etaxonomy.cdm.model.metadata.IKeyLabel;
12 import eu.etaxonomy.taxeditor.l10n.Messages;
13
14 /**
15 * @author k.luther
16 * @since 19.11.2018
17 *
18 */
19 public enum NavigatorOrderEnum implements IKeyLabel{
20 AlphabeticalOrder("AlphabeticalOrder", Messages.NavigatorOrderEnum_1), //$NON-NLS-1$
21 NaturalOrder("NaturalOrder", Messages.NavigatorOrderEnum_3), //$NON-NLS-1$
22 RankAndNameOrder("RankAndNameOrder", Messages.NavigatorOrderEnum_5); //$NON-NLS-1$
23
24
25 String label;
26 String key;
27
28 private NavigatorOrderEnum(String key, String label){
29 this.label = label;
30 this.key = key;
31 }
32
33 @Override
34 public String getLabel(){
35 return label;
36 }
37
38 @Override
39 public String getKey(){
40 return key;
41 }
42 }