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.22 date: 2023/11/21 13:55:14
user: cg
file: FilenameEditFieldV2.st directory: libtool
module: stx stc-classLibrary: libtool

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.

copyright

COPYRIGHT (c) 2002 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.

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  pullMenu
pull the menu - triggered from the button

user actions
o  performEntryCompletionForContents: contents

o  processEvent: anEvent
catch keyEvents in pulled menu (see redefined pullMenu-method).
Return true, if I have eaten the event.
Warning: this is invoked synchronously directly from the display's eventloop



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:53:58 GMT