eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTMLView':

Home

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

Class: HTMLView


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--ScrollableView
               |
               +--HTMLView

Package:
stx:libhtml
Category:
System-Documentation
Version:
rev: 1.19 date: 2019/07/31 15:31:49
user: cg
file: HTMLView.st directory: libhtml
module: stx stc-classLibrary: libhtml
Author:
Claus Atzkern

Description:


Attention: Please read the warning in HTMLElement.

The functionality is basically the same as provided by the HTMLDocumentView.
Additional there is a value holder which holds the 'home' document to be shown
and configurable scrollbars (horizontal and vertical).


Related information:

    HTMLDocumentView
    HTMLViewSpec

Instance protocol:

accessing
o  contents: aString
for compatibility with TextViews

o  extentOfContents

o  homeDocument: aFilename
set home document

o  homeText: aString
set some html text

o  positionOnAnchor: localAnchor

o  positionTo: aPoint

o  selfInDoitExpressions: rule

accessing-channels
o  canGoBackHolder

o  documentHolder
get the document holder (holds the uri)

o  documentHolder: aValueHolder
set the text holder (holds the html-text)

o  htmlTextHolder
get the text holder (holds the html-text)

o  htmlTextHolder: aValueHolder
set the text holder (holds the html-text)

change & update
o  update: something with: aParameter from: changedObject
one of my models changed its value

initialization & release
o  destroy
remove dependencies

o  initialize
setup scrollable view a HTMLDocumentView instance


Examples:


    |top doc holder|

    top := StandardSystemView extent:500@500.
    doc := self origin:0.0@ 0.0 corner:1.0@1.0 in:top.
    top openAndWait.

    holder := ValueHolder new.
    holder inspect.
    doc documentHolder:holder.
    holder value:'/home2/stx/lib/doc/online/english/TOP.html'.
    |top doc holder|

    top := StandardSystemView extent:500@500.
    doc := self origin:0.0@ 0.0 corner:1.0@1.0 in:top.
    top openAndWait.

    holder := ValueHolder new.
    doc documentHolder:holder.
    doc homeText:
        '
        <html>
        <body>
        <h1>chapter 1</h1>
        <h2>sub chapter 1.1</h2>
        <h1>chapter 2</h1>
        <h2>sub chapter 2.1</h2>
        <h2>sub chapter 2.2</h2>
        <h2>sub chapter 2.3</h2>
        </body>
        </html>
        '


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 21 Jan 2020 05:12:52 GMT