eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SyncedMultiColumnTextView':

Home

everywhere
www.exept.de
for:
[back]

Class: SyncedMultiColumnTextView


Inheritance:

   Object
   |
   +--GraphicsContext
      |
      +--DeviceGraphicsContext
         |
         +--GraphicsMedium
            |
            +--DisplaySurface
               |
               +--SimpleView
                  |
                  +--SyncedMultiColumnTextView
                     |
                     +--ThreeColumnTextView
                     |
                     +--TwoColumnTextView

Package:
stx:libwidg2
Category:
Views-Text
Version:
rev: 1.11 date: 2008/07/24 12:44:31
user: cg
file: SyncedMultiColumnTextView.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Gittinger

Description:


abstract superclass for multi-col textviews.
Scrolling is synced, by always scrolling all views.
This type of view is especially useful to show diff-lists,
code-versions, or other one-by-one viewable texts.

Usually, it does not make much sense, to put totally different
or unrelated texts into this kind of view.

See concrete examples in subclasses: TwoColumnTextView, DiffTextView etc.


Related information:

    TwoColumnTextView
    DiffTextView

Class protocol:

defaults
o  numberOfViews
return the number of the synced subViews.
Usually redefined in subclasses

o  textViewClass
return the type of the synced subViews.
Can be redefined in subclasses


Instance protocol:

accessing
o  textViewClass

o  textViewClass: aClass

change & update
o  update: something with: someArgument from: changedObject

initialization
o  initialize

queries
o  heightOfContents

o  innerHeight

o  innerWidth

o  widthOfContents

o  xOriginOfContents

o  yOriginOfContents

scrolling
o  scrollDown: nLines

o  scrollHorizontalToPercent: p
since the percentage given is based on the widest text
of my subvies, scroll the view containing the widest first,
and take that scroll-offset for the others.

o  scrollLeft

o  scrollLeft: nPixels

o  scrollRight

o  scrollRight: nPixels

o  scrollToLine: lineNr

o  scrollUp: nLines

o  scrollVerticalToPercent: p
since the percentage given is based on the longest text
of my subvies, scroll the view containing the longest first,
and take that scroll-offset for the others.

o  verticalScrollStep
return the amount to scroll when stepping up/down (also used for mouseWheel).



ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 22:31:47 GMT