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
         |
         +--AbstractFileBrowser
            |
            +--AbstractDirectoryBrowser
               |
               +--DirectoryTreeBrowser

Package:
stx:libtool
Category:
Interface-Tools-File
Version:
rev: 1.134 date: 2017/11/30 13:51:26
user: cg
file: DirectoryTreeBrowser.st directory: libtool
module: stx stc-classLibrary: libtool
Author:
Christian Penk (penk@bierfix)

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.


Related information:

    FileBrowserV2

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  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 if one directory selected

o  renameFileInTreeView

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  sortCaselessInTreeBrowser

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

o  setupAutoExpandItemTimedBlock: aBlock

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

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  makeDependent

o  openEditorAction

o  openEditorIn: aGC forLine: ln
self withWaitCursorDo:[

o  postBuildDirBrowser: aWidget
browser hasConstantHeight:true.

o  postOpenFromMaster: fromMaster
self windowGroup application class == FileBrowserV2 ifTrue:[

o  release


Private classes:

    DirTreeBrowserHFL

Examples:


    DirectoryTreeBrowser open


ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sun, 22 Jul 2018 03:17:54 GMT