eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DataSetLabel':

Home

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

Class: DataSetLabel


Inheritance:

   Object
   |
   +--DataSetLabel

Package:
stx:libwidg2
Category:
Views-DataSet
Version:
rev: 1.43 date: 2019/08/17 09:51:54
user: cg
file: DataSetLabel.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Atzkern

Description:


This class keeps some info about a label.


Class protocol:

image specs
o  sortIndicator

o  sortIndicatorGrey

o  sortIndicatorIcon

o  sortReverseIndicator

o  sortReverseIndicatorGrey

o  sortReverseIndicatorIcon


Instance protocol:

accessing-color & font
o  backgroundColor
returns the background color or nil

o  backgroundColor: aColor
set the background color or nil

o  foregroundColor
returns the foreground color or nil

o  foregroundColor: aColor
set the foreground color or nil

accessing-dimensions
o  preferredHeight
returns my preferred height

o  preferredWidth
returns my preferred width

drawing
o  redrawX: xLeft w: width h: height inset: inset on: aLabelView
redraw the label; the background is cleared and the paint is set

instance creation
o  description: aDescription builder: aBuilder on: aGC
stupid code - could simply access things via the description.

o  font
answer my font or nil (default)

o  font: aFont
set my font or nil (default)

o  fontChangedOn: aGC
invoked after the font has changed

private
o  label: aLabel on: aDevice
returns registered label on a device

o  resolveLabelFromDescription: aDescription withBuilder: aBuilder
the rawLabel can be a string, icon, labelAndIcon or collection of strings.
if labelIsImage is true, the string is actually the appModel-labelFor-access key

queries
o  hasSeparator
^ (label at:1) ~= 'Alarm'

o  isSelectable
returns true if the item is selectable; a valid selector
to notify the receiver for a release button event exists

o  isSortable



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 17 Jan 2021 19:27:48 GMT