eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::AbstractTreeBuilder':

Home

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

Class: AbstractTreeBuilder (in HTML)


Inheritance:

   Object
   |
   +--HTML::AbstractTreeBuilder
      |
      +--HTML::TreeBuilder

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-HTML-TreeBuilder
Version:
rev: 1.23 date: 2019/07/13 12:20:47
user: cg
file: HTML__AbstractTreeBuilder.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Description:


HTML tree builder - makes it easier to construct valid HTML-trees.
This class is abstract; it is intended as the common superclass of different sgml-like
trees (such as HTML, VML etc.).

See concrete subclass(es), especially HTML::TreeBuilder


Instance protocol:

accessing
o  currentElement

o  rootElement

attributes
o  id: idString

o  name: name

o  onBlur: action
add an 'onBlur=' attribute to the current element.

o  onChange: action
add an 'onChange=' attribute to the current element.

o  onClick: action
add an 'onClick=' attribute to the current element.

o  onDoubleClick: action
add an 'onDoubleClick=' attribute to the current element.

o  onFocus: action
add an 'onFocus=' attribute to the current element.

o  onKeyDown: action
add an 'onKeyDown=' attribute to the current element.

o  onKeyPress: action
add an 'onKeyPress=' attribute to the current element.

o  onKeyUp: action
add an 'onKeyUp=' attribute to the current element.

o  onMouseDown: action
add an 'onMouseDown=' attribute to the current element.

o  onMouseMove: action
add an 'onMouseMove=' attribute to the current element.

o  onMouseOut: action
add an 'onMouseOut=' attribute to the current element.

o  onMouseOver: action
add an 'onMouseOver=' attribute to the current element.

o  onMouseUp: action
add an 'onMouseUp=' attribute to the current element.

o  onSelect: action
add an 'onSelect=' attribute to the current element.

attributes-basic
o  addAttribute: attrName

o  attribute: attrName is: attrValue

building
o  comment: aComment

o  nlsText: nlsText
text which is a national-language-translated-string, as text element

o  nlsText: nlsText with: aParameter
text which is a national-language-translated-string, as text element

o  nlsText: nlsText with: parameter1 with: parameter2
text which is a national-language-translated-string, as text element

o  nlsText: nlsText with: parameter1 with: parameter2 with: parameter3
text which is a national-language-translated-string

o  nlsText: nlsText withArgs: parameters
text which is a national-language-translated-string

o  nlsTitle: nlsTitle
fly-by-title which is a national-language-translated-string

o  nlsTitle: nlsText with: aParameter
fly-by-title which is a national-language-translated-string

o  nlsTitle: nlsText with: aParameter with: arg2
fly-by-title which is a national-language-translated-string

o  nlsTitle: nlsText with: aParameter with: arg2 with: arg3
fly-by-title which is a national-language-translated-string

o  nlsTranslated: nlsText
national-language-translated-string

o  nlsTranslated: nlsText with: aParameter
national-language-translated-string

o  nlsTranslated: nlsText with: parameter1 with: parameter2
national-language-translated-string

o  nlsTranslated: nlsText with: parameter1 with: parameter2 with: parameter3
national-language-translated-string

o  nlsTranslated: nlsText withArgs: parameters
national-language-translated-string

o  rawText: someText

o  text: someText
self rawText:(HTTPServer withSpecialHTMLCharactersEscaped:someText)

instance release
o  release

private
o  makeScriptActionText: scriptActionText
called for onClick: etc. arguments.
redefinable to allow wrapping of block arguments in more intelligent treeBuilders

o  textOrBlock: textOrBlock
helper for div:, a:, etc (i.e. all element-adders which allow the added element's contents to be also
specified as text or as computation.
If the argument is a string, it is added as text to the current element.
If it is a block, it is evaluated and responsible for adding things as required.
The block gets the treeBuilder and the currentElement as optional arguments
(i.e. it can be a 0, 1 or 2 argument block)

setup
o  addElement: element

o  beginWith: anElement
|b|

b := self new beginWith:(Table new).
b table.
b tr.
b td.
b tdEnd.
b td.
b tdEnd.
b trEnd.
b tableEnd.
b

o  endElement

o  endElementButKeepForAttribute

o  ignoreComments

o  ignoreComments: aBoolean

o  resources: anNLSResourceCollection
for nlsText and nlsInfo

o  setCurrentElement: element

o  startElement: element



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 08:49:51 GMT