editor now updatable via updateSite
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / Page.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor.editor;
12
13 import eu.etaxonomy.taxeditor.editor.description.TaxonDescriptionEditor;
14 import eu.etaxonomy.taxeditor.editor.images.TaxonImageEditor;
15 import eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor;
16
17 /**
18 * @author n.hoffmann
19 * @created 30.04.2009
20 * @version 1.0
21 */
22 public enum Page {
23 NAME ("Name", TaxonNameEditor.class, 0),
24 DESCRIPTIVE ("Descriptive", TaxonDescriptionEditor.class, 1),
25 IMAGE ("Image", TaxonImageEditor.class, 2);
26
27 private String title;
28 private Class<?> clazz;
29 private int index;
30
31 Page(String title, Class<?> clazz, int index){
32 this.title = title;
33 this.clazz = clazz;
34 this.index = index;
35 }
36
37 public String getTitle(){
38 return this.title;
39 }
40
41 public Class<?> getClazz(){
42 return this.clazz;
43 }
44
45 public int getIndex(){
46 return this.index;
47 }
48 }