Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java @ 1381:4459901e4ec0
Updated the theme editor window layout.
flys-client/trunk@3135 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 01 Nov 2011 16:07:39 +0000 |
parents | 2d617c48ca5f |
children | f3410c96f51a |
comparison
equal
deleted
inserted
replaced
1380:2d617c48ca5f | 1381:4459901e4ec0 |
---|---|
19 import com.smartgwt.client.widgets.events.ClickEvent; | 19 import com.smartgwt.client.widgets.events.ClickEvent; |
20 import com.smartgwt.client.widgets.events.ClickHandler; | 20 import com.smartgwt.client.widgets.events.ClickHandler; |
21 import com.smartgwt.client.widgets.form.events.ItemChangedEvent; | 21 import com.smartgwt.client.widgets.form.events.ItemChangedEvent; |
22 import com.smartgwt.client.widgets.form.events.ItemChangedHandler; | 22 import com.smartgwt.client.widgets.form.events.ItemChangedHandler; |
23 import com.smartgwt.client.types.Alignment; | 23 import com.smartgwt.client.types.Alignment; |
24 import com.smartgwt.client.types.VerticalAlignment; | |
24 | 25 |
25 import de.intevation.flys.client.shared.model.Collection; | 26 import de.intevation.flys.client.shared.model.Collection; |
26 import de.intevation.flys.client.shared.model.CollectionItemAttribute; | 27 import de.intevation.flys.client.shared.model.CollectionItemAttribute; |
27 import de.intevation.flys.client.shared.model.Style; | 28 import de.intevation.flys.client.shared.model.Style; |
28 import de.intevation.flys.client.shared.model.StyleSetting; | 29 import de.intevation.flys.client.shared.model.StyleSetting; |
92 */ | 93 */ |
93 protected void init() { | 94 protected void init() { |
94 setTitle(MSG.properties()); | 95 setTitle(MSG.properties()); |
95 setCanDragReposition(true); | 96 setCanDragReposition(true); |
96 setCanDragResize(true); | 97 setCanDragResize(true); |
98 layout.setMargin(10); | |
97 | 99 |
98 layout.setWidth100(); | 100 layout.setWidth100(); |
99 layout.setHeight100(); | 101 layout.setHeight100(); |
100 } | 102 } |
101 | 103 |
114 } | 116 } |
115 }); | 117 }); |
116 | 118 |
117 buttons.addMember(accept); | 119 buttons.addMember(accept); |
118 buttons.addMember(cancel); | 120 buttons.addMember(cancel); |
119 buttons.setAlign(Alignment.RIGHT); | 121 buttons.setAlign(Alignment.CENTER); |
122 buttons.setHeight(30); | |
120 | 123 |
121 VLayout propGrid = createPropertyGrid(); | 124 VLayout propGrid = createPropertyGrid(); |
122 | 125 |
123 layout.addMember(propGrid); | 126 layout.addMember(propGrid); |
124 layout.addMember(buttons); | 127 layout.addMember(buttons); |
125 addItem(layout); | 128 addItem(layout); |
126 setWidth(270); | 129 setWidth(300); |
127 setHeight(propGrid.getChildren().length * 25 + 50); | 130 setHeight(410); |
128 } | 131 } |
129 | 132 |
130 | 133 |
131 /** | 134 /** |
132 * Setter for the parent panel. | 135 * Setter for the parent panel. |