eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ThreeColumnTextView':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ThreeColumnTextView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--SyncedMultiColumnTextView
               |
               +--ThreeColumnTextView
                  |
                  +--Diff3TextView

Package:
stx:libwidg2
Category:
Views-Text
Version:
rev: 1.3 date: 2006/07/05 07:42:12
user: fm
file: ThreeColumnTextView.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

Description:


a view showing two texts side-by-side.
Scrolling is synced, by always scrolling both 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 subclass DiffTextView for a real class;
see ChangesBrowsers compare operation for a real application
of this kind of views.


Class protocol:

instance creation
o  openOn: firstText and: secondText and: thirdText
open up a view showing firstText, secondText and thirdText side-by-side

usage example(s):

     ThreeColumnTextView
        openOn:('smalltalk.rc' asFilename contentsOfEntireFile)
        and:('display.rc' asFilename contentsOfEntireFile)
        and:('private.rc' asFilename contentsOfEntireFile)

o  openOn: firstText label: firstLabel and: secondText label: secondLabel and: thirdText label: thirdLabel
open up a view showing firstText, secondText and thirdText side-by-side,
and labels for all views.

usage example(s):

     ThreeColumnTextView
        openOn:('smalltalk.rc' asFilename contentsOfEntireFile)
        label:'smalltalk.rc'
        and:('display.rc' asFilename contentsOfEntireFile)
        label:'display.rc'
        and:('private.rc' asFilename contentsOfEntireFile)
        label:'private.rc'

specification
o  numberOfViews
(comment from inherited method)
return the number of the synced subViews.
Usually redefined in subclasses


Instance protocol:

accessing
o  text1: t1 text2: t2 text3: t3


Examples:


ThreeColumnTextViews are currently not directly used by the system. However, it is used as an abstract superclass for Diff3TextView. See more examples there. (you may find nice uses for it anyway ...) ThreeColumnTextView openOn:('smalltalk.rc' asFilename contents) and:('display.rc' asFilename contents) and:('host.rc' asFilename contents) ThreeColumnTextView openOn:('smalltalk.rc' asFilename contents) label:'smalltalk.rc' and:('display.rc' asFilename contents) label:'display.rc' and:('host.rc' asFilename contents) label:'host.rc'

ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 11 Aug 2020 01:45:45 GMT