eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FilenameWidgetWithHistory':

Home

everywhere
www.exept.de
for:
[back]

Class: FilenameWidgetWithHistory


Inheritance:

   Object
   |
   +--GraphicsContext
      |
      +--DeviceGraphicsContext
         |
         +--GraphicsMedium
            |
            +--DisplaySurface
               |
               +--SimpleView
                  |
                  +--FilenameWidgetWithHistory

Package:
stx:libwidg2
Category:
Views-Interactors
Version:
rev: 1.13 date: 2009/05/20 07:17:51
user: cg
file: FilenameWidgetWithHistory.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Gittinger

Description:


A Filename InputField with history-list and a browse-button, which opens a file dialog.


Related information:

    ComboBoxView
    FilenameEditField
    FilenameComboBoxView

Instance protocol:

accessing
o  dialogTitle: something
set the dialogs title

o  directoriesOnly: aBoolean
if true, directories are selectable only.
If both filesOnly and directoriesOnly are false, which is the default,
anything is selectable.

o  filesOnly: aBoolean
if true, files are selectable only.
If both filesOnly and directoriesOnly are false, which is the default,
anything is selectable.

o  historyList

o  historyList: aList
set the history - useful when two or more such fields shall share a common history

o  initialDirectoryHolder
can be used to force the file-dialog into some initial directory

o  model

o  model: aFilenameHolder

accessing-channels
o  enableChannel: aValueHolder

accessing-editField attributes
o  acceptIfUnchanged: aBoolean

o  acceptOnLeave: aBoolean

o  acceptOnLostFocus: aBoolean

o  acceptOnPointerLeave: aBoolean

o  acceptOnReturn: aBoolean

o  acceptOnTab: aBoolean

o  contents: aString

o  immediateAccept: aBoolean

o  maxChars: aBoolean

o  readOnly: aBoolean

initialization
o  initialize

queries
o  preferredExtent
If I have an explicit preferredExtent..

user actions
o  browseForDestinationDirectory

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

o  browseForFileOrDirectory


Examples:



     |top b|

     top := StandardSystemView new.
     top extent:(300 @ 200).

     b := FilenameWidgetWithHistory in:top.
     b origin:(0.0 @ 0.0) corner:(1.0 @ 0.0).
     b bottomInset:(b preferredExtent y negated).

     top open.


ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 16:38:41 GMT