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
DirectoryContentsItem fileName:'..'

o  forInfoItem: anItem


Instance protocol:

accessing
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  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

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

private
o  getFileInfo
do not access, to avoid automount

queries
o  beRemoteDirectory

o  exists

o  hasMimeType

o  isRemoteDirectory

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



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 26 Nov 2022 09:09:32 GMT