eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FilenameEnterBox':

Home

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

Class: FilenameEnterBox


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--TopView
                  |
                  +--StandardSystemView
                     |
                     +--ModalBox
                        |
                        +--DialogBox
                           |
                           +--EnterBox
                              |
                              +--FilenameEnterBox

Package:
stx:libwidg2
Category:
Views-DialogBoxes
Version:
rev: 1.15 date: 2009/02/26 21:30:12
user: stefan
file: FilenameEnterBox.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Gittinger

Description:


like a normal enterBox, but does filename-completion when TAB is pressed.


Warning:


This is too-simple a dialog, and has been obsoleted by a much better Dialog 
with tree-like file selection.
Please use 
    Dialog requestFileName:'...'
or:
    Dialog requestDirectoryName:'...'
instead.

Related information:

    EnterBox
    FileSelectionBox
    FileSaveBox
    DialogBox
    Dialog

Instance protocol:

accessing
o  directoriesOnly
set to expand names for directories only

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  directoriesOnly: aBoolean
set/clear for directories only

o  directory: aFilename
set the directory

o  filesOnly
set to expand names for files only

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  filesOnly: aBoolean
set/clear for files only

initialization
o  createEnterField
redefined, since we need an editfield for filenames here
(if the class has not been compiled in, use a dumb default field)


Examples:


examples (for ST-80 compatibility, please use Dialog messages): simple (most common):
    |someString|

    someString := FilenameEnterBox request:'enter a filename:'.
    Transcript showCR:someString


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Wed, 24 Apr 2024 09:49:46 GMT