Revision 6689ac7b
Added by Alexander Oppermann over 9 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/dbstatus/DistributionTableView.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.cdm.vaadin.view.dbstatus; |
2 | 2 |
|
3 | 3 |
import com.vaadin.annotations.AutoGenerated; |
4 |
import com.vaadin.navigator.View; |
|
5 |
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; |
|
4 | 6 |
import com.vaadin.ui.AbsoluteLayout; |
7 |
import com.vaadin.ui.Button.ClickEvent; |
|
8 |
import com.vaadin.ui.Button.ClickListener; |
|
5 | 9 |
import com.vaadin.ui.CustomComponent; |
6 | 10 |
import com.vaadin.ui.Table; |
7 | 11 |
|
8 |
public class DistributionTableView extends CustomComponent{ |
|
12 |
public class DistributionTableView extends CustomComponent implements IDistributionTableComponent, View, ClickListener{
|
|
9 | 13 |
|
10 | 14 |
/*- VaadinEditorProperties={"grid":"RegularGrid,20","showGrid":true,"snapToGrid":true,"snapToObject":true,"movingGuides":false,"snappingDistance":10} */ |
11 | 15 |
|
12 |
@AutoGenerated |
|
16 |
/** |
|
17 |
* |
|
18 |
*/ |
|
19 |
private static final long serialVersionUID = 1L; |
|
20 |
@AutoGenerated |
|
13 | 21 |
private AbsoluteLayout mainLayout; |
14 | 22 |
@AutoGenerated |
15 | 23 |
private Table table_1; |
... | ... | |
27 | 35 |
// TODO add user code here |
28 | 36 |
} |
29 | 37 |
|
38 |
@Override |
|
39 |
public void addListener(DistributionTableComponentListener listener) { |
|
40 |
//TODO implement this method |
|
41 |
} |
|
42 |
|
|
30 | 43 |
@AutoGenerated |
31 | 44 |
private AbsoluteLayout buildMainLayout() { |
32 | 45 |
// common part: create layout |
... | ... | |
34 | 47 |
mainLayout.setImmediate(false); |
35 | 48 |
mainLayout.setWidth("100%"); |
36 | 49 |
mainLayout.setHeight("100%"); |
37 |
|
|
50 |
|
|
38 | 51 |
// top-level component properties |
39 | 52 |
setWidth("100.0%"); |
40 | 53 |
setHeight("100.0%"); |
41 |
|
|
54 |
|
|
42 | 55 |
// table_1 |
43 | 56 |
table_1 = new Table(); |
44 | 57 |
table_1.setImmediate(false); |
45 | 58 |
table_1.setWidth("100.0%"); |
46 | 59 |
table_1.setHeight("100.0%"); |
47 | 60 |
mainLayout.addComponent(table_1, "top:0.0px;right:0.0px;"); |
48 |
|
|
61 |
|
|
49 | 62 |
return mainLayout; |
50 | 63 |
} |
51 | 64 |
|
65 |
/* (non-Javadoc) |
|
66 |
* @see com.vaadin.navigator.View#enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent) |
|
67 |
*/ |
|
68 |
@Override |
|
69 |
public void enter(ViewChangeEvent event) { |
|
70 |
// TODO Auto-generated method stub |
|
71 |
|
|
72 |
} |
|
73 |
|
|
74 |
/* (non-Javadoc) |
|
75 |
* @see com.vaadin.ui.Button.ClickListener#buttonClick(com.vaadin.ui.Button.ClickEvent) |
|
76 |
*/ |
|
77 |
@Override |
|
78 |
public void buttonClick(ClickEvent event) { |
|
79 |
// TODO Auto-generated method stub |
|
80 |
|
|
81 |
} |
|
82 |
|
|
52 | 83 |
} |
Also available in: Unified diff
improved table component