MultipleItemSelectionWidget.st
author Claus Gittinger <cg@exept.de>
Wed, 02 Feb 2005 12:02:43 +0100
changeset 2787 559ae498c994
parent 2520 83dce5294ade
child 3199 d8a392eaf97c
permissions -rw-r--r--
copyright
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2787
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     1
"
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     2
 COPYRIGHT (c) 2004 by eXept Software AG
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     3
              All Rights Reserved
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     4
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     5
 This software is furnished under a license and may be used
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     6
 only in accordance with the terms of that license and with the
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     8
 be provided or otherwise made available to, or used by, any
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
     9
 other person.  No title to or ownership of the software is
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    10
 hereby transferred.
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    11
"
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    12
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"{ Package: 'stx:libwidg2' }"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
ApplicationModel subclass:#MultipleItemSelectionWidget
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	instanceVariableNames:'possibleItemsLabelHolder possibleItemListSelection
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
		listOfPossibleItems selectedItemListSelection
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
		removeButtonLabelHolder addButtonLabelHolder
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
    19
		selectedItemsLabelHolder listOfSelectedItems
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
    20
		canAddItemToSelection canRemoveItemFromSelection
1840
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
    21
		canAddAllItemsToSelection canRemoveAllItemsFromSelection
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    22
		enableChannel accepted'
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
	classVariableNames:''
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
	poolDictionaries:''
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
	category:'Views-Lists'
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
!MultipleItemSelectionWidget class methodsFor:'documentation'!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
2787
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    30
copyright
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    31
"
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    32
 COPYRIGHT (c) 2004 by eXept Software AG
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    33
              All Rights Reserved
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    34
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    35
 This software is furnished under a license and may be used
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    36
 only in accordance with the terms of that license and with the
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    37
 inclusion of the above copyright notice.   This software may not
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    38
 be provided or otherwise made available to, or used by, any
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    39
 other person.  No title to or ownership of the software is
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    40
 hereby transferred.
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    41
"
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    42
!
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
    43
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
documentation
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    Replacement for a multiSelectionInList widget;
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    allows construction of a list by adding/removing items.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
    For use in a UI-spec, add a subCanvas, and bind the exported aspects to
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    your applications aspects.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    [author:]
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    53
	 (cg@smc1)
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    [see also:]
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    [instance variables:]
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    [class variables:]
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
examples
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
"
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    65
								[exBegin]
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    66
	|box|
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    68
	box := MultipleItemSelectionWidget new.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    69
	box listOfPossibleItems value:#('one' 'two' 'three' 'four' 'five').  
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    70
	box listOfSelectedItems value:#().  
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    71
	box open.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    72
	box listOfSelectedItems inspect
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    73
								[exEnd]
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    76
								[exBegin]
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    77
	|box|
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    79
	box := MultipleItemSelectionWidget new.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    80
	box listOfPossibleItems value:#('one' 'two' 'three' 'four' 'five') asSortedCollection.  
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    81
	box listOfSelectedItems value:#() asSortedCollection.  
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    82
	box open.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    83
	box listOfSelectedItems inspect
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
    84
								[exEnd]
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
! !
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
!MultipleItemSelectionWidget class methodsFor:'interface specs'!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    90
dialogSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    91
    "This resource specification was automatically generated
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    92
     by the UIPainter of ST/X."
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    93
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    94
    "Do not manually edit this!! If it is corrupted,
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    95
     the UIPainter may not be able to read the specification."
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    96
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    97
    "
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    98
     UIPainter new openOnClass:MultipleItemSelectionWidget andSelector:#dialogSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
    99
     MultipleItemSelectionWidget new openInterface:#dialogSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   100
    "
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   101
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   102
    <resource: #canvas>
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   103
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   104
    ^ 
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   105
     #(#FullSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   106
        #name: #dialogSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   107
        #window: 
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   108
       #(#WindowSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   109
          #label: 'dialogSpec'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   110
          #name: 'dialogSpec'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   111
          #min: #(#Point 10 10)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   112
          #max: #(#Point 1280 1024)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   113
          #bounds: #(#Rectangle 16 46 316 346)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   114
        )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   115
        #component: 
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   116
       #(#SpecCollection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   117
          #collection: #(
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   118
           #(#UISubSpecification
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   119
              #name: 'SubSpecification1'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   120
              #layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -30 1.0)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   121
              #minorKey: #windowSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   122
            )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   123
           #(#HorizontalPanelViewSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   124
              #name: 'HorizontalPanel1'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   125
              #layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   126
              #horizontalLayout: #center
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   127
              #verticalLayout: #center
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   128
              #horizontalSpace: 3
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   129
              #verticalSpace: 3
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   130
              #reverseOrderIfOKAtLeft: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   131
              #component: 
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   132
             #(#SpecCollection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   133
                #collection: #(
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   134
                 #(#ActionButtonSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   135
                    #label: 'Cancel'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   136
                    #name: 'CancelButton'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   137
                    #translateLabel: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   138
                    #model: #doCancel
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   139
                    #extent: #(#Point 125 22)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   140
                  )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   141
                 #(#ActionButtonSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   142
                    #label: 'OK'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   143
                    #name: 'OkButton'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   144
                    #translateLabel: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   145
                    #model: #doAccept
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   146
                    #extent: #(#Point 125 22)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   147
                  )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   148
                 )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   149
               
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   150
              )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   151
            )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   152
           )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   153
         
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   154
        )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   155
      )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   156
!
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   157
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
windowSpec
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
    "This resource specification was automatically generated
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
     by the UIPainter of ST/X."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
    "Do not manually edit this!! If it is corrupted,
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
     the UIPainter may not be able to read the specification."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    "
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
     UIPainter new openOnClass:MultipleItemSelectionWidget andSelector:#windowSpec
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
     MultipleItemSelectionWidget new openInterface:#windowSpec
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
     MultipleItemSelectionWidget open
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
    "
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
    <resource: #canvas>
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
    ^ 
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
     #(#FullSpec
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   175
        #name: #windowSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   176
        #window: 
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
       #(#WindowSpec
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   178
          #label: 'NewApplication'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   179
          #name: 'NewApplication'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   180
          #min: #(#Point 10 10)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   181
          #max: #(#Point 1280 1024)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   182
          #bounds: #(#Rectangle 16 46 316 346)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   183
        )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   184
        #component: 
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
       #(#SpecCollection
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   186
          #collection: #(
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   187
           #(#LabelSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   188
              #label: 'Selected'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   189
              #name: 'SelectedLabel'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   190
              #layout: #(#LayoutFrame 0 0.5 0 0 0 1 25 0)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   191
              #translateLabel: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   192
              #labelChannel: #selectedItemsLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   193
            )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   194
           #(#SequenceViewSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   195
              #name: 'SelectedList'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   196
              #layout: #(#LayoutFrame 20 0.5 25 0 0 1 0 1)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   197
              #enableChannel: #enableChannel
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   198
              #tabable: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   199
              #model: #selectedItemListSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   200
              #hasHorizontalScrollBar: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   201
              #hasVerticalScrollBar: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   202
              #miniScrollerHorizontal: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   203
              #miniScrollerVertical: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   204
              #isMultiSelect: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   205
              #doubleClickSelector: #removeItemsFromSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   206
              #valueChangeSelector: #showInfoForItem:
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   207
              #useIndex: false
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   208
              #sequenceList: #listOfSelectedItems
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   209
            )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   210
           #(#LabelSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   211
              #label: 'Not Selected'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   212
              #name: 'NotSelectedLabel'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   213
              #layout: #(#LayoutFrame 0 0 0 0 0 0.5 25 0)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   214
              #translateLabel: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   215
              #labelChannel: #possibleItemsLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   216
            )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   217
           #(#SequenceViewSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   218
              #name: 'NotSelectedList'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   219
              #layout: #(#LayoutFrame 0 0 25 0 -20 0.5 0 1)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   220
              #enableChannel: #enableChannel
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   221
              #tabable: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   222
              #model: #possibleItemListSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   223
              #hasHorizontalScrollBar: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   224
              #hasVerticalScrollBar: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   225
              #miniScrollerHorizontal: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   226
              #miniScrollerVertical: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   227
              #isMultiSelect: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   228
              #doubleClickSelector: #addItemsToSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   229
              #valueChangeSelector: #showInfoForItem:
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   230
              #useIndex: false
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   231
              #sequenceList: #listOfPossibleItems
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   232
            )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   233
           #(#VerticalPanelViewSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   234
              #name: 'VerticalPanel1'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   235
              #layout: #(#LayoutFrame -20 0.5 25 0 20 0.5 5 0.5)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   236
              #horizontalLayout: #fitSpace
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   237
              #verticalLayout: #center
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   238
              #horizontalSpace: 3
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   239
              #verticalSpace: 3
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   240
              #component: 
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   241
             #(#SpecCollection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   242
                #collection: #(
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   243
                 #(#ActionButtonSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   244
                    #label: '<<<'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   245
                    #name: 'AddButton'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   246
                    #translateLabel: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   247
                    #labelChannel: #addButtonLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   248
                    #resizeForLabel: false
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   249
                    #tabable: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   250
                    #model: #addItemsToSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   251
                    #enableChannel: #canAddItemToSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   252
                    #actionValue: ''
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   253
                    #useDefaultExtent: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   254
                  )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   255
                 #(#ActionButtonSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   256
                    #label: '>>>'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   257
                    #name: 'RemoveButton'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   258
                    #translateLabel: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   259
                    #labelChannel: #removeButtonLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   260
                    #resizeForLabel: false
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   261
                    #tabable: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   262
                    #model: #removeItemsFromSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   263
                    #enableChannel: #canRemoveItemFromSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   264
                    #useDefaultExtent: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   265
                  )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   266
                 )
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   267
               
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   268
              )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   269
            )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   270
           #(#VerticalPanelViewSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   271
              #name: 'VerticalPanel2'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   272
              #layout: #(#LayoutFrame -20 0.5 5 0.5 20 0.5 -10 1)
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   273
              #horizontalLayout: #fitSpace
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   274
              #verticalLayout: #center
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   275
              #horizontalSpace: 3
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   276
              #verticalSpace: 3
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   277
              #component: 
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   278
             #(#SpecCollection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   279
                #collection: #(
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   280
                 #(#ActionButtonSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   281
                    #label: 'All'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   282
                    #name: 'AddAllButton'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   283
                    #translateLabel: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   284
                    #labelChannel: #addButtonLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   285
                    #resizeForLabel: false
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   286
                    #tabable: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   287
                    #model: #addAllItemsToSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   288
                    #enableChannel: #canAddAllItemsToSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   289
                    #useDefaultExtent: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   290
                  )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   291
                 #(#ActionButtonSpec
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   292
                    #label: 'None'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   293
                    #name: 'RemoveAllButton'
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   294
                    #translateLabel: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   295
                    #labelChannel: #removeButtonLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   296
                    #resizeForLabel: false
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   297
                    #tabable: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   298
                    #model: #removeAllItemsFromSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   299
                    #enableChannel: #canRemoveAllItemsFromSelection
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   300
                    #actionValue: ''
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   301
                    #useDefaultExtent: true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   302
                  )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   303
                 )
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
               
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   305
              )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   306
            )
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   307
           )
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
         
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   309
        )
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
      )
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
! !
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
!MultipleItemSelectionWidget class methodsFor:'plugIn spec'!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
aspectSelectors
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
    "This resource specification was automatically generated
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
     by the UIPainter of ST/X."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
    "Do not manually edit this. If it is corrupted,
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
     the UIPainter may not be able to read the specification."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
    "Return a description of exported aspects;
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
     these can be connected to aspects of an embedding application
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
     (if this app is embedded in a subCanvas)."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
    ^ #(
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   327
        #addButtonLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   328
        #enableChannel
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   329
        #listOfPossibleItems
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   330
        #listOfSelectedItems
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   331
        #possibleItemsLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   332
        #removeButtonLabelHolder
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   333
        #selectedItemsLabelHolder
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
      ).
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   335
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
! !
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
!MultipleItemSelectionWidget methodsFor:'actions'!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   340
accept
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   341
    "only invoked if opened as modal box..."
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   342
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   343
    accepted := true.
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   344
    self closeRequest.
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   345
!
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   346
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   347
addAllItemsToSelection
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   348
    "add all items from unselected to the selected list"
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   349
1840
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   350
    |newSel|
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   351
1840
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   352
    newSel := self listOfSelectedItems value asOrderedCollection
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   353
	      , self listOfPossibleItems value asOrderedCollection.
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   354
1840
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   355
    self listOfSelectedItems value:newSel asSortedCollection.
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   356
    self listOfPossibleItems value:(#() asSortedCollection).
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   357
!
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   358
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
addItemsToSelection
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
    "add selected items from left list to the right list"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   362
    |sel t|
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   363
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
    sel := self possibleItemListSelection value.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
    sel size > 0 ifTrue:[
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   366
	t := self listOfSelectedItems value copy.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   367
	t addAll:sel.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   368
	self listOfSelectedItems value:t.
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   370
	t := self listOfPossibleItems value copy.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   371
	t removeAll:sel.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   372
	self listOfPossibleItems value:t.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   373
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   374
	self possibleItemListSelection value:#()
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
    ]
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   378
cancel
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   379
    "only invoked if opened as modal box..."
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   380
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   381
    accepted := false.
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   382
    self closeRequest.
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   383
!
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   384
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   385
removeAllItemsFromSelection
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   386
    "remove all items from selected to the unselected list"
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   387
1840
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   388
    |newRem|
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   389
1840
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   390
    newRem := self listOfSelectedItems value asOrderedCollection
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   391
	      , self listOfPossibleItems value asOrderedCollection.
1840
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   392
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   393
    self listOfPossibleItems value:newRem asSortedCollection.
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   394
    self listOfSelectedItems value:(#() asSortedCollection).
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   395
!
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   396
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   397
removeItemsFromSelection
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
    "remove selected items from right list to the left list"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   400
    |sel t|
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
    sel := self selectedItemListSelection value.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
    sel size > 0 ifTrue:[
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   404
	t := self listOfPossibleItems value copy.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   405
	t addAll:sel.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   406
	self listOfPossibleItems value:t.
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   408
	t := self listOfSelectedItems value copy.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   409
	t removeAll:sel.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   410
	self listOfSelectedItems value:t.
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   411
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   412
	self selectedItemListSelection value:#()
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
    ]
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
showInfoForItem:anArgument
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   417
! !
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   418
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
!MultipleItemSelectionWidget methodsFor:'aspects'!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   420
2520
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   421
accepted
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   422
    ^ accepted == true
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   423
!
83dce5294ade dialog support
Claus Gittinger <cg@exept.de>
parents: 2404
diff changeset
   424
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   425
canAddAllItemsToSelection
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   426
    canAddAllItemsToSelection isNil ifTrue:[
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   427
       canAddAllItemsToSelection := BlockValue with:[:m | m value size > 0]
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   428
				    argument:self listOfPossibleItems 
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   429
    ].
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   430
    ^ canAddAllItemsToSelection.
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   431
!
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   432
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
canAddItemToSelection
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   435
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
    canAddItemToSelection isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
       canAddItemToSelection := BlockValue with:[:m | m value size > 0]
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   442
				    argument:self possibleItemListSelection 
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
    ^ canAddItemToSelection.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   447
canRemoveAllItemsFromSelection
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   448
    canRemoveAllItemsFromSelection isNil ifTrue:[
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   449
       canRemoveAllItemsFromSelection := BlockValue with:[:m | m value size > 0]
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   450
				    argument:self listOfSelectedItems 
1838
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   451
    ].
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   452
    ^ canRemoveAllItemsFromSelection.
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   453
!
833893f82202 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1837
diff changeset
   454
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
canRemoveItemFromSelection
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   461
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
    canRemoveItemFromSelection isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
       canRemoveItemFromSelection := BlockValue with:[:m | m value size > 0]
1863
b4130d1fea7d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1840
diff changeset
   464
				    argument:self selectedItemListSelection 
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
    ^ canRemoveItemFromSelection.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
1840
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   469
enableChannel
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   470
    enableChannel isNil ifTrue:[
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   471
       enableChannel := true asValue 
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   472
    ].
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   473
    ^ enableChannel.
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   474
!
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   475
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   476
enableChannel:aChannel
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   477
    enableChannel := aChannel
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   478
!
87591034ff12 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1838
diff changeset
   479
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
listOfPossibleItems
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
    listOfPossibleItems isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
       listOfPossibleItems := #() asValue.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
    ^ listOfPossibleItems.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
listOfPossibleItems:aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
   listOfPossibleItems := aValueHolder.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
listOfSelectedItems
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
    listOfSelectedItems isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
       listOfSelectedItems := #() asValue.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
    ^ listOfSelectedItems.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
listOfSelectedItems:aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
   listOfSelectedItems := aValueHolder.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
possibleItemListSelection
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   515
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   517
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   518
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   519
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
    possibleItemListSelection isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
       possibleItemListSelection := #() asValue.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
    ^ possibleItemListSelection.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   527
selectedItemListSelection
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
    selectedItemListSelection isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
       selectedItemListSelection := #() asValue.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
    ^ selectedItemListSelection.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
! !
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
2404
2b7591c982ac category change
Claus Gittinger <cg@exept.de>
parents: 1863
diff changeset
   540
!MultipleItemSelectionWidget methodsFor:'aspects-look'!
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
addButtonLabelHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   543
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   544
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   545
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   546
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   547
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
    addButtonLabelHolder isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
       addButtonLabelHolder :=  ValueHolder new.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
    ^ addButtonLabelHolder.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
addButtonLabelHolder:aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
    addButtonLabelHolder := aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
possibleItemsLabelHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
    possibleItemsLabelHolder isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
       possibleItemsLabelHolder :=  ValueHolder new.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
    ^ possibleItemsLabelHolder.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   571
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
possibleItemsLabelHolder:aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
    possibleItemsLabelHolder := aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
removeButtonLabelHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   580
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
    removeButtonLabelHolder isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
       removeButtonLabelHolder :=  ValueHolder new.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
    ^ removeButtonLabelHolder.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
removeButtonLabelHolder:aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
    removeButtonLabelHolder := aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
selectedItemsLabelHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
    "automatically generated by UIPainter ..."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
    "*** the code below creates a default model when invoked."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
    "*** (which may not be the one you wanted)"
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
    "*** Please change as required and accept it in the browser."
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
    selectedItemsLabelHolder isNil ifTrue:[
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
       selectedItemsLabelHolder :=  ValueHolder new.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
    ].
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
    ^ selectedItemsLabelHolder.
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
selectedItemsLabelHolder:aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   610
    selectedItemsLabelHolder := aValueHolder
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
! !
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
!MultipleItemSelectionWidget class methodsFor:'documentation'!
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   615
version
2787
559ae498c994 copyright
Claus Gittinger <cg@exept.de>
parents: 2520
diff changeset
   616
    ^ '$Header: /cvs/stx/stx/libwidg2/MultipleItemSelectionWidget.st,v 1.7 2005-02-02 11:02:43 cg Exp $'
1837
67fd7ad3d699 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
! !