eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Dolphin::FileDialog':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: FileDialog (in Dolphin)


Inheritance:

   Object
   |
   +--Dolphin::FileDialog
      |
      +--Dolphin::FileOpenDialog
      |
      +--Dolphin::FileSaveDialog

Package:
stx:libcompat
Category:
Compatibility-Dolphin
Version:
rev: 1.4 date: 2021/01/20 15:10:44
user: cg
file: Dolphin__FileDialog.st directory: libcompat
module: stx stc-classLibrary: libcompat

Class protocol:

queries
o  allFilesType


Instance protocol:

setup
o  caption: aTitle
self new
caption:'Select a file'

o  defaultExtension: aString
self new
defaultExtension:'st'

o  fileTypes: descriptions
each descriptions element consists of 2 elements:
a textual description
a matchPattern (usually on the suffix)

Usage example(s):

     self new
        fileTypes:(Array
                        with: #('PalmOS Resource Databases (*.prc)' '*.prc')
                        with: #('Smalltalk source files (*.st)' '*.st')
                        with: FileDialog allFilesType)

o  value: aString
self new
value:'st'

startup
o  showModal
failReturn

Usage example(s):

     FileOpenDialog new
            fileTypes:Package packageFileDialogTypes;
            defaultExtension: 'st';
            value: 'foo';
            caption: 'Open File: foo';
            showModal

Usage example(s):

     FileOpenDialog new
            fileTypes:Package packageFileDialogTypes;
            value: 'foo';
            caption: 'Open File: foo';
            showModal



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 13:11:09 GMT