eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::Pre':

Home

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

Class: Pre (in HTML)


Inheritance:

   Object
   |
   +--HTML::AbstractElement
      |
      +--HTML::AbstractHTMLElement
         |
         +--HTML::Pre

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-HTML-ModelTree-BlockLevel
Version:
rev: 1.13 date: 2018/04/26 10:29:05
user: cg
file: HTML__Pre.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Class protocol:

required protocol
o  tagName


Instance protocol:

queries
o  canHaveChild: anElement in: aParser
(comment from inherited method)
return true, if anotherElement is allowed as my child

required-visiting
o  acceptHTMLVisitor: aVisitor
visitor pattern: dispatch me to the visitor

testing
o  canBeReformatted
answer true, if the text may be reformatted by the browser,
and added white space does not matter.
Pre will not be reformatted.

o  isBlockElement

o  isPre


Examples:


Create preformat in document: [exBeginn] |document| document := Document new. document addElement: (Pre with: 'This is a Test'). document htmlString. [exBeginn] |document| document := Document new. document addElement: (Pre with: '/tmp/foo' asFilename contents asString). document htmlString.

ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Wed, 30 Nov 2022 18:32:55 GMT