ListSelectionBox.st
author Claus Gittinger <cg@exept.de>
Thu, 09 Nov 2017 20:09:30 +0100
changeset 6225 0122e4e6c587
parent 5936 fb13d3e9492e
child 6506 0f7404be1444
permissions -rw-r--r--
#FEATURE by cg class: GenericToolbarIconLibrary class added: #hideFilter16x16Icon
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     1
"
5
claus
parents: 3
diff changeset
     2
 COPYRIGHT (c) 1990 by Claus Gittinger
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
     3
	      All Rights Reserved
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     4
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     5
 This software is furnished under a license and may be used
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    10
 hereby transferred.
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    11
"
2261
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
    12
"{ Package: 'stx:libwidg' }"
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
    13
5553
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
    14
"{ NameSpace: Smalltalk }"
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
    15
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    16
EnterBox subclass:#ListSelectionBox
4407
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
    17
	instanceVariableNames:'panel list selectionList selectionChangeCallback useIndex
5553
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
    18
		searchJob clearEntryFieldOnDeselect'
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
    19
	classVariableNames:''
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
    20
	poolDictionaries:''
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
    21
	category:'Views-DialogBoxes'
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    22
!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    23
1273
0ddd78d2e221 #realize -> #postRealize
Claus Gittinger <cg@exept.de>
parents: 841
diff changeset
    24
!ListSelectionBox class methodsFor:'documentation'!
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    25
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    26
copyright
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    27
"
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    28
 COPYRIGHT (c) 1990 by Claus Gittinger
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
    29
	      All Rights Reserved
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    30
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    31
 This software is furnished under a license and may be used
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    32
 only in accordance with the terms of that license and with the
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    33
 inclusion of the above copyright notice.   This software may not
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    34
 be provided or otherwise made available to, or used by, any
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    35
 other person.  No title to or ownership of the software is
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    36
 hereby transferred.
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    37
"
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    38
!
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    39
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    40
documentation
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    41
"
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    42
    this class implements boxes for selection from a list. It offers
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    43
    both an ok- and abort-buttons. The ok-button, if pressed will
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    44
    evaluate the okAction (see EnterBox>>action).
77
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    45
    see examples for typical uses.
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    46
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    47
    Notice, for file selections there is a specialized FileSelectionBox,
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    48
    which supports matchPatterns, changing directory etc.
585
8f395aba0173 documentation
Claus Gittinger <cg@exept.de>
parents: 571
diff changeset
    49
8f395aba0173 documentation
Claus Gittinger <cg@exept.de>
parents: 571
diff changeset
    50
    [author:]
8f395aba0173 documentation
Claus Gittinger <cg@exept.de>
parents: 571
diff changeset
    51
        Claus Gittinger
77
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    52
"
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    53
!
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    54
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    55
examples 
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    56
"
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    57
    simple:
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    58
                                                                        [exBegin]
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    59
        |box|
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
    60
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    61
        box := ListSelectionBox new.
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    62
        box title:'select something:'.
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    63
        box list:#('foo' 'bar' 'baz').
2543
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
    64
        box okAction:[:sel | Transcript show:'the selection was:' ; showCR:sel].
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    65
        box showAtPointer
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    66
                                                                        [exEnd]
77
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    67
2541
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    68
    with index (instead of list-entry) and without an enterField:
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    69
                                                                        [exBegin]
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    70
        |box|
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    71
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    72
        box := ListSelectionBox new.
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    73
        box title:'select something:'.
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    74
        box list:#('foo' 'bar' 'baz').
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    75
        box useIndex:true.
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    76
        box okAction:[:sel | Transcript show:'the selection was:' ; showCR:sel].
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    77
        box showAtPointer
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    78
                                                                        [exEnd]
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
    79
155
claus
parents: 139
diff changeset
    80
77
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    81
    with a default:
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    82
                                                                        [exBegin]
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    83
        |box|
77
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
    84
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    85
        box := ListSelectionBox new.
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    86
        box title:'select something:'.
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    87
        box list:#('foo' 'bar' 'baz').
2543
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
    88
        box okAction:[:sel | Transcript show:'the selection was:' ; showCR:sel].
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    89
        box initialText:'foo'.
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    90
        box showAtPointer
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    91
                                                                        [exEnd]
155
claus
parents: 139
diff changeset
    92
claus
parents: 139
diff changeset
    93
claus
parents: 139
diff changeset
    94
    opening the box modeless (a stand-by box):
claus
parents: 139
diff changeset
    95
    (in this case, the default ok- and abortActions do not hide the box;
claus
parents: 139
diff changeset
    96
     therefore, we have to set those explicitely)
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    97
                                                                        [exBegin]
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
    98
        |box|
155
claus
parents: 139
diff changeset
    99
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   100
        box := ListSelectionBox new.
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   101
        box title:'select something:'.
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   102
        box list:#('foo' 'bar' 'baz').
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   103
        box abortText:'close'.
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   104
        box okText:'apply'.
2543
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
   105
        box okAction:[:sel | Transcript show:'the selection was:' ; showCR:sel].
593
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   106
        box abortAction:[:dummy | box hide].
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   107
        box openModeless
86dd024ed773 examples
Claus Gittinger <cg@exept.de>
parents: 585
diff changeset
   108
                                                                        [exEnd]
2280
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   109
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   110
    showing fileNames:
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   111
                                                                        [exBegin]
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   112
        |box|
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   113
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   114
        box := ListSelectionBox new.
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   115
        box title:'select something:'.
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   116
        box list:('.' asFilename directoryContents).
2543
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
   117
        box okAction:[:sel | Transcript show:'the selection was:' ; showCR:sel].
2280
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   118
        box showAtPointer
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   119
                                                                        [exEnd]
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   120
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   121
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
   122
"
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   123
! !
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   124
1273
0ddd78d2e221 #realize -> #postRealize
Claus Gittinger <cg@exept.de>
parents: 841
diff changeset
   125
!ListSelectionBox class methodsFor:'instance creation'!
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   126
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   127
title:titleString okText:okText abortText:abortText list:aList action:aBlock
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   128
    "create and return a new listSelectionBox with list already defined"
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   129
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   130
    |newBox|
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   131
2543
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
   132
    newBox := self 
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
   133
                title:titleString okText:okText abortText:abortText
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
   134
                action:aBlock.
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
   135
    newBox list:aList.
ef26b41d6e06 documentation
Claus Gittinger <cg@exept.de>
parents: 2541
diff changeset
   136
    ^ newBox
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
   137
! !
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   138
1273
0ddd78d2e221 #realize -> #postRealize
Claus Gittinger <cg@exept.de>
parents: 841
diff changeset
   139
!ListSelectionBox class methodsFor:'defaults'!
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   140
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   141
defaultExtent
571
ddc5d56bd636 commentary
Claus Gittinger <cg@exept.de>
parents: 412
diff changeset
   142
    "return the default extent of my instances.
ddc5d56bd636 commentary
Claus Gittinger <cg@exept.de>
parents: 412
diff changeset
   143
     The value returned here is usually ignored, and
ddc5d56bd636 commentary
Claus Gittinger <cg@exept.de>
parents: 412
diff changeset
   144
     the value from preferredExtent taken instead."
ddc5d56bd636 commentary
Claus Gittinger <cg@exept.de>
parents: 412
diff changeset
   145
775
ccc53ba319bc dont ask Display for defaultExtent - ask current screen
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   146
    ^ (Screen current pixelPerMillimeter * (80 @ 100)) rounded
571
ddc5d56bd636 commentary
Claus Gittinger <cg@exept.de>
parents: 412
diff changeset
   147
775
ccc53ba319bc dont ask Display for defaultExtent - ask current screen
Claus Gittinger <cg@exept.de>
parents: 740
diff changeset
   148
    "Modified: 5.7.1996 / 13:53:46 / cg"
12
1c8e8c53e8cf *** empty log message ***
claus
parents: 5
diff changeset
   149
!
1c8e8c53e8cf *** empty log message ***
claus
parents: 5
diff changeset
   150
1c8e8c53e8cf *** empty log message ***
claus
parents: 5
diff changeset
   151
listViewType
1c8e8c53e8cf *** empty log message ***
claus
parents: 5
diff changeset
   152
    "return the type of listView 
1c8e8c53e8cf *** empty log message ***
claus
parents: 5
diff changeset
   153
     - for easier redefinition in subclasses"
1c8e8c53e8cf *** empty log message ***
claus
parents: 5
diff changeset
   154
1c8e8c53e8cf *** empty log message ***
claus
parents: 5
diff changeset
   155
    ^ SelectionInListView
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   156
! !
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   157
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   158
!ListSelectionBox methodsFor:'accessing'!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   159
402
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   160
contents
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   161
    "return my contents"
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   162
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   163
    enterField isNil ifTrue:[
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   164
        ^ selectionList selectionValue
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   165
    ].
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   166
    ^ super contents
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   167
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   168
    "Created: 26.2.1996 / 20:05:47 / cg"
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   169
!
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   170
3048
585bce722953 +initialSelection
Claus Gittinger <cg@exept.de>
parents: 2958
diff changeset
   171
initialSelection:selected
585bce722953 +initialSelection
Claus Gittinger <cg@exept.de>
parents: 2958
diff changeset
   172
    "select some item in the list"
585bce722953 +initialSelection
Claus Gittinger <cg@exept.de>
parents: 2958
diff changeset
   173
585bce722953 +initialSelection
Claus Gittinger <cg@exept.de>
parents: 2958
diff changeset
   174
    
585bce722953 +initialSelection
Claus Gittinger <cg@exept.de>
parents: 2958
diff changeset
   175
    selectionList selection:selected
585bce722953 +initialSelection
Claus Gittinger <cg@exept.de>
parents: 2958
diff changeset
   176
!
585bce722953 +initialSelection
Claus Gittinger <cg@exept.de>
parents: 2958
diff changeset
   177
2444
a8c1811e9f9c better/more requests
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
   178
initialText:someString selected:selected
a8c1811e9f9c better/more requests
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
   179
    "in addition to showing the initial text; optionally also select it in the list"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   180
2444
a8c1811e9f9c better/more requests
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
   181
    super initialText:someString selected:selected.
a8c1811e9f9c better/more requests
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
   182
    selected ifTrue:[
a8c1811e9f9c better/more requests
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
   183
        selectionList setSelectElement:someString
a8c1811e9f9c better/more requests
Claus Gittinger <cg@exept.de>
parents: 2359
diff changeset
   184
    ].
690
d579f684aa7e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 655
diff changeset
   185
d579f684aa7e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 655
diff changeset
   186
    "Modified: 26.5.1996 / 15:03:37 / cg"
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   187
!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   188
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   189
list:aList
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   190
    "set the list to be displayed in selection list"
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   191
4298
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   192
    list := aList.
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   193
    selectionList list:aList
4298
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   194
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   195
    "Modified: / 03-08-2011 / 12:30:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
841
1b3dd08ca02a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   196
!
1b3dd08ca02a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   197
2261
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   198
selectionChangeCallback:aBlock
2359
f3d26728a7b1 comment
Claus Gittinger <cg@exept.de>
parents: 2295
diff changeset
   199
    "allows special actions to be hooked in, when the selection changes"
2261
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   200
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   201
    selectionChangeCallback := aBlock.
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   202
!
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   203
841
1b3dd08ca02a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   204
selectionIndex
1b3dd08ca02a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   205
    ^ selectionList selection
1b3dd08ca02a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   206
1b3dd08ca02a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 799
diff changeset
   207
    "Created: 14.10.1996 / 16:28:50 / cg"
2958
b4765cf24c7e *** empty log message ***
werner
parents: 2659
diff changeset
   208
!
b4765cf24c7e *** empty log message ***
werner
parents: 2659
diff changeset
   209
b4765cf24c7e *** empty log message ***
werner
parents: 2659
diff changeset
   210
selectionList
b4765cf24c7e *** empty log message ***
werner
parents: 2659
diff changeset
   211
b4765cf24c7e *** empty log message ***
werner
parents: 2659
diff changeset
   212
    ^selectionList
2546
e22d3da06feb category change
Claus Gittinger <cg@exept.de>
parents: 2545
diff changeset
   213
! !
e22d3da06feb category change
Claus Gittinger <cg@exept.de>
parents: 2545
diff changeset
   214
e22d3da06feb category change
Claus Gittinger <cg@exept.de>
parents: 2545
diff changeset
   215
!ListSelectionBox methodsFor:'accessing-behavior'!
2541
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   216
5553
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   217
clearEntryFieldOnDeselect
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   218
    "normally, the entryfield's contents is not cleared,
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   219
     when the list is deselected.
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   220
     This can be changed here."
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   221
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   222
    ^ clearEntryFieldOnDeselect ? false
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   223
!
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   224
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   225
clearEntryFieldOnDeselect:aBoolean
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   226
    "normally, the entryfield's contents is not cleared,
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   227
     when the list is deselected.
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   228
     This can be changed here."
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   229
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   230
    clearEntryFieldOnDeselect := aBoolean.
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   231
!
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   232
2541
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   233
useIndex:aBoolean
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   234
    aBoolean ifTrue:[
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   235
        self noEnterField
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   236
    ].
2545
a546fabd3f05 useIndex fix
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
   237
    useIndex := aBoolean
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   238
! !
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   239
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   240
!ListSelectionBox methodsFor:'accessing-components'!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   241
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   242
listView
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   243
    "return the listView component"
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   244
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   245
    ^ selectionList
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   246
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   247
    "Created: 26.10.1995 / 17:08:32 / cg"
4407
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   248
!
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   249
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   250
panelView
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   251
    ^ panel
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   252
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   253
    "Created: / 22-03-2012 / 10:30:16 / cg"
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   254
! !
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   255
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   256
!ListSelectionBox methodsFor:'accessing-look'!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   257
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   258
noEnterField
638
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   259
    "suppress the enterField - now only existing items are selectable;
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   260
     the default is to present an enterField."
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   261
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   262
    enterField destroy.
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   263
    enterField := nil
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   264
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   265
    "Created: 26.10.1995 / 17:12:38 / cg"
638
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   266
    "Modified: 12.5.1996 / 21:49:14 / cg"
2556
4a28144c121c added useComboBoxWithList:
Claus Gittinger <cg@exept.de>
parents: 2546
diff changeset
   267
!
4a28144c121c added useComboBoxWithList:
Claus Gittinger <cg@exept.de>
parents: 2546
diff changeset
   268
4a28144c121c added useComboBoxWithList:
Claus Gittinger <cg@exept.de>
parents: 2546
diff changeset
   269
useComboBoxWithList:list
4a28144c121c added useComboBoxWithList:
Claus Gittinger <cg@exept.de>
parents: 2546
diff changeset
   270
    "change the enterField to be a ComboList"
4a28144c121c added useComboBoxWithList:
Claus Gittinger <cg@exept.de>
parents: 2546
diff changeset
   271
4a28144c121c added useComboBoxWithList:
Claus Gittinger <cg@exept.de>
parents: 2546
diff changeset
   272
    self addEnterField:(ComboBoxView new).
4a28144c121c added useComboBoxWithList:
Claus Gittinger <cg@exept.de>
parents: 2546
diff changeset
   273
    enterField leaveAction:[:key | self okPressed].
4a28144c121c added useComboBoxWithList:
Claus Gittinger <cg@exept.de>
parents: 2546
diff changeset
   274
    enterField list:list.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   275
! !
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   276
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   277
!ListSelectionBox methodsFor:'initialization'!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   278
4298
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   279
beLiveSearchBox
5222
d85f84d024f9 class: ListSelectionBox
Claus Gittinger <cg@exept.de>
parents: 4407
diff changeset
   280
    #todo. "/ Jan, please comment what it does and who needs it
4298
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   281
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   282
    enterField delegate:(
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   283
        KeyboardForwarder 
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   284
            toView:selectionList 
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   285
            condition:[:type :key :view|(key == #CursorUp) or:[key == #CursorDown]]
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   286
            filter:[:key | (key == #CursorUp) or:[key == #CursorDown]]
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   287
        ).
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   288
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   289
    searchJob := BackgroundJob 
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   290
                named: 'List Selection Box Search Job'
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   291
                on: [self filterList].
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   292
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   293
    enterField immediateAccept: true.
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   294
    enterField model: ValueHolder new.
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   295
    enterField model onChangeSend: #restart to: searchJob.
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   296
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   297
    "Created: / 03-08-2011 / 12:27:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   298
!
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   299
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   300
initialize
1281
2852cfe9cae3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1273
diff changeset
   301
    |space2 halfSpace v vbw|
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   302
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   303
    super initialize.
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   304
2545
a546fabd3f05 useIndex fix
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
   305
    useIndex := false.
4166
b47c8508abbe changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 4088
diff changeset
   306
    "/ label := resources string:'Select or Enter'.
b47c8508abbe changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 4088
diff changeset
   307
    label := resources string:'Please Select'.
77
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
   308
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   309
    "need more space than an enterBox"
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   310
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   311
    "self height:(height + (font height * 5)).  "
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   312
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   313
    space2 := 2 * ViewSpacing.
125
claus
parents: 122
diff changeset
   314
    halfSpace := ViewSpacing // 2.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   315
4407
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   316
    panel := VerticalPanelView in:self.
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   317
    panel horizontalLayout:#fit.
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   318
    panel verticalLayout:#topFit.
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   319
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   320
    v := HVScrollableView for:(self class listViewType) in:panel.
2295
afa4d722c92b added h-scrollbar
Claus Gittinger <cg@exept.de>
parents: 2294
diff changeset
   321
    v horizontalScrollable:true; horizontalMini:true; autoHideHorizontalScrollBar:true.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   322
132
claus
parents: 130
diff changeset
   323
"/ old:
claus
parents: 130
diff changeset
   324
"/    v origin:[0.0
125
claus
parents: 122
diff changeset
   325
"/              @
132
claus
parents: 130
diff changeset
   326
"/              (enterField origin y + enterField height + ViewSpacing)]
claus
parents: 130
diff changeset
   327
"/      extent:[1.0
125
claus
parents: 122
diff changeset
   328
"/              @ 
132
claus
parents: 130
diff changeset
   329
"/              (height
125
claus
parents: 122
diff changeset
   330
"/               - ViewSpacing - labelField heightIncludingBorder
claus
parents: 122
diff changeset
   331
"/               - ViewSpacing - enterField heightIncludingBorder
claus
parents: 122
diff changeset
   332
"/               - buttonPanel heightIncludingBorder - ViewSpacing
claus
parents: 122
diff changeset
   333
"/               - space2)
132
claus
parents: 130
diff changeset
   334
"/             ].
claus
parents: 130
diff changeset
   335
claus
parents: 130
diff changeset
   336
"/ new:
4407
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   337
    panel origin:[enterField notNil ifTrue:[
412
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   338
                0.0 @ (enterField origin y + enterField height + ViewSpacing)
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   339
              ] ifFalse:[
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   340
                0.0 @ (labelField origin y + labelField height + ViewSpacing)
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   341
              ]
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   342
             ]
132
claus
parents: 130
diff changeset
   343
      corner:(1.0 @ 1.0).
4407
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   344
    panel bottomInset:(buttonPanel preferredHeight + ViewSpacing).
132
claus
parents: 130
diff changeset
   345
139
claus
parents: 132
diff changeset
   346
    vbw := v borderWidth.
4407
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   347
    v
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   348
        leftInset:halfSpace+vbw;
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   349
        rightInset:halfSpace+vbw.
110
eb59f6e31e84 *** empty log message ***
claus
parents: 77
diff changeset
   350
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   351
    selectionList := v scrolledView.
740
2d5cb01c7e11 no need for focusSequence - DialogBox does it
Claus Gittinger <cg@exept.de>
parents: 724
diff changeset
   352
    self makeTabable:selectionList.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   353
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   354
    "self updateList."
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   355
724
133555f0ed79 comment
Claus Gittinger <cg@exept.de>
parents: 713
diff changeset
   356
    "I am interested in what is done in the selectionList
132
claus
parents: 130
diff changeset
   357
     (could also create a SelectionInList-model and catch its changes ...)"
claus
parents: 130
diff changeset
   358
    selectionList action:[:lineNr | self selectionChanged].
claus
parents: 130
diff changeset
   359
    selectionList doubleClickAction:[:lineNr | self doubleClick].
claus
parents: 130
diff changeset
   360
2511
639be3067ff8 suppress focus from going to listView.
Claus Gittinger <cg@exept.de>
parents: 2500
diff changeset
   361
    selectionList doNotRequestFocusOnPointerEnter:true.
639be3067ff8 suppress focus from going to listView.
Claus Gittinger <cg@exept.de>
parents: 2500
diff changeset
   362
5586
0f8333c00ca4 #DOCUMENTATION
Claus Gittinger <cg@exept.de>
parents: 5553
diff changeset
   363
    enterField removeDependent:self. "don't want preferredExtent-changes"
128
claus
parents: 125
diff changeset
   364
2280
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   365
    enterField immediateAccept:true.
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   366
    enterField acceptAction:
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   367
                    [:text | |string index|
2282
10fc88f073ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2280
diff changeset
   368
                        enterField notNil ifTrue:[
10fc88f073ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2280
diff changeset
   369
                            string := enterField contents.
5936
fb13d3e9492e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5874
diff changeset
   370
                            string notEmptyOrNil ifTrue:[
fb13d3e9492e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5874
diff changeset
   371
                                "/ find the first list-entry, starting with entered text
fb13d3e9492e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5874
diff changeset
   372
                                index := (selectionList list ? #()) findFirst:[:line | (line ? '') string startsWith:string string].
fb13d3e9492e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5874
diff changeset
   373
                                index ~~ 0 ifTrue:[
fb13d3e9492e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5874
diff changeset
   374
                                    selectionList scrollToLine:index "/ makeLineVisible:index.
fb13d3e9492e #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 5874
diff changeset
   375
                                ].
2282
10fc88f073ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2280
diff changeset
   376
                            ].
2280
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   377
                        ].
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   378
                    ].
d9ee8906706e scroll to make the typed-in string visible in the list (if present)
Claus Gittinger <cg@exept.de>
parents: 2261
diff changeset
   379
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
   380
    "
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
   381
     mhm: the lists keyboard functions are disabled,
319
d78f5fbdee27 dont forward Cursor-motion to the enterField
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
   382
     and input passed to the enterfield (except cursor keys)
38
4b9b70b2cc87 2.10.3 pre-final version
claus
parents: 12
diff changeset
   383
    "
319
d78f5fbdee27 dont forward Cursor-motion to the enterField
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
   384
    selectionList delegate:(
412
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   385
        KeyboardForwarder 
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   386
            toView:enterField 
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   387
            condition:#noFocus
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   388
            filter:[:key | (key ~~ #CursorUp) and:[key ~~ #CursorDown]]
bb3d94d97b91 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 402
diff changeset
   389
        )
166
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   390
4407
a4965694f42d class definition
Claus Gittinger <cg@exept.de>
parents: 4298
diff changeset
   391
    "Modified (format): / 22-03-2012 / 10:30:03 / cg"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   392
!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   393
1273
0ddd78d2e221 #realize -> #postRealize
Claus Gittinger <cg@exept.de>
parents: 841
diff changeset
   394
postRealize
0ddd78d2e221 #realize -> #postRealize
Claus Gittinger <cg@exept.de>
parents: 841
diff changeset
   395
    "update the list now.
638
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   396
     This was not done in #initialize to allow settings to be changed before,
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   397
     in case list-updating is a slow operation - such as reading a directory"
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   398
1273
0ddd78d2e221 #realize -> #postRealize
Claus Gittinger <cg@exept.de>
parents: 841
diff changeset
   399
    super postRealize.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   400
    self updateList.
5699
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   401
    self setupEditfieldToMoveToListOnCursorDown.
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   402
    
638
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   403
    "Modified: 12.5.1996 / 21:50:50 / cg"
1273
0ddd78d2e221 #realize -> #postRealize
Claus Gittinger <cg@exept.de>
parents: 841
diff changeset
   404
    "Created: 24.7.1997 / 18:22:19 / cg"
77
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
   405
!
565b052f5277 *** empty log message ***
claus
parents: 59
diff changeset
   406
5699
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   407
setupEditfieldToMoveToListOnCursorDown
5702
b4a62021b2ab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5699
diff changeset
   408
    |inputField|
b4a62021b2ab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5699
diff changeset
   409
b4a62021b2ab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5699
diff changeset
   410
    (inputField := self enterField) isNil ifTrue:[^ self].
b4a62021b2ab #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5699
diff changeset
   411
    inputField
5699
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   412
        onKey:#CursorDown 
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   413
        leaveWith:[
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   414
            |listView|
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   415
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   416
            listView := self listView.
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   417
            listView windowGroup focusView:listView byTab:true.
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   418
            listView hasSelection ifFalse:[
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   419
                listView selectFirst
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   420
            ] ifTrue:[
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   421
                listView selectNext
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   422
            ].
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   423
        ].
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   424
!
1ebb2d421c0d #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 5586
diff changeset
   425
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   426
updateList
638
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   427
    "setup contents of list; 
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   428
     nothing done here but typically redefined in subclasses."
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   429
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   430
    ^ self
638
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   431
72c3d36df4d8 comments
Claus Gittinger <cg@exept.de>
parents: 593
diff changeset
   432
    "Modified: 12.5.1996 / 21:51:10 / cg"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   433
! !
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   434
4298
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   435
!ListSelectionBox methodsFor:'private'!
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   436
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   437
filterList
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   438
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   439
    | pattern filteredList |
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   440
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   441
    pattern := enterField model value.
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   442
    pattern isEmptyOrNil ifTrue:[
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   443
        filteredList := list.        
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   444
    ] ifFalse:[
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   445
        filteredList := list select:[:each|each asString startsWith: pattern].
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   446
    ].
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   447
    self sensor pushUserEvent: #list: for: selectionList withArgument: filteredList
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   448
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   449
    "Created: / 03-08-2011 / 12:27:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   450
! !
331907254f82 added live-search support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 4166
diff changeset
   451
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
   452
!ListSelectionBox methodsFor:'queries'!
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   453
130
claus
parents: 128
diff changeset
   454
preferredExtent
5874
f98bc7420296 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 5702
diff changeset
   455
    "return my preferred extent 
f98bc7420296 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 5702
diff changeset
   456
     - that's the minimum size I like to have, to make everything visible"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   457
2500
fc1ee2b3fa81 ListSelectionBox is at least as wide as its buttonPanel.
Stefan Vogel <sv@exept.de>
parents: 2444
diff changeset
   458
    |wWanted hWanted eH mm bw|
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   459
3759
0318021891be changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3611
diff changeset
   460
    "/ If I have an explicit preferredExtent..
0318021891be changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3611
diff changeset
   461
    explicitExtent notNil ifTrue:[
0318021891be changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3611
diff changeset
   462
        ^ explicitExtent
0318021891be changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3611
diff changeset
   463
    ].
799
64f8700489a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   464
3759
0318021891be changed #preferredExtent - use explicitExtent instvar
Stefan Vogel <sv@exept.de>
parents: 3611
diff changeset
   465
    "/ If I have a cached preferredExtent value..
713
0c38ad51016d care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   466
    preferredExtent notNil ifTrue:[
0c38ad51016d care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   467
        ^ preferredExtent
0c38ad51016d care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   468
    ].
0c38ad51016d care for preSet preferredExtent
Claus Gittinger <cg@exept.de>
parents: 690
diff changeset
   469
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   470
    mm := ViewSpacing.
125
claus
parents: 122
diff changeset
   471
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   472
    wWanted := mm + labelField width + mm.
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   473
    (wWanted > width) ifFalse:[
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   474
        wWanted := width
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   475
    ].
3611
a1654baf3f37 added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents: 3048
diff changeset
   476
    bw := buttonPanel preferredWidth.
2500
fc1ee2b3fa81 ListSelectionBox is at least as wide as its buttonPanel.
Stefan Vogel <sv@exept.de>
parents: 2444
diff changeset
   477
    bw > wWanted ifTrue:[
fc1ee2b3fa81 ListSelectionBox is at least as wide as its buttonPanel.
Stefan Vogel <sv@exept.de>
parents: 2444
diff changeset
   478
        wWanted := bw.
fc1ee2b3fa81 ListSelectionBox is at least as wide as its buttonPanel.
Stefan Vogel <sv@exept.de>
parents: 2444
diff changeset
   479
    ].
125
claus
parents: 122
diff changeset
   480
166
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   481
    enterField notNil ifTrue:[
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   482
        eH := enterField height + mm
166
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   483
    ] ifFalse:[
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   484
        eH := 0
166
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   485
    ].
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   486
    hWanted := mm + labelField height +
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   487
               eH +
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   488
               mm + selectionList height +
3611
a1654baf3f37 added preferredWidth & preferredHeight
Claus Gittinger <cg@exept.de>
parents: 3048
diff changeset
   489
               mm + buttonPanel preferredHeight +
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   490
               mm - (mm * 2).
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   491
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   492
    (hWanted < height) ifTrue:[
371
ed0d15f84085 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 319
diff changeset
   493
        hWanted := height
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   494
    ].
59
450ce95a72a4 *** empty log message ***
claus
parents: 38
diff changeset
   495
    ^ (wWanted @ hWanted)
166
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   496
799
64f8700489a4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 775
diff changeset
   497
    "Modified: 19.7.1996 / 20:44:52 / cg"
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   498
! !
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
   499
132
claus
parents: 130
diff changeset
   500
!ListSelectionBox methodsFor:'user actions'!
claus
parents: 130
diff changeset
   501
2541
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   502
actionArgument
2545
a546fabd3f05 useIndex fix
Claus Gittinger <cg@exept.de>
parents: 2543
diff changeset
   503
    useIndex ifTrue:[
2541
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   504
        ^self selectionIndex.
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   505
    ].
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   506
    ^ super actionArgument
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   507
!
dca07e5245d3 added #useIndex:
Claus Gittinger <cg@exept.de>
parents: 2511
diff changeset
   508
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   509
doubleClick
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   510
    "doubleClick on an entry is select & ok"
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   511
402
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   512
    enterField notNil ifTrue:[
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   513
        enterField contents:(selectionList selectionValue).
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   514
    ].
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   515
    self okPressed
402
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   516
ed4a635f43c6 oops - fixed access to non existing enterField (if noEnterField)
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
   517
    "Modified: 26.2.1996 / 20:05:45 / cg"
197
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   518
!
00927189c882 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
   519
132
claus
parents: 130
diff changeset
   520
selectionChanged
claus
parents: 130
diff changeset
   521
    "selections in list get forwarded to enterfield"
claus
parents: 130
diff changeset
   522
166
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   523
    enterField notNil ifTrue:[
5553
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   524
        |val|
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   525
        
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   526
        val := selectionList selectionValue.
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   527
        (val notEmptyOrNil or:[self clearEntryFieldOnDeselect]) ifTrue:[
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   528
            enterField contents:val
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   529
        ].    
2261
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   530
    ].
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   531
    selectionChangeCallback notNil ifTrue:[
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   532
        selectionChangeCallback value:selectionList selection
260a8cd9905d added a selectionChanged callback
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   533
    ].
166
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   534
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   535
    "Modified: 26.10.1995 / 17:20:06 / cg"
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   536
! !
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   537
1273
0ddd78d2e221 #realize -> #postRealize
Claus Gittinger <cg@exept.de>
parents: 841
diff changeset
   538
!ListSelectionBox class methodsFor:'documentation'!
243
5c411425097d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 197
diff changeset
   539
5c411425097d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 197
diff changeset
   540
version
5553
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   541
    ^ '$Header$'
4088
adde2366e217 changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3759
diff changeset
   542
!
adde2366e217 changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3759
diff changeset
   543
adde2366e217 changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3759
diff changeset
   544
version_CVS
5553
f684e07a633d #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 5222
diff changeset
   545
    ^ '$Header$'
243
5c411425097d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 197
diff changeset
   546
! !
5222
d85f84d024f9 class: ListSelectionBox
Claus Gittinger <cg@exept.de>
parents: 4407
diff changeset
   547