eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ViewWithLabelSpec':

Home

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

Class: ViewWithLabelSpec


Inheritance:

   Object
   |
   +--UISpecification
      |
      +--ComponentSpec
         |
         +--ViewWithLabelSpec
            |
            +--LabelSpec
            |
            +--ViewWithLabelAndModelSpec

Package:
stx:libui
Category:
Interface-Support-UI-Specs
Version:
rev: 1.115 date: 2022/11/11 12:30:31
user: cg
file: ViewWithLabelSpec.st directory: libui
module: stx stc-classLibrary: libui

Description:


Not normally used by applications.

special channel:
    enableDisableColor      this is an optional boolean channel, which can be 
                            connected to another view's enable channel.
                            If will change the label's foreground color to the
                            buttonDisabledColor / buttonEnabledColor respectively.
                            Use this if labels/framedBoxes etc. are to change their 
                            color under the control of an enable channel.

copyright

COPYRIGHT (c) 1995 by Claus Gittinger 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:

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

Usage example(s):

     UIPainter new openOnClass:ViewWithLabelSpec andSelector:#basicsEditSpec

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

queries
o  supportsLabel
answer whether corresponding view instances of the spec class can have labels


Instance protocol:

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

o  adjust: aSymbolOrString
set the value of the instance variable 'adjust' (automatically generated)

o  alignment

o  alignment: aSymbol

o  defaultAdjust

o  formatString

o  formatString: aString

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

o  hasCharacterOrientedLabel: aBoolean
set the value of the instance variable 'hasCharacterOrientedLabel' (automatically generated)

o  hasImageOrientedLabel

o  hasImageOrientedLabel: aBoolean

o  label
return the label

o  label: aString
set the label

o  multiLineLabel
specifies if the label string has '\' to be xlated to return

o  multiLineLabel: aBoolean
specifies if the label string has '\' to be xlated to return

o  resizeForLabel
if true, the label shalt adjust its size to fit the label;
changed to have individidual control over horizontal and vertical resizing

** This is an obsolete interface - do not use it (it may vanish in future versions) **

o  resizeForLabel: aBoolean
if true, the label shalt adjust its size to fit the label

o  resizeForLabelHorizontal
if true, the label shalt adjust its size to fit the label horizontally

o  resizeForLabelHorizontal: aBoolean
if true, the label shalt adjust its size to fit the label horizontally

o  resizeForLabelVertical
if true, the label shalt adjust its size to fit the label vertically

o  resizeForLabelVertical: aBoolean
if true, the label shalt adjust its size to fit the label vertically

o  setLabel: aLabelString
ST-80 compatibility

o  translateLabel
return the value of the instance variable 'translateLabel'

o  translateLabel: aBoolean
set/clear the flag which controls if the label is translated to a national language
via the application's resources

accessing-channels
o  enableDisableColorChannel

o  enableDisableColorChannel: aspectSelector

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

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

accessing-color & font
o  backgroundColor
return backgroundColor

o  backgroundColor: something
set backgroundColor

o  foregroundColor
return foregroundColor

o  foregroundColor: something
set foregroundColor

building
o  aspectSelectors
add more aspect selectors (these generate aspect methods in the definer)

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

o  setChannelsIn: aView with: aBuilder
set channels in aView

o  setColorAttributesIn: v with: aBuilder

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  labelSelector

queries-UIDefiner
o  defaultModelValueFor: someAspect
used by the UIDefiner - return the aspect's default value



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 23 Nov 2024 20:14:47 GMT