Project

General

Profile

« Previous | Next » 

Revision 8343ec26

Added by Alexander Oppermann over 9 years ago

fixed launch configuration
fixed layout problems

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/AuthenticationView.java
5 5

  
6 6
import com.vaadin.annotations.AutoGenerated;
7 7
import com.vaadin.data.validator.StringLengthValidator;
8
import com.vaadin.event.ShortcutAction.KeyCode;
8 9
import com.vaadin.navigator.View;
9 10
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
10 11
import com.vaadin.server.VaadinSession;
......
27 28
	/*- VaadinEditorProperties={"grid":"RegularGrid,20","showGrid":true,"snapToGrid":true,"snapToObject":true,"movingGuides":false,"snappingDistance":10} */
28 29
	
29 30
	
31
	/**
32
	 * 
33
	 */
34
	private static final long serialVersionUID = 1L;
30 35
	@AutoGenerated
31 36
	private VerticalLayout mainLayout;
32 37
	@AutoGenerated
......
56 61
		userNameTF.focus();
57 62
		
58 63
		loginBtn.addClickListener(this);
64
		loginBtn.setClickShortcut(KeyCode.ENTER, null);
59 65
	}
60 66

  
61 67
	@Override
......
103 109
		// loginPanel
104 110
		loginPanel = buildLoginPanel();
105 111
		mainLayout.addComponent(loginPanel);
112
		mainLayout.setExpandRatio(loginPanel, 1.0f);
106 113
		mainLayout.setComponentAlignment(loginPanel, new Alignment(48));
107 114
		
108 115
		return mainLayout;
......
113 120
		// common part: create layout
114 121
		loginPanel = new Panel();
115 122
		loginPanel.setImmediate(false);
116
		loginPanel.setWidth("190px");
117
		loginPanel.setHeight("164px");
123
		loginPanel.setWidth("-1px");
124
		loginPanel.setHeight("-1px");
118 125
		
119 126
		// loginPanelLayout
120 127
		loginPanelLayout = buildLoginPanelLayout();
......
128 135
		// common part: create layout
129 136
		loginPanelLayout = new VerticalLayout();
130 137
		loginPanelLayout.setImmediate(false);
131
		loginPanelLayout.setWidth("100.0%");
132
		loginPanelLayout.setHeight("100.0%");
133
		loginPanelLayout.setMargin(false);
138
		loginPanelLayout.setWidth("-1px");
139
		loginPanelLayout.setHeight("-1px");
140
		loginPanelLayout.setMargin(true);
141
		loginPanelLayout.setSpacing(true);
134 142
		
135 143
		// userNameTF
136 144
		userNameTF = new TextField();

Also available in: Unified diff