Added a bunch of functionality that will be needed when opening the editor with an...
[taxeditor.git] / taxeditor-navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / handler / NewTaxonomicTreeWizadPage.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.navigation.handler;
12
13 import org.apache.log4j.Logger;
14 import org.eclipse.jface.wizard.WizardPage;
15 import org.eclipse.swt.SWT;
16 import org.eclipse.swt.custom.CLabel;
17 import org.eclipse.swt.layout.GridData;
18 import org.eclipse.swt.layout.GridLayout;
19 import org.eclipse.swt.widgets.Composite;
20 import org.eclipse.swt.widgets.Text;
21
22 /**
23 * @author n.hoffmann
24 * @created 23.06.2009
25 * @version 1.0
26 */
27 public class NewTaxonomicTreeWizadPage extends WizardPage {
28 private static final Logger logger = Logger
29 .getLogger(NewTaxonomicTreeWizadPage.class);
30
31 private Text text_treeLabel;
32
33 /**
34 * @param pageName
35 */
36 protected NewTaxonomicTreeWizadPage(String pageName) {
37 super(pageName);
38 }
39
40 /* (non-Javadoc)
41 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
42 */
43 public void createControl(Composite parent) {
44
45
46 Composite composite = new Composite(parent, SWT.NONE);
47 GridLayout gridLayout = new GridLayout();
48 gridLayout.numColumns = 2;
49 composite.setLayout(gridLayout);
50
51 CLabel label_treeLabel = new CLabel(composite, SWT.NULL);
52 label_treeLabel.setText("Label:");
53
54 text_treeLabel = new Text(composite, SWT.BORDER);
55 text_treeLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
56
57 // FIXME this is a rudimentary implementation. Add missing fields.
58
59 setControl(composite);
60 }
61
62 /**
63 * @return the text_treeLabel
64 */
65 public String getTreeLabel() {
66 return text_treeLabel.getText();
67 }
68 }