eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::HorizontalRule':

Home

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

Class: HorizontalRule (in HTML)


Inheritance:

   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

Class protocol:

required protocol
o  tagName


Instance protocol:

interface-attributes
o  beNoshade

o  beShade

o  isShade
Return if shade is set or not.

o  noshade

o  ruleSize
Return the vertical size of the rule in pixels.

o  ruleSize: aSize
Set the vertical size of the rule in pixels.

o  size: aNumber
Set the vertical size of the rule in pixels.

o  width
Return the horizontal width.

o  width: aNumberOrPercentString
Set the horizontal width.

queries
o  canHaveChild: anElement in: aParser
(comment from inherited method)
return true, if anotherElement is allowed as my child

o  canHaveText
(comment from inherited method)
return true, if I allow text as child (i.f. PCDATA)

o  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.

o  mustBeClosed

required-visiting
o  acceptHTMLVisitor: aVisitor
visitor pattern: dispatch me to the visitor

testing
o  isBlockElement

o  isHorizontalRule


Examples:


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.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Wed, 24 Apr 2024 18:49:29 GMT