|
Class: AbstractTreeBuilder (in HTML)
Object
|
+--HTML::AbstractTreeBuilder
|
+--HTML::TreeBuilder
- Package:
- stx:goodies/webServer/htmlTree
- Category:
- Net-Documents-HTML-Utilities
- Version:
- rev:
1.21
date: 2018/04/26 10:34:24
- user: cg
- file: HTML__AbstractTreeBuilder.st directory: goodies/webServer/htmlTree
- module: stx stc-classLibrary: htmlTree
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)
accessing
-
currentElement
-
-
rootElement
-
attributes
-
id: idString
-
-
name: name
-
attributes-basic
-
addAttribute: attrName
-
-
attribute: attrName is: attrValue
-
building
-
comment: aComment
-
-
nlsText: nlsText
-
text which is a national-language-translated-string, as text element
-
nlsText: nlsText with: aParameter
-
text which is a national-language-translated-string, as text element
-
nlsText: nlsText with: parameter1 with: parameter2
-
text which is a national-language-translated-string, as text element
-
nlsText: nlsText with: parameter1 with: parameter2 with: parameter3
-
text which is a national-language-translated-string
-
nlsText: nlsText withArgs: parameters
-
text which is a national-language-translated-string
-
nlsTitle: nlsTitle
-
fly-by-title which is a national-language-translated-string
-
nlsTitle: nlsText with: aParameter
-
fly-by-title which is a national-language-translated-string
-
nlsTitle: nlsText with: aParameter with: arg2
-
fly-by-title which is a national-language-translated-string
-
nlsTitle: nlsText with: aParameter with: arg2 with: arg3
-
fly-by-title which is a national-language-translated-string
-
nlsTranslated: nlsText
-
national-language-translated-string
-
nlsTranslated: nlsText with: aParameter
-
national-language-translated-string
-
nlsTranslated: nlsText with: parameter1 with: parameter2
-
national-language-translated-string
-
nlsTranslated: nlsText with: parameter1 with: parameter2 with: parameter3
-
national-language-translated-string
-
nlsTranslated: nlsText withArgs: parameters
-
national-language-translated-string
-
rawText: someText
-
-
text: someText
-
self rawText:(HTTPServer withSpecialHTMLCharactersEscaped:someText)
instance release
-
release
-
private
-
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
-
addElement: element
-
-
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
-
endElement
-
-
endElementButKeepForAttribute
-
-
ignoreComments
-
-
ignoreComments: aBoolean
-
-
resources: anNLSResourceCollection
-
for nlsText and nlsInfo
-
setCurrentElement: element
-
-
startElement: element
-
|