eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DirectoryContentsBrowser::DirectoryContentsItem':

Home

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

Class: DirectoryContentsItem (private in DirectoryContentsBrowser

This class is only visible from within DirectoryContentsBrowser.

Inheritance:

   Object
   |
   +--DirectoryContentsBrowser::DirectoryContentsItem

Package:
stx:libtool
Category:
Interface-Tools-File
Owner:
DirectoryContentsBrowser
Author:
cg

Description:


documentation to be added.


[instance variables:]

[class variables:]


Related information:



Class protocol:

instance creation
o  fileName: aFilename
^ nil

Usage example(s):

     DirectoryContentsItem fileName:'..'

o  forInfoItem: anItem


Instance protocol:

accessing
o  beRemoteDirectory

o  fileInfo: something

o  fileName

o  fileName: aFilename
set fileName

o  fileType
returns the type of the file

o  fileType: aType

o  icon
answer the icon displayed in the table widget; if the icon is unspecified,
and the fileInfo is set a default icon is returned otherwise nil

o  icon: anIcon

o  iconKey

o  iconOrNil
answer the icon or nil if unspecifed

o  isDirectory

o  isSymbolicLink

o  lastButOneSuffix
returns the suffix of the file

o  lastSuffix
returns the suffix of the file

o  linkTargetIsDirectory

o  mimeType

o  mimeType: aType

o  preview

o  preview: anImage

o  smoothPreview

o  smoothPreview: anImage

o  suffix
returns the suffix of the file

o  suffixes

o  type
returns the type of the file

actions
o  resetImageFile
if the image preview extent is changed the icon will be cleared
to force the update task to reload the image

o  resetItem
don't know what someone else is doing with the file - read all item properties new

change queries
o  hasBeenModified
check if item modification time has changed

comparing
o  = anItem
Transcript showCR:(anItem species == self species).

o  hash
(comment from inherited method)
return an Integer useful as a hash key for the receiver.
This hash should return same values for objects with same
contents (i.e. use this to hash on structure)

presentation
o  baseName
returns the baseName of the file

o  baseNameWithOutSuffix
returns the baseName of the file

o  date
returns the modTimeString

o  fileInfoString
get stat info on selected file - return a string which can be
shown in a box

o  fileSize
returns the fileSize

o  group
returns the printable group

o  inodeNumber
returns the inode number

o  modificationTime
returns the absolute time of modification

o  owner
returns the printable owner

o  permissions
returns the permissions as printable string

o  sizeInBytesString
leftPaddedTo:8.

o  sizeInKiloBytesString

o  sizeString
returns the size of the file

o  timeAndDate
returns the time- and date string

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.

private
o  getFileInfo
do not access, to avoid automount

queries
o  exists

o  hasMimeType

o  isRemoteDirectory

o  mimeTypeForContents
set mimeType to mimeType of contents if a better mimeType is found



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:23:40 GMT