|
Class: DirectoryContentsItem (private in DirectoryContentsBrowser
This class is only visible from within
DirectoryContentsBrowser.
Object
|
+--DirectoryContentsBrowser::DirectoryContentsItem
- Package:
- stx:libtool
- Category:
- Interface-Tools-File
- Owner:
- DirectoryContentsBrowser
- Author:
- cg
documentation to be added.
[instance variables:]
[class variables:]
instance creation
-
fileName: aFilename
-
^ nil
Usage example(s):
DirectoryContentsItem fileName:'..'
|
-
forInfoItem: anItem
-
accessing
-
beRemoteDirectory
-
-
fileInfo: something
-
-
fileName
-
-
fileName: aFilename
-
set fileName
-
fileType
-
returns the type of the file
-
fileType: aType
-
-
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
-
icon: anIcon
-
-
iconKey
-
-
iconOrNil
-
answer the icon or nil if unspecifed
-
isDirectory
-
-
isSymbolicLink
-
-
lastButOneSuffix
-
returns the suffix of the file
-
lastSuffix
-
returns the suffix of the file
-
linkTargetIsDirectory
-
-
mimeType
-
-
mimeType: aType
-
-
preview
-
-
preview: anImage
-
-
smoothPreview
-
-
smoothPreview: anImage
-
-
suffix
-
returns the suffix of the file
-
suffixes
-
-
type
-
returns the type of the file
actions
-
resetImageFile
-
if the image preview extent is changed the icon will be cleared
to force the update task to reload the image
-
resetItem
-
don't know what someone else is doing with the file - read all item properties new
change queries
-
hasBeenModified
-
check if item modification time has changed
comparing
-
= anItem
-
Transcript showCR:(anItem species == self species).
-
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
-
baseName
-
returns the baseName of the file
-
baseNameWithOutSuffix
-
returns the baseName of the file
-
date
-
returns the modTimeString
-
fileInfoString
-
get stat info on selected file - return a string which can be
shown in a box
-
fileSize
-
returns the fileSize
-
group
-
returns the printable group
-
inodeNumber
-
returns the inode number
-
modificationTime
-
returns the absolute time of modification
-
owner
-
returns the printable owner
-
permissions
-
returns the permissions as printable string
-
sizeInBytesString
-
leftPaddedTo:8.
-
sizeInKiloBytesString
-
-
sizeString
-
returns the size of the file
-
timeAndDate
-
returns the time- and date string
printing
-
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
-
getFileInfo
-
do not access, to avoid automount
queries
-
exists
-
-
hasMimeType
-
-
isRemoteDirectory
-
-
mimeTypeForContents
-
set mimeType to mimeType of contents if a better mimeType is found
|