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:

image specs
o  displayImage
This resource specification was automatically generated
by the ImageEditor of ST/X.

Usage example(s):

     self displayImage inspect
     ImageEditor openOnClass:self andSelector:#displayImage
     Icon flushCachedIcons


Instance protocol:

accessing
o  fetchFileInfo

o  theObject: aPathname
info := f info.

printing
o  printOn: aStream
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.

The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.

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)

o  isRegularFile
checks whether file is a directory

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



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 02:46:50 GMT