eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ResourceRetriever':

Home

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

Class: ResourceRetriever


Inheritance:

   Object
   |
   +--ResourceRetriever

Package:
stx:libview2
Category:
Interface-Support-UI
Version:
rev: 1.22 date: 2023/11/16 14:47:33
user: stefan
file: ResourceRetriever.st directory: libview2
module: stx stc-classLibrary: libview2

Description:


ST80 compatibility class.

The class is not completed yet and certainly not bug free.
Also, it is not guaranteed that all winSpecs are understood.

Notice: 
    this class was implemented using protocol information
    from alpha testers, literature and by reading public domain code
    - it may not be complete or compatible to
    the corresponding ST-80 class. 
    If you encounter any incompatibilities, please forward a note 
    describing the incompatibility verbal (i.e. no code) to the ST/X team.

copyright

COPYRIGHT (c) 1997 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:

accessing-resources
o  findResourceLabel: label in: aResourceOwner
look for a string
in aResourceOwner,
in class of aResourceOwner,
in resources of class of aResourceOwner,
and finally in my label resources

o  findResourceLabel: label in: aResourceOwner rememberResourcesIn: aValueHolderOrNil
look for a string
in aResourceOwner,
in class of aResourceOwner,
in resources of class of aResourceOwner,
and finally in my label resources

o  labelResources
if not already loaded, get the common label resourcePack and return it

instance creation
o  icon: anIcon

o  icon: anIcon string: aLabelOrNil


Instance protocol:

accessing
o  className
return the value of the instance variable 'className' (automatically generated)

o  className: something
set the class which provides the resources

o  icon: anIcon string: aLabelOrNil

o  labelText

o  labelText: aText

o  selector
return the value of the instance variable 'selector' (automatically generated)

o  selector: something
set the value of the instance variable 'selector' (automatically generated)

o  value
returns the value assigned to resource or nil

accessing-resource
o  findGuiResourcesIn: aResourceContainer
setup the resource owner

o  resource
returns a form assigned to resource or nil

converting
o  fromLiteralArrayEncoding: anArray
read my values from an encoding.

o  literalArrayEncoding
encode myself as an array, from which a copy of the receiver can be
reconstructed with #decodeAsLiteralArray.

The encoding is:
(#ResourceRetriever className selector)

or if labelText not nil:
(#ResourceRetriever className selector labelText)

testing
o  isDefined
returns true if resource exists

o  notDefined
returns true if resource is not defined



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 03:38:42 GMT