Project

General

Profile

Download (1.46 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 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.cdm.vaadin.component.phycobank;
10

    
11
import com.vaadin.ui.Button;
12
import com.vaadin.ui.CustomComponent;
13
import com.vaadin.ui.HorizontalLayout;
14
import com.vaadin.ui.Label;
15

    
16
/**
17
 * @author a.kohlbecker
18
 * @since Mar 6, 2017
19
 *
20
 */
21
public class RegistrationItemComponent extends CustomComponent {
22

    
23
    private static final long serialVersionUID = -3585430974956346927L;
24

    
25
    private HorizontalLayout container;
26
    private Label statusIcon = new Label();
27
    private Label summary = new Label();
28
    private Button editButton = new Button("Edit");
29

    
30
    /**
31
     * @return the statusIcon
32
     */
33
    public Label getStatusIcon() {
34
        return statusIcon;
35
    }
36
    /**
37
     * @return the summary
38
     */
39
    public Label getSummary() {
40
        return summary;
41
    }
42
    /**
43
     * @return the editButton
44
     */
45
    public Button getEdit() {
46
        return editButton;
47
    }
48

    
49
    /**
50
     *
51
     */
52
    public RegistrationItemComponent() {
53
        container.setSpacing(true);
54
        container.setWidth(100, Unit.PERCENTAGE);
55
        container.addComponent(statusIcon);
56
        summary.setWidth(100, Unit.PERCENTAGE);
57
        container.addComponent(summary);
58
        container.addComponent(editButton);
59
    }
60

    
61
}
(1-1/2)