Revision 8343ec26
Added by Alexander Oppermann over 9 years ago
src/test/java/eu/etaxonomy/cdm/vaadin/view/NaviTestView.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.cdm.vaadin.view; |
2 | 2 |
|
3 | 3 |
import com.vaadin.annotations.AutoGenerated; |
4 |
import com.vaadin.event.ShortcutListener; |
|
5 |
import com.vaadin.event.ShortcutAction.KeyCode; |
|
4 | 6 |
import com.vaadin.navigator.View; |
5 | 7 |
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; |
6 | 8 |
import com.vaadin.ui.Alignment; |
... | ... | |
39 | 41 |
public NaviTestView() { |
40 | 42 |
buildMainLayout(); |
41 | 43 |
setCompositionRoot(mainLayout); |
42 |
|
|
43 | 44 |
button.addClickListener(new ClickListener() { |
44 | 45 |
|
45 | 46 |
@Override |
... | ... | |
49 | 50 |
} |
50 | 51 |
|
51 | 52 |
}); |
53 |
button.setClickShortcut(KeyCode.ENTER, null); |
|
52 | 54 |
} |
53 | 55 |
|
54 | 56 |
public void setText(String text) { |
... | ... | |
92 | 94 |
// common part: create layout |
93 | 95 |
panel = new Panel(); |
94 | 96 |
panel.setImmediate(false); |
95 |
panel.setWidth("242px");
|
|
96 |
panel.setHeight("162px");
|
|
97 |
panel.setWidth("-1px");
|
|
98 |
panel.setHeight("-1px");
|
|
97 | 99 |
|
98 | 100 |
// panelVLayout |
99 | 101 |
panelVLayout = buildPanelVLayout(); |
... | ... | |
107 | 109 |
// common part: create layout |
108 | 110 |
panelVLayout = new VerticalLayout(); |
109 | 111 |
panelVLayout.setImmediate(false); |
110 |
panelVLayout.setWidth("100.0%"); |
|
111 |
panelVLayout.setHeight("100.0%"); |
|
112 |
panelVLayout.setMargin(false); |
|
112 |
panelVLayout.setWidth("-1px"); |
|
113 |
panelVLayout.setHeight("-1px"); |
|
114 |
panelVLayout.setMargin(true); |
|
115 |
panelVLayout.setSpacing(true); |
|
113 | 116 |
|
114 | 117 |
// textArea |
115 | 118 |
textArea = new TextArea(); |
Also available in: Unified diff
fixed launch configuration
fixed layout problems