eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::Pre':

Home

everywhere
www.exept.de
for:
[back]

Class: Pre (in HTML)


Inheritance:

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

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-ModelTree-BlockLevel
Version:
rev: 1.9 date: 2009/11/30 10:46:32
user: stefan
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

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 printHtmlString. [exBeginn] |document| document := Document new. document addElement: (Pre with: '/tmp/foo' asFilename contents asString). document printHtmlString.

ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 09:28:29 GMT