|
Class: TableRenderer (private in ListModelView
This class is only visible from within
ListModelView.
Object
|
+--ListModelView::Renderer
|
+--ListModelView::TableRenderer
- Package:
- stx:libwidg2
- Category:
- Views-Lists
- Owner:
- ListModelView
defaults
-
dragCursor
-
returns the cursor used to highliggt the drag can start operation
-
separatorOneDColor
-
answer the color used for drawing separators
accessing
-
columnDescriptors: aSeqOfColumnSpecs
-
setup column descriptions for a sequence of DataSetColumnSpec's but still keep
the receiver which provides the selectors called by the DataSetColumnSpec.
If the receiver is nil, the item into the list is invoked
-
columnDescriptors: aSeqOfColumnSpecs receiver: aReceiver
-
setup column descriptions for a sequence of DataSetColumnSpec's and the
receiver which provides the selectors called by the DataSetColumnSpec.
If the receiver is nil, the item into the list is invoked
-
numberOfColumns
-
answer the numbers of columns excluding the items row
-
xSplitbars
-
accessing-look
-
defaultWidthForItem
-
answer the default witdth of the item before the first column
-
defaultWidthForItem: anIntegerOrFloat
-
Set the default witdth of the item before the first column.
If `anIntegerOrFloat` is
- an integer then the width is absolute width in pixels
- a float in <0.0, 1,1> then the width is percentage
of view's width
-
defaultWidthForItemInPixels
-
Answer the default witdth of the item before the first column in pixels
-
noAutoResizeForRowOfItems
-
the first row which keeps the items are not automatically resized
when width of items changed
-
separatorOneDColor
-
answer the color used for drawing separators
-
showHorizontalSeparators
-
answer true if horizontal separators are drawn
-
showHorizontalSeparators: aBoolean
-
set true if horizontal separators are drawn
-
showHorizontalSeparatorsForItem
-
answer true if horizontal separators is drawn for the item row
-
showHorizontalSeparatorsForItem: aBoolean
-
set true if horizontal separators is drawn for the item row
-
showItemInAdditionToColumns
-
Return, whether the item itseld should be shown in addition to
columns (default)
-
showItemInAdditionToColumns: aBoolean
-
If set to troe, the implicit forst column is shown (old behaviour).
When false, only column are shown
-
showVerticalSplitbars
-
answer true if vertical separators are drawn
-
showVerticalSplitbars: aBoolean
-
set true if vertical separators are drawn
-
showVerticalSplitbarsBelowContents
-
answer true if the vertical separators are drawn below last row
-
showVerticalSplitbarsBelowContents: aBoolean
-
set true if the vertical separators are drawn below last row
-
splitbarInset
-
returns the horizontal left and right inset of the splitbar
-
textStartLeft
-
used when drawing the last separator;
workaround when drawing the selection frame
actions
-
moveSplitbarAt: aSepIndex toAbsoluteX: x
-
move the position of the separator at an index to absolute position x;
used to drag splitbars
change & update
-
sizeChanged: how
-
(comment from inherited method)
Called when size of the corresponding view has changed.
-
sizeChangedDelayed: how
-
-
splitbarsChanged
-
called if the splitbars has changed; recompute the width of contents
-
withinUpdateFromListDo: aBlock
-
handle an change & update within the view
displaying
-
drawColumnsFrom: start to: stop x: xDmg y: yStart w: wDmg
-
draw columns from start to stop.
if the start/stop index is nil, than no row is affected by the damage.
-
drawHorizontalSeparatorsX: x y: y w: w from: start to: stop
-
draw horizontal seperators from start to stop.
if the start/stop index is nil, than no row is affected by the damage.
-
drawVerticalSplitbarsX: x0 y: y0 w: w from: start to: stop
-
draw vertical splitbars
-
postRedrawX: x y: y w: w from: start to: stop
-
draw columns and than the splitbars
-
validateDrawableItemsFrom: start to: stop
-
called before drawing the items in range from start to stop; the
renderer can perform some tests whether the draw operation might
fail; width, ... might change during draw.
If a test failed, the renderer should repair the failed test and
return false. In this case a full redraw is done.
By default, true is returned.
enumerating
-
columnDescriptorsDo: aOneArgBlock
-
-
columnDescriptorsKeysAndValuesDo: aTwoArgBlock
-
-
xSplitbarsDo: aOneArgblock
-
evaluate a block on each x splitbar position
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
xSplitbarsKeysAndValuesDo: aTwoArgblock
-
evaluate a block on each x splitbar index and position
** This is an obsolete interface - do not use it (it may vanish in future versions) **
event processing
-
addEventHook
-
add event hook to window group
-
processEvent: ev
-
Process a window event.
Only handled if drag splitbar is enabled.
Answer true if the event has been processed, false if it must still be processed.
TODO: sorting not yet implemented!
-
removeEventHook
-
release my event hook
initialization
-
initializeSplitbars
-
instance creation
-
forView: aView
-
setup instance for a view;
setup my default columnDescription
-
mapped
-
install event hook and enable motion events
-
release
-
release event hook
private
-
computeColumnWidthsWithXOffset: xoffset
-
splitbar width
private accessing
-
columnAlignmentAt: aColNr
-
-
defaultColumnWidthAt: aColIndex
-
-
showVerticalSplitbarAt: aColIndex
-
queries-behavior
-
isDragEnabled
-
answer true if drag of separators is enabled
-
isDragEnabled: aBoolean
-
answer true if drag of separators is enabled
queries-dimensions
-
boundingBoxForCellAtXAbsolute: x yAbsolute: y
-
- xTrs
-
boundingBoxForCellAtXVisible: x yVisible: y
-
-
heightFor: anItem
-
returns the height of an item on the view
-
maxItemWidthOrNil
-
returns the maximum item width for drawing; the
offset to the first splitbar minus an inset.
-
widthFor: anItem
-
returns the width of an item on the view including the columns
but extracting the hierarchical tree inset.
-
widthOfColumn: aColumn
-
answer the width of a column or nil
-
widthOfItemColumn
-
answer the current width of the column which holds the hierarchical
item label.
-
widthOfWidestLineBetween: firstLine and: lastLine
-
returns the width of the longest line in pixels in a range
- used to optimize scrolling, by limiting the scrolled area;
not for scrollbar or other width related stuff which should be exact.
-
xAbsoluteOfSplitbarAt: anIndex
-
returns the physical x of the splitbar at an index
-
xAbsoluteToColumnIndex: absX
-
returns the column index for position x or 0 if not detected
-
xAbsoluteToSplitbar: absX
-
returns the splitbar index at the position x or 0 if not detected
-
xVisibleOfLastSplitbar
-
answer the visible x position of the last splitBar
-
xVisibleOfSplitbarAt: anIndex
-
returns the visible x of the splitbar at an index
-
xVisibleToColumnIndex: relX
-
returns the column index for visible position x or 0 if not detected
-
xVisibleToSplitbar: visX
-
returns the splitbar index at the position x or 0 if not detected
ColumnDescriptor
|