|
Class: DSVLabelView
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
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
DSVColumnView
DataSetColumnSpec
DataSetColumn
DataSetView
accessing
-
tabSpacing
-
returns the tab spacing
defaults
-
defaultFont
-
accessing
-
columns: aListOfColumns
-
the list of columns changed
-
dataSet
-
-
indexOfSortColumn
-
-
opaqueColumnResize
-
-
opaqueColumnResize: aBoolean
-
-
reverseSort
-
drawing
-
invalidate
-
-
invalidateItemAt: anIndex
-
invalidate rectangle assigned to an item at an index
-
redrawColumnsInX: x y: y width: w height: h
-
redraw a rectangle
-
redrawEdgesX: x y: yTop width: aWidth height: aHeight
-
redraw the edges in the range
-
redrawX: xArg y: y width: wArg height: h
-
enumerating columns
-
columnsDo: aOneArgBlock
-
evaluate the argument, aOneArgBlock for every column
event handling
-
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
-
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.
-
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.
-
fontChanged
-
invoked after the font has changed
-
mouseWheelZoom: amount
-
-
pointerLeave: state
-
mouse left view - restore cursor.
-
sendClickMsgForColumnNr: colNr
-
inform the receiver of a button release notification
-
xVisibleToColNr: x
-
returns the column number for a physical x position.
Returns nil if x is beyond the last column.
focus handling
-
canTab
-
-
wantsFocusWithButtonPress
-
never wants the focus - view which keeps the labels
help
-
helpTextAt: aPoint
-
return the helpText for aPoint (i.e. when mouse-pointer is moved over an item).
initialization
-
initStyle
-
self level:0.
-
initialize
-
super level:(self defaultLevel).
instance creation
-
for: aColumnView
-
initialization
-
realize
-
recompute contents and fit columns to view
queries
-
columnIndexOfDescription: aColumnDescription
-
-
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.
-
enabled
-
true, if widget is enabled
-
enabled: aBoolean
-
true, if widget is enabled
-
indexOfLabel: aLabel
-
-
preferredHeight
-
-
xVisibleOfColNr: colNr
-
must adjust, because dataset includes its own margin, which might be different from ours
-
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
-
copyFromX: x0 y: y0 toX: x1 y: y1 width: w invalidateX: leftX
-
LineDrag
|