eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DSVLabelView':

Home

everywhere
www.exept.de
for:
[back]

Class: DSVLabelView


Inheritance:

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

Package:
stx:libwidg2
Category:
Views-DataSet
Version:
rev: 1.69 date: 2009/10/19 12:20:23
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: x 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  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 behond the last column.

focus handling
o  canTab

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

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

initialization
o  initStyle

o  initialize

instance creation
o  for: aColumnView
initialization

o  realize
recompute contents and fit columns to view

queries
o  columnIndexOfDescription: aColumnDescription

o  enabled
true, if widget is enabled

o  enabled: aState
true, if widget is enabled

o  indexOfLabel: aLabel

o  preferredExtent
If I have an explicit preferredExtent..

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 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 15:50:08 GMT