SelectionBrowser.st
author Claus Gittinger <cg@exept.de>
Mon, 08 Dec 1997 18:55:19 +0100
changeset 387 8fa6afe1b929
parent 383 c643ead8ede7
permissions -rw-r--r--
allow dynamic change of user defined selectionPanel (via a frameworks class-initialize method)

SimpleDialog subclass:#SelectionBrowser
	instanceVariableNames:'title'
	classVariableNames:''
	poolDictionaries:''
	category:'Interface-Advanced-Tools'
!

SelectionBrowser class instanceVariableNames:'lastSelection'

"
 The following class instance variables are inherited by this class:

	SimpleDialog - 
	ApplicationModel - ClassResources
	Model - 
	Object - 
"
!


!SelectionBrowser class methodsFor:'accessing'!

label

    |label|
    label := ''.
    self name do:
    [:c|
        c isUppercase ifTrue: [label := label, $ ].
        label := label, c
    ].
    ^label trimBlanks

!

lastSelection

    ^lastSelection
!

lastSelection: aString

    lastSelection := aString
! !

!SelectionBrowser methodsFor:'initialization'!

postBuildWith:aBuilder

    self setLabel.
    ^super postBuildWith:aBuilder

!

setLabel

    builder window label: title ? self class label

! !

!SelectionBrowser class methodsFor:'documentation'!

version
    ^ '$Header$'
! !