eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DSVLabelView':

Home

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

Class: DSVLabelView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--DSVLabelView

Package:
stx:libwidg2
Category:
Views-DataSet
Version:
rev: 1.86 date: 2019/08/11 01:40:49
user: cg
file: DSVLabelView.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Atzkern

Description:


shows the labels assigned to the column descriptions. 
Used as the title-part of a DataSetView.

[Instance variables:]

    dataSet         <DSVColumnView>         column view which shows the columns

    selection       <Integer or nil>        current selected index or nil.

    enabled         <Boolean>               if a press action exists on a column
                                            entry, this action could be enabled or
                                            disabled.

    preferredHeight <Integer>               the preferred height of the labelView


Related information:

    DSVColumnView
    DataSetColumnSpec
    DataSetColumn
    DataSetView

Class protocol:

accessing
o  tabSpacing
returns the tab spacing

defaults
o  defaultFont


Instance protocol:

accessing
o  columns: aListOfColumns
the list of columns changed

o  dataSet

o  indexOfSortColumn

o  opaqueColumnResize

o  opaqueColumnResize: aBoolean

o  reverseSort

drawing
o  invalidate

o  invalidateItemAt: anIndex
invalidate rectangle assigned to an item at an index

o  redrawColumnsInX: x y: y width: w height: h
redraw a rectangle

o  redrawEdgesX: x y: yTop width: aWidth height: aHeight
redraw the edges in the range

o  redrawX: xArg y: y width: wArg height: h

enumerating columns
o  columnsDo: aOneArgBlock
evaluate the argument, aOneArgBlock for every column

event handling
o  buttonMotion: state x: x y: y
mouse-button was moved;
redraw thumb at its new position and, if scroll-mode is asynchronous,
the scroll action is performed

o  buttonPress: button x: x y: y
handle a button press event; checks whether the item under the mouse
is selectable. If true, the selection is set to the item.

o  buttonRelease: button x: x y: y
handle a button press event; checks whether the item under the mouse
is the selected item. If true, the application is informed.

o  fontChanged
invoked after the font has changed

o  mouseWheelZoom: amount

o  pointerLeave: state
mouse left view - restore cursor.

o  sendClickMsgForColumnNr: colNr
inform the receiver of a button release notification

o  xVisibleToColNr: x
returns the column number for a physical x position.
Returns nil if x is beyond the last column.

focus handling
o  canTab

o  wantsFocusWithButtonPress
never wants the focus - view which keeps the labels

help
o  helpTextAt: aPoint
return the helpText for aPoint (i.e. when mouse-pointer is moved over an item).

initialization
o  initStyle
self level:0.

o  initialize
super level:(self defaultLevel).

instance creation
o  for: aColumnView
initialization

o  realize
recompute contents and fit columns to view

queries
o  columnIndexOfDescription: aColumnDescription

o  computePreferredExtent
(comment from inherited method)
return my computed preferred extent - this is the minimum size I would like to have.
If there are any components, a rectangle enclosing them
is returned. Otherwise, the actual extent is returned.

o  enabled
true, if widget is enabled

o  enabled: aBoolean
true, if widget is enabled

o  indexOfLabel: aLabel

o  preferredHeight

o  xVisibleOfColNr: colNr
must adjust, because dataset includes its own margin, which might be different from ours

o  xVisibleToSelectionIndex: x
returns the column number assigned to a physical x or nil. If
the column exists but is not selectable nil is returned.

scrolling
o  copyFromX: x0 y: y0 toX: x1 y: y1 width: w invalidateX: leftX


Private classes:

    LineDrag


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 14:19:02 GMT