eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FilenameEditFieldV2':

Home

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

Class: FilenameEditFieldV2


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--ComboView
                  |
                  +--ComboBoxView
                     |
                     +--FilenameEditFieldV2

Package:
stx:libtool
Category:
Interface-Tools-File
Version:
rev: 1.17 date: 2018/04/18 10:17:10
user: stefan
file: FilenameEditFieldV2.st directory: libtool
module: stx stc-classLibrary: libtool
Author:
Claus Gittinger

Description:


like a normal editField, but does filename-completion on the last word of
the contents, when TAB is pressed.
Filename completion ignores regular files if directoriesOnly is true,
and ignores directories, if filesOnly is true. Both default to false.


Instance protocol:

accessing
o  acceptOnExpand
return the autoAccept on filename expansion flag.
The default is true, which means that an expand accepts

o  acceptOnExpand: aBoolean
set/clear autoAccept on filename expansion.
The default is true, which means that an expand accepts

o  contents: someText
redefined to add a trailing file-separator if the displayed
filename is a directory

o  contents: someText addSeparatorToDirectories: doAddSeparator
optionally add a trailing file-separator if the displayed
filename is a directory.

o  directoriesOnly
set to expand names for directories only

o  directory

o  directory: aFilename

o  filesOnly
set to expand names for files only

o  initialText: aString selected: aBoolean
redefined to move the cursor to the end
- that's the most interesting part of a filename

o  showsDirectoriesOnly
return if expanding names for directories only

o  showsFilesOnly
return if expanding names for files only

initialization
o  initialize
self menuButton visibilityChannel:(false asValue).

o  realize
redefined to move the cursor to the end
- that's the most interesting part of a filename

menu
o  processEvent: anEvent
catch keyEvents in pulled menu (see redefined pullMenu-method).
Return true, if I have eaten the event

o  pullMenu
pull the menu - triggered from the button



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 05 Apr 2020 13:54:19 GMT