SelectionBrowser.st
author Claus Gittinger <cg@exept.de>
Fri, 04 Sep 1998 13:31:11 +0200
changeset 979 2ee26d9ee7c4
parent 773 de5c99bd3078
child 1428 8243829fd6d3
permissions -rw-r--r--
tuned #readDirectory

"
 COPYRIGHT (c) 1997-1998 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice. This software may not
 be provided or otherwise made available to, or used by, any
 other person. No title to or ownership of the software is
 hereby transferred.
"



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

SelectionBrowser class instanceVariableNames:'lastSelection'

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

	SimpleDialog - 
	ApplicationModel - ClassResources
	Model - 
	Object - 
"
!

!SelectionBrowser class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1997-1998 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice. This software may not
 be provided or otherwise made available to, or used by, any
 other person. No title to or ownership of the software is
 hereby transferred.
"


!

documentation
"
    The abstract superclass for the ResourceSelectionBrowser
    and the FileSelectionBrowser.

    [author:]
       Thomas Zwick
"
! !

!SelectionBrowser class methodsFor:'accessing'!

lastSelection
    "returns the last selection; file path or resource class"

    ^lastSelection
!

lastSelection: aString
    "sets the last selection; file path or resource class"

    lastSelection := aString
! !

!SelectionBrowser class methodsFor:'queries'!

isVisualStartable
    "returns whether this application class can be started via #open"

    self == SelectionBrowser ifTrue:[^false].
    ^super isVisualStartable

! !

!SelectionBrowser methodsFor:'accessing'!

title: aString
    "sets the title"

    title := aString

! !

!SelectionBrowser methodsFor:'help'!

openHTMLDocument: aHTMLFilename
    "open a HTMLDocumentView on aHTMLFilename"

    HTMLDocumentView openFullOnDocumentationFile: aHTMLFilename
! !

!SelectionBrowser methodsFor:'startup / release'!

postBuildWith:aBuilder
    "sets the title (can be defined)"

    builder window label: title ? builder window label.

    ^super postBuildWith:aBuilder

! !

!SelectionBrowser class methodsFor:'documentation'!

version
    ^ '$Header$'
! !