|
Class: ResourceRetriever
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
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.
copyrightCOPYRIGHT (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.
accessing-resources
-
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
-
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
-
labelResources
-
if not already loaded, get the common label resourcePack and return it
instance creation
-
icon: anIcon
-
-
icon: anIcon string: aLabelOrNil
-
accessing
-
className
-
return the value of the instance variable 'className' (automatically generated)
-
className: something
-
set the class which provides the resources
-
icon: anIcon string: aLabelOrNil
-
-
labelText
-
-
labelText: aText
-
-
selector
-
return the value of the instance variable 'selector' (automatically generated)
-
selector: something
-
set the value of the instance variable 'selector' (automatically generated)
-
value
-
returns the value assigned to resource or nil
accessing-resource
-
findGuiResourcesIn: aResourceContainer
-
setup the resource owner
-
resource
-
returns a form assigned to resource or nil
converting
-
fromLiteralArrayEncoding: anArray
-
read my values from an encoding.
-
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
-
isDefined
-
returns true if resource exists
-
notDefined
-
returns true if resource is not defined
|