|
Class: HorizontalRule (in HTML)
Object
|
+--HTML::AbstractElement
|
+--HTML::AbstractHTMLElement
|
+--HTML::HorizontalRule
- Package:
- stx:goodies/webServer/htmlTree
- Category:
- Net-Documents-HTML-ModelTree-BlockLevel
- Version:
- rev:
1.25
date: 2018/04/26 10:30:30
- user: cg
- file: HTML__HorizontalRule.st directory: goodies/webServer/htmlTree
- module: stx stc-classLibrary: htmlTree
required protocol
-
tagName
-
interface-attributes
-
beNoshade
-
-
beShade
-
-
isShade
-
Return if shade is set or not.
-
noshade
-
-
ruleSize
-
Return the vertical size of the rule in pixels.
-
ruleSize: aSize
-
Set the vertical size of the rule in pixels.
-
size: aNumber
-
Set the vertical size of the rule in pixels.
-
width
-
Return the horizontal width.
-
width: aNumberOrPercentString
-
Set the horizontal width.
queries
-
canHaveChild: anElement in: aParser
-
(comment from inherited method)
return true, if anotherElement is allowed as my child
-
canHaveText
-
(comment from inherited method)
return true, if I allow text as child (i.f. PCDATA)
-
isVoidElement
-
(comment from inherited method)
A void element is an element whose content model
never allows it to have contents under any circumstances.
Void elements can have attributes.
-
mustBeClosed
-
required-visiting
-
acceptHTMLVisitor: aVisitor
-
visitor pattern: dispatch me to the visitor
testing
-
isBlockElement
-
-
isHorizontalRule
-
Create a horizontal rule in document:
[exBeginn]
|document|
document := Document new.
document addHorizontalRule.
document htmlString.
Create a horizontal rule:
|rule|
rule := HorizontalRule new.
rule htmlString.
|
Horizontal rule with some attribute settings:
|rule|
rule := HTML::HorizontalRule new.
rule ruleSize:5.
rule width:120.
rule alignRight.
rule beNoshade.
rule htmlString.
|
|