eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'FileDialogWithPreview':

Home

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

Class: FileDialogWithPreview


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--SimpleDialog
            |
            +--FileDialog
               |
               +--FileDialogWithPreview

Package:
stx:libtool
Category:
Interface-Tools-File
Version:
rev: 1.20 date: 2024/02/14 18:42:44
user: stefan
file: FileDialogWithPreview.st directory: libtool
module: stx stc-classLibrary: libtool

Description:


a FileDialog with (image) preview.

It knows a number of default file types to generate a preview
(which is typically a bitmap image, but may also be text).

For your convenience, it is also pluggable so users of this dialog can
define a previewGenerator, which gets the fileName and can provide an image or text.

Typically to show the author, revision info etc. of the selected file.

copyright

COPYRIGHT (c) 2011 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

Usage example(s):

     UIPainter new openOnClass:FileDialogWithPreview andSelector:#windowSpec
     FileDialogWithPreview new openInterface:#windowSpec
     FileDialogWithPreview open

plugIn spec
o  aspectSelectors
This resource specification was automatically generated
by the UIPainter of ST/X.


Instance protocol:

accessing
o  previewExtractAction: aBlock
if set, this will be asked for the preview;
should return either a string or an image.
Allows for pluggable preview if the dialog-user knows more...

actions
o  playAudio: aFilename

aspects
o  imageViewVisibleHolder

o  noPreviewTextHolder

o  noPreviewVisibleHolder

o  otherPreviewApp
currently unused

o  otherPreviewVisibleHolder

o  previewTextHolder

o  previewVisibleHolder

o  textViewVisibleHolder

change & update
o  fileSelectionChanged
(comment from inherited method)
the name in the entry field

o  showPreviewImage: anImage

o  showPreviewText: someText

o  updateFileInfoOrPreview

initialization
o  commonPostOpen
(comment from inherited method)
self windowGroup addPreEventHook:self.

o  initialize
(comment from inherited method)
false

o  postBuildImageView: aView

o  postBuildTextView: aView



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:26:15 GMT