|
Class: HTMLView
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--ScrollableView
|
+--HTMLView
- Package:
- stx:libhtml
- Category:
- System-Documentation
- Version:
- rev:
1.26
date: 2023/11/07 16:24:43
- user: cg
- file: HTMLView.st directory: libhtml
- module: stx stc-classLibrary: libhtml
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).
copyrightCOPYRIGHT (c) 1997 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
contents: aString
-
for compatibility with TextViews
-
extentOfContents
-
-
homeDocument: aFilename
-
set home document
-
homeText: aString
-
set some html text
-
positionOnAnchor: localAnchor
-
-
positionTo: aPoint
-
-
selfInDoitExpressions: rule
-
accessing-channels
-
canGoBackHolder
-
-
currentDocumentAndAnchor
-
return the current document plus any local anchor, if we are positioned on one;
returns something like foo#bla
-
currentURL
-
-
documentHolder
-
get the document holder (holds the uri)
-
documentHolder: aValueHolder
-
set the URL holder (holds the document's URL)
-
htmlTextHolder
-
get the text holder (holds the html-text)
-
htmlTextHolder: aValueHolder
-
set the text holder (holds the html-text)
-
uriHolder
-
change & update
-
update: something with: aParameter from: changedObject
-
one of my models changed its value
initialization & release
-
destroy
-
remove dependencies
-
initialize
-
setup scrollable view a HTMLDocumentView instance
|top doc holder|
top := StandardSystemView extent:500@500.
doc := self origin:0.0@ 0.0 corner:1.0@1.0 in:top.
top openAndWaitUntilVisible.
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 openAndWaitUntilVisible.
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>
'
|
|