author | Claus Gittinger <cg@exept.de> |
Tue, 11 May 2004 14:50:21 +0200 | |
changeset 2704 | 0a09fd78eb54 |
parent 2585 | eb641403010a |
child 3124 | 3060c3f4246d |
permissions | -rw-r--r-- |
332 | 1 |
" |
2 |
COPYRIGHT (c) 1996 by eXept Software AG / Claus Gittinger |
|
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
3 |
All Rights Reserved |
332 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
2108
cbba33be6ac0
allow for fields class to be redefined by a subclass
Claus Gittinger <cg@exept.de>
parents:
1312
diff
changeset
|
14 |
"{ Package: 'stx:libwidg2' }" |
cbba33be6ac0
allow for fields class to be redefined by a subclass
Claus Gittinger <cg@exept.de>
parents:
1312
diff
changeset
|
15 |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
16 |
ComboView subclass:#ComboBoxView |
2585
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
17 |
instanceVariableNames:'' |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
18 |
classVariableNames:'' |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
19 |
poolDictionaries:'' |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
20 |
category:'Views-Interactors' |
124 | 21 |
! |
22 |
||
275 | 23 |
!ComboBoxView class methodsFor:'documentation'! |
124 | 24 |
|
332 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 1996 by eXept Software AG / Claus Gittinger |
|
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
28 |
All Rights Reserved |
332 | 29 |
|
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
||
38 |
! |
|
39 |
||
124 | 40 |
documentation |
41 |
" |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
42 |
A ComboBoxView combines an inputField with a drop down list of default inputs; |
126
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
43 |
choosing any from the pulled list presets the string in the field. |
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
44 |
|
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
45 |
In contrast to a PopUpList or ComboListView, the string can still be edited - |
126
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
46 |
the list is actually only a set of values for the convenience of the user. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
47 |
|
275 | 48 |
Not yet finished - it may need more protocol. |
49 |
||
50 |
[author:] |
|
1281 | 51 |
Claus Gittinger |
181 | 52 |
|
53 |
[see also:] |
|
1281 | 54 |
ComboView |
55 |
PopUpList SelectionInListView |
|
56 |
ComboListView ExtendedComboBox |
|
57 |
PullDownMenu Label EntryField |
|
124 | 58 |
" |
59 |
! |
|
60 |
||
61 |
examples |
|
62 |
" |
|
305 | 63 |
non MVC operation: |
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
64 |
[exBegin] |
124 | 65 |
|top b| |
66 |
||
67 |
top := StandardSystemView new. |
|
68 |
top extent:(300 @ 200). |
|
69 |
||
70 |
b := ComboBoxView in:top. |
|
71 |
b origin:(0.0 @ 0.0) corner:(1.0 @ 0.0). |
|
72 |
b bottomInset:(b preferredExtent y negated). |
|
73 |
||
74 |
b list:#('hello' 'world' 'this' 'is' 'st/x'). |
|
75 |
top open. |
|
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
76 |
[exEnd] |
124 | 77 |
|
78 |
||
79 |
||
305 | 80 |
with action: |
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
81 |
[exBegin] |
305 | 82 |
|top b| |
83 |
||
84 |
top := StandardSystemView new. |
|
85 |
top extent:(300 @ 200). |
|
86 |
||
87 |
b := ComboBoxView in:top. |
|
88 |
b origin:(0.0 @ 0.0) corner:(1.0 @ 0.0). |
|
89 |
b bottomInset:(b preferredExtent y negated). |
|
90 |
||
91 |
b list:#('hello' 'world' 'this' 'is' 'st/x'). |
|
92 |
b action:[:entry | Transcript showCR:entry]. |
|
93 |
top open. |
|
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
94 |
[exEnd] |
305 | 95 |
|
96 |
||
97 |
||
124 | 98 |
model operation: |
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
99 |
[exBegin] |
124 | 100 |
|model top b| |
101 |
||
102 |
model := 'foo' asValue. |
|
103 |
||
104 |
top := StandardSystemView new. |
|
105 |
top extent:(300 @ 200). |
|
106 |
||
107 |
b := ComboBoxView in:top. |
|
108 |
b origin:(0.0 @ 0.0) corner:(1.0 @ 0.0). |
|
109 |
b bottomInset:(b preferredExtent y negated). |
|
110 |
||
111 |
b list:#('hello' 'world' 'this' 'is' 'st/x'). |
|
112 |
b model:model. |
|
113 |
||
114 |
top openModal. |
|
184 | 115 |
Transcript showCR:('comboBox''s value: ' , model value). |
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
116 |
[exEnd] |
126
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
117 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
118 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
119 |
in a dialog: |
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
120 |
[exBegin] |
126
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
121 |
|model1 model2 dialog b| |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
122 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
123 |
model1 := 'foo' asValue. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
124 |
model2 := 'bar' asValue. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
125 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
126 |
dialog := Dialog new. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
127 |
(dialog addTextLabel:'ComboBox example:') adjust:#left. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
128 |
dialog addVerticalSpace. |
124 | 129 |
|
126
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
130 |
(b := dialog addComboBoxOn:model1 tabable:true). |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
131 |
b list:#('fee' 'foe' 'foo'). |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
132 |
dialog addVerticalSpace. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
133 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
134 |
(b := dialog addComboBoxOn:model2 tabable:true). |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
135 |
b list:#('bar' 'baz' 'baloo'). |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
136 |
dialog addVerticalSpace. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
137 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
138 |
dialog addOkButton. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
139 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
140 |
dialog open. |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
141 |
|
184 | 142 |
Transcript showCR:('1st comboBox''s value: ' , model1 value). |
143 |
Transcript showCR:('2nd comboBox''s value: ' , model2 value). |
|
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
144 |
[exEnd] |
124 | 145 |
" |
146 |
! ! |
|
147 |
||
126
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
148 |
!ComboBoxView methodsFor:'accessing-components'! |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
149 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
150 |
editor |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
151 |
"return the inputField component" |
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
152 |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
153 |
^ field |
126
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
154 |
|
888d8ccd35af
better sizing; forward unknown messages to my inputField
Claus Gittinger <cg@exept.de>
parents:
125
diff
changeset
|
155 |
"Created: 9.2.1996 / 20:18:03 / cg" |
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
156 |
"Modified: 28.2.1996 / 15:10:50 / cg" |
124 | 157 |
! ! |
158 |
||
159 |
!ComboBoxView methodsFor:'accessing-mvc'! |
|
160 |
||
161 |
model |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
162 |
^ field model |
124 | 163 |
|
164 |
"Created: 9.2.1996 / 00:50:18 / cg" |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
165 |
"Modified: 28.2.1996 / 15:10:59 / cg" |
124 | 166 |
! |
167 |
||
168 |
model:aModel |
|
679
bd0e422aab67
fixed model setting & useIndex: handling (aspect)
Claus Gittinger <cg@exept.de>
parents:
597
diff
changeset
|
169 |
super model:aModel. |
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
170 |
field model:aModel. |
124 | 171 |
|
172 |
"Created: 9.2.1996 / 00:50:12 / cg" |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
173 |
"Modified: 28.2.1996 / 15:11:03 / cg" |
124 | 174 |
! ! |
175 |
||
2585
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
176 |
!ComboBoxView methodsFor:'change & update'! |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
177 |
|
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
178 |
update:something with:aParameter from:changedObject |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
179 |
changedObject == field model ifTrue:[ |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
180 |
action notNil ifTrue:[ |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
181 |
action value:(changedObject value) |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
182 |
]. |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
183 |
^ self. |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
184 |
]. |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
185 |
super update:something with:aParameter from:changedObject |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
186 |
! ! |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
187 |
|
1312 | 188 |
!ComboBoxView methodsFor:'event handling'! |
189 |
||
190 |
hasKeyboardFocus:aBoolean |
|
191 |
super hasKeyboardFocus:aBoolean. |
|
192 |
field hasKeyboardFocus:aBoolean |
|
193 |
! |
|
194 |
||
195 |
showFocus:explicit |
|
196 |
super showFocus:explicit. |
|
197 |
field showCursor. |
|
198 |
||
199 |
! |
|
200 |
||
201 |
showNoFocus:explicit |
|
202 |
super showNoFocus:explicit. |
|
203 |
field hideCursor. |
|
204 |
||
205 |
! ! |
|
206 |
||
124 | 207 |
!ComboBoxView methodsFor:'initialization'! |
208 |
||
2108
cbba33be6ac0
allow for fields class to be redefined by a subclass
Claus Gittinger <cg@exept.de>
parents:
1312
diff
changeset
|
209 |
editFieldClass |
cbba33be6ac0
allow for fields class to be redefined by a subclass
Claus Gittinger <cg@exept.de>
parents:
1312
diff
changeset
|
210 |
^ EditField |
cbba33be6ac0
allow for fields class to be redefined by a subclass
Claus Gittinger <cg@exept.de>
parents:
1312
diff
changeset
|
211 |
! |
cbba33be6ac0
allow for fields class to be redefined by a subclass
Claus Gittinger <cg@exept.de>
parents:
1312
diff
changeset
|
212 |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
213 |
initializeField |
2585
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
214 |
|m| |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
215 |
|
2108
cbba33be6ac0
allow for fields class to be redefined by a subclass
Claus Gittinger <cg@exept.de>
parents:
1312
diff
changeset
|
216 |
field := self editFieldClass in:self. |
519 | 217 |
field borderWidth:0. |
2585
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
218 |
field model:(m := ValueHolder newString). |
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
219 |
m addDependent:self. |
305 | 220 |
field acceptOnLostFocus:true. |
221 |
field acceptOnLeave:true. |
|
222 |
field leaveAction:[:key | self fieldLeft]. |
|
124 | 223 |
|
224 |
" |
|
225 |
all of my input goes to the enterfield |
|
226 |
" |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
227 |
self delegate:(KeyboardForwarder toView:field). |
124 | 228 |
|
229 |
" |
|
230 |
|b| |
|
231 |
||
232 |
b := ComboBoxView new. |
|
233 |
b list:#('hello' 'world' 'this' 'is' 'st/x'). |
|
234 |
b open |
|
235 |
" |
|
236 |
||
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
237 |
"Created: 28.2.1996 / 15:07:51 / cg" |
305 | 238 |
"Modified: 26.2.1997 / 19:44:13 / cg" |
124 | 239 |
! ! |
240 |
||
1183
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
679
diff
changeset
|
241 |
!ComboBoxView methodsFor:'private'! |
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
679
diff
changeset
|
242 |
|
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
679
diff
changeset
|
243 |
setFieldsFont:aFont |
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
679
diff
changeset
|
244 |
"ignored - the inputFields font remains unchanged" |
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
679
diff
changeset
|
245 |
! ! |
667132091c2f
ComboBox's inputField ought to use its default font.
Claus Gittinger <cg@exept.de>
parents:
679
diff
changeset
|
246 |
|
291 | 247 |
!ComboBoxView methodsFor:'queries'! |
248 |
||
249 |
specClass |
|
597 | 250 |
"XXX no longer needed (inherited default works here)" |
251 |
||
291 | 252 |
self class == ComboBoxView ifTrue:[ |
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
253 |
^ ComboBoxSpec |
291 | 254 |
]. |
301 | 255 |
^ super specClass |
256 |
||
597 | 257 |
"Modified: / 31.10.1997 / 19:49:39 / cg" |
291 | 258 |
! ! |
259 |
||
124 | 260 |
!ComboBoxView methodsFor:'user interaction'! |
261 |
||
311 | 262 |
fieldLeft |
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
263 |
field acceptOnLeave ifTrue:[ |
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
264 |
field accept. |
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
265 |
action notNil ifTrue:[ |
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
266 |
action value:(field contents) |
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
267 |
]. |
311 | 268 |
|
269 |
]. |
|
270 |
||
271 |
"Modified: 26.2.1997 / 19:38:24 / cg" |
|
272 |
"Created: 26.2.1997 / 19:42:30 / cg" |
|
273 |
! |
|
274 |
||
275 |
select:index |
|
230 | 276 |
|what| |
277 |
||
278 |
what := list at:index. |
|
130
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
279 |
field contents:what. |
5cad43b11fb5
inserted abstract ComboView class
Claus Gittinger <cg@exept.de>
parents:
127
diff
changeset
|
280 |
field accept. |
124 | 281 |
pullDownButton turnOff. |
282 |
||
305 | 283 |
action notNil ifTrue:[ |
2114
40cfff7c7efc
acceptIfUnchanged fixed (implemented)
Claus Gittinger <cg@exept.de>
parents:
2108
diff
changeset
|
284 |
action value:what |
305 | 285 |
]. |
286 |
||
287 |
"Modified: 26.2.1997 / 19:38:24 / cg" |
|
311 | 288 |
"Created: 28.2.1997 / 14:01:53 / cg" |
124 | 289 |
! ! |
290 |
||
275 | 291 |
!ComboBoxView class methodsFor:'documentation'! |
124 | 292 |
|
293 |
version |
|
2585
eb641403010a
action was not evaluated when the models
Claus Gittinger <cg@exept.de>
parents:
2114
diff
changeset
|
294 |
^ '$Header: /cvs/stx/stx/libwidg2/ComboBoxView.st,v 1.27 2003-11-20 16:15:32 cg Exp $' |
124 | 295 |
! ! |