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.46 date: 2022/03/05 09:52:32
user: cg
file: DataSetLabel.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

Description:


This class keeps some info about a label.

copyright

COPYRIGHT (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.

Class protocol:

image specs
o  sortIndicator

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

o  sortIndicatorGrey

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

o  sortIndicatorIcon

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

o  sortReverseIndicator

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

o  sortReverseIndicatorGrey

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

o  sortReverseIndicatorIcon

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


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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:20:10 GMT