eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DropObject::File':

Home

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

Class: File (private in DropObject

This class is only visible from within DropObject.

Inheritance:

   Object
   |
   +--DropObject
      |
      +--DropObject::File
         |
         +--DropObject::FileInArchive

Package:
stx:libview2
Category:
Interface-DragAndDrop
Owner:
DropObject

Description:


I represent a file being dragged (from a file browser)


Class protocol:

defaults
o  displayObjectName
return the name of a bitmap image file, which is used
during a drag.


Instance protocol:

accessing
o  fetchFileInfo

o  theObject: aPathname
info := f info.

queries
o  asFilename

o  exists
returns true if the file or directory exists

o  isDirectory
checks whether file is a directory

o  isHtmlFile
checks whether file is an html file
usage example(s):
isHtmlFile := self exists 

o  isImageFile
returns true if file is an image file

o  isPrintable
return true if file contains only printable characters (in the first 300 bytes)

testing
o  isFileObject
return true, if the dropObject represents a file- or directory



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Mon, 04 Aug 2025 14:16:58 GMT