|
|
Class: HorizontalRule (in HTML)
Object
|
+--HTML::AbstractElement
|
+--HTML::AbstractHTMLElement
|
+--HTML::HorizontalRule
- Package:
- stx:goodies/webServer/htmlTree
- Category:
- Net-Documents-ModelTree-BlockLevel
- Version:
- rev:
1.20
date: 2007/11/05 21:11:51
- 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
-
-
canHaveText
-
-
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 printHtmlString.
Create a horizontal rule:
|rule|
rule := HorizontalRule new.
rule printHtmlString.
|
Horizontal rule with some attribute settings:
|rule|
rule := HTML::HorizontalRule new.
rule ruleSize:5.
rule width:120.
rule alignRight.
rule beNoshade.
rule printHtmlString.
|
|