Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java @ 1311:981dde77b49f
#288 Added icons to the barriers combobox for digitizing features.
flys-client/trunk@2946 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 12 Oct 2011 10:22:46 +0000 |
parents | d3b4010d2c89 |
children | cf0f906921de |
comparison
equal
deleted
inserted
replaced
1310:c4c957a9c092 | 1311:981dde77b49f |
---|---|
94 } | 94 } |
95 } | 95 } |
96 }); | 96 }); |
97 | 97 |
98 form = new DynamicForm(); | 98 form = new DynamicForm(); |
99 form.setWidth(75); | 99 form.setWidth(100); |
100 form.setTitlePrefix(""); | 100 form.setTitlePrefix(""); |
101 form.setTitleSuffix(""); | 101 form.setTitleSuffix(""); |
102 | 102 |
103 LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(); | 103 LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(); |
104 map.put(BARRIER_PIPE1, MSG.getString(BARRIER_PIPE1)); | 104 map.put(BARRIER_PIPE1, MSG.getString(BARRIER_PIPE1)); |
105 map.put(BARRIER_PIPE2, MSG.getString(BARRIER_PIPE2)); | 105 map.put(BARRIER_PIPE2, MSG.getString(BARRIER_PIPE2)); |
106 map.put(BARRIER_DITCH, MSG.getString(BARRIER_DITCH)); | 106 map.put(BARRIER_DITCH, MSG.getString(BARRIER_DITCH)); |
107 map.put(BARRIER_DAM, MSG.getString(BARRIER_DAM)); | 107 map.put(BARRIER_DAM, MSG.getString(BARRIER_DAM)); |
108 map.put(BARRIER_RINGDIKE, MSG.getString(BARRIER_RINGDIKE)); | 108 map.put(BARRIER_RINGDIKE, MSG.getString(BARRIER_RINGDIKE)); |
109 | 109 |
110 LinkedHashMap<String, String> ics = new LinkedHashMap<String, String>(); | |
111 ics.put(BARRIER_PIPE1, BARRIER_PIPE1); | |
112 ics.put(BARRIER_PIPE2, BARRIER_PIPE2); | |
113 ics.put(BARRIER_DITCH, BARRIER_DITCH); | |
114 ics.put(BARRIER_DAM, BARRIER_DAM); | |
115 ics.put(BARRIER_RINGDIKE, BARRIER_RINGDIKE); | |
116 | |
110 SelectItem box = new SelectItem(FIELD_BARRIER_TYPE); | 117 SelectItem box = new SelectItem(FIELD_BARRIER_TYPE); |
111 box.setTitle(""); | 118 box.setTitle(""); |
112 box.setWidth(75); | 119 box.setWidth(100); |
113 box.setValueMap(map); | 120 box.setValueMap(map); |
121 box.setImageURLSuffix(".png"); | |
122 box.setValueIcons(ics); | |
123 | |
114 box.addChangedHandler(new ChangedHandler() { | 124 box.addChangedHandler(new ChangedHandler() { |
115 public void onChanged(ChangedEvent e) { | 125 public void onChanged(ChangedEvent e) { |
116 setSelectedControl(); | 126 setSelectedControl(); |
117 } | 127 } |
118 }); | 128 }); |