|
Class: ResourceRetriever
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
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.
Application
Menu
MenuItem
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 false if resource is not defined
|