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.18 date: 2017/12/22 15:38:45
user: cg
file: ResourceRetriever.st directory: libview2
module: stx stc-classLibrary: libview2
Author:
Claus Atzkern

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.


Related information:

    Application
    Menu
    MenuItem

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 false if resource is not defined



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Mar 2024 10:08:46 GMT