eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DirectoryTreeBrowser':

Home

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

Class: DirectoryTreeBrowser


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--ApplicationWithFileHistory
            |
            +--AbstractFileBrowser
               |
               +--AbstractDirectoryBrowser
                  |
                  +--DirectoryTreeBrowser

Package:
stx:libtool
Category:
Interface-Tools-File
Version:
rev: 1.155 date: 2023/08/02 14:17:05
user: stefan
file: DirectoryTreeBrowser.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


An application for displaying directories as a tree.
To be used as a building block in file browsers and fileSelection dialogs.
This is used as the top-left component in the new fileBrowser.

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.

Class protocol:

defaults
o  timeForExpandOnDropInMilliseconds

instance creation
o  openOn: aFileName
DirectoryTreeBrowser openOn:Filename homeDirectory
DirectoryTreeBrowser openOn:(Filename homeDirectory construct:'.bashrc')

o  openOn: aFileName withFiles: aBoolean
DirectoryTreeBrowser openOn:Filename homeDirectory
DirectoryTreeBrowser openOn:(Filename homeDirectory construct:'.bashrc') withFiles:false

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:DirectoryTreeBrowser andSelector:#windowSpec
     DirectoryTreeBrowser new openInterface:#windowSpec
     DirectoryTreeBrowser open

menu specs
o  menu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:DirectoryTreeBrowser andSelector:#menu
     (Menu new fromLiteralArrayEncoding:(DirectoryTreeBrowser menu)) startUp

o  sortInTreeMenu
This resource specification was automatically generated
by the MenuEditor of ST/X.

Usage example(s):

     MenuEditor new openOnClass:DirectoryTreeBrowser andSelector:#sortInTreeMenu
     (Menu new fromLiteralArrayEncoding:(DirectoryTreeBrowser sortInTreeMenu)) startUp

plugIn spec
o  aspectSelectors
This resource specification was automatically generated
by the UIPainter of ST/X.


Instance protocol:

accessing
o  allowRenameOnOneClick

o  browser
return the value of the instance variable 'browser' (automatically generated)

o  directory

o  doubleClickAction

o  doubleClickAction: aBlock
aBlock is a one arg block with selected index as argument

o  updateTreeSelection

actions
o  doDoubleClick: anIndex
handle a doubleClick on a directory

o  doExpand: anItem
expand the item; return true the item have expanded

o  doIndicatorClick: anIndex
handle a click on the indicator

o  doSetSelectionToRoot

o  doUpdate
DirectoryContents flushCache.

o  evaluateSortBlockWith: aBlock

o  expandEnforceSelectedItems
expand the selected item if one directory selected

o  expandSelectedItems
expand the selected item(s) if any directory selected

o  moveFileInTreeView
self halt.

o  renameFileInTreeView
Modified (format): / 12-12-2021 / 09:48:41 / cg

o  renameToIncludeDirectoryInNameInTreeView

o  setMatchBlockInList: list

o  sortFileListsBy: instanceName

o  toggleExpand: anItem
self withWaitCursorDo:[

o  toggleExpandSelectedItem

o  updateSelectedItem

aspects
o  allowFileOperations
allowFileOperations

o  fileList
holder, which keeps the current list of file entries shown by the directory-browser

o  multipleSelect

o  multipleSelect: aBoolean

o  newVisibilityHolder
newVisibilityHolder

o  sortCaseless
aspect for sort caseless

o  sortCaseless: aValueHolder

o  sortCaselessInTreeBrowser
only for backward compat.
We do not need two such flags

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

o  sortInTreeVisibilityHolder
newVisibilityHolder

o  sortPropertyInTree

o  sortPropertyInTree: aValueHolder

o  treeSelectionHolder

o  treeSelectionHolder: aValueHolder

change & update
o  changeMatchBlock

o  currentFileNameHolderChanged
(comment from inherited method)
self currentFileNameHolderChangedForCommon

o  rootHolderChanged
self withWaitCursorDo:[

o  selectionChanged
if viewFiles is false i can't take my
selection to overwrite currentFileNameHolder

o  update: something with: aParameter from: aModel
one of my models changed

drag & drop
o  dropDestinationPath

o  dropOver: aDropContext
called during drag & drop while moving over the widget.

o  dropTargetItemChangedTo: anItem in: aDropContext

o  expandForDrop: item with: aDropContext

o  getDisplayObjects: anArgument
Modified (format): / 20-06-2017 / 08:17:36 / cg

o  removeExpandItemTimedBlock
(comment from inherited method)
left blank

o  setupAutoExpandItemTimedBlock: aBlock

event handling
o  processEvent: anEvent
filter keyboard events.
Return true, if I have eaten the event

initialization
o  initialize

queries
o  hasOpenEditor

o  masterIsFileBrowser

o  selectedFilesIncludesNonRootDirectory
|directories|

selection
o  firstSelectedDirectory

o  rootSelected

o  selectFiles: aColOfFileOrDirectory
selects a file; if the file is not included in my
root directory, the root will be changed

o  selectItems: aColOfItems
aColOfItems do:[:anItem| anItem isDirectory ifTrue:[ anItem expand ]].

o  selectNextFile

o  selectPreviousFile

o  selectedDirectories

o  selectedDirectoryItems

o  selectedFilenameDirectories

o  selectedItems
Wrap single value into Array

startup & release
o  delayedPostOpenFromMaster: fromMaster

o  makeDependent

o  openEditorAction

o  openEditorIn: aGC forLine: ln
self withWaitCursorDo:[

o  postBuildDirBrowser: aWidget
browser hasConstantHeight:true.

o  postOpenFromMaster: fromMaster

o  release
(comment from inherited method)
remove all references to objects that may refer to self.
Subclasses may redefine this method but should do a 'super release'.


Private classes:

    DirTreeBrowserHFL

Examples:


    DirectoryTreeBrowser open


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 18:06:44 GMT