eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ToggleSpec':

Home

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

Class: ToggleSpec


Inheritance:

   Object
   |
   +--UISpecification
      |
      +--ComponentSpec
         |
         +--ViewWithLabelSpec
            |
            +--ViewWithLabelAndModelSpec
               |
               +--ActionButtonSpec
                  |
                  +--ToggleSpec
                     |
                     +--CheckToggleSpec
                     |
                     +--RadioButtonSpec

Package:
stx:libui
Category:
Interface-Support-UI-Specs
Version:
rev: 1.83 date: 2017/11/28 18:21:28
user: cg
file: ToggleSpec.st directory: libui
module: stx stc-classLibrary: libui
Author:
Claus Atzkern

Description:


Not normally used by applications.


Related information:

    UIBuilder
    UIPainter

Class protocol:

image specs
o  icon
This resource specification was automatically generated
by the ImageEditor of ST/X.

usage example(s):

     ImageEditor openOnClass:self andSelector:#icon

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

usage example(s):

     UIPainter new openOnClass:ToggleSpec andSelector:#basicsEditSpec

o  channelsEditSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

usage example(s):

     UIPainter new openOnClass:ToggleSpec andSelector:#channelsEditSpec

o  colorSubSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

usage example(s):

     UIPainter new openOnClass:ToggleSpec andSelector:#colorSubSpec

o  detailsEditSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

usage example(s):

     UIPainter new openOnClass:ToggleSpec andSelector:#detailsEditSpec

interface-painter
o  addBindingsTo: env for: inst channel: aChannel
add bindings as required to allow the GUI Painter to operate on an instance of me

o  slices
return the slices for the attribute sections in the GUI Painter


Instance protocol:

accessing
o  lampWidth

o  lampWidth: something

o  onCallBackSelector

o  onCallBackSelector: something

o  showLamp

o  showLamp: something

accessing-color & font
o  lampColor

o  lampColor: something

building
o  setAttributesIn: aView with: aBuilder
set my attributes to aView

o  setModelAttributeIn: aView with: aBuilder
set my model attributes to aView (or its model)

converting
o  fromLiteralArrayEncoding: aSpecArray
read my attributes from aSpecArray

o  skippedInLiteralEncoding
define the inst-slots which are skipped when generating a literalArrayEncoding;
(to skip the ones with default values.)

parsing a view
o  fromView: aView callBack: aBlock
extract attributes from aView

queries
o  userFriendlyName
answer a good noticeable name of the widget for the GUI Painter and the documentation

queries-UIDefiner
o  actionSelectors
add more action selectors (these generate callBack stub methods in the definer)

o  defaultModelIsCallBackMethodSelector: someAspect
used by the UIPainters aspectGenerator;
Return true if the aspect specifies an action method
(or callBack) as opposed to a real model value.

o  defaultModelValueFor: someAspect
used by the UIDefiner - return the aspects default value

visiting
o  acceptUISpecVisitor: aVisitor
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 18 Apr 2024 15:35:57 GMT