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.89 date: 2023/07/15 18:36:33
user: cg
file: DSVLabelView.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

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

copyright

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

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
(comment from inherited method)
add a damage to redraw the receiver to its input event queue.
This is preferable to calling redraw directly, in that the drawing is done by
the view's process itself, and there is a possibilty to merge
multiple damage rectangles into single redraws.
However, be aware, that the redrawing may be delayed for some time,
until the receiver's windowGroupProcess gets rescheduled.

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
(comment from inherited method)
redraw part of myself immediately, given logical coordinates
(if transformation is nonNil)
The default here is to redraw everything
- subclasses usually redefine this, adding more intelligence

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
(comment from inherited method)
CTRL-wheel action.
ignored here - redefined in views which can zoom

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).

o  sortByColumnIndex: columnIndex
pre-set the column sort order.
Negative columnIndex means reverse sort.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 16:54:06 GMT