eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::Div':

Home

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

Class: Div (in HTML)


Inheritance:

   Object
   |
   +--HTML::AbstractElement
      |
      +--HTML::AbstractHTMLElement
         |
         +--HTML::Div

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-HTML-ModelTree-BlockLevel
Version:
rev: 1.20 date: 2018/04/26 10:29:33
user: cg
file: HTML__Div.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree
Author:
Martin Walser

Description:


A div is an html elment to align horizontally..


[instance variables:]
    -

[class variables:]
    -


Related information:

    Center

Class protocol:

required protocol
o  tagName


Instance protocol:

queries
o  canHaveChild: aChild in: aParser
(aChild isLink or:[aChild isStyle]) ifTrue:[^ true].

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

testing
o  isBlockElement

o  isDiv


Examples:


Left alignment:
    |div|
    div := Div with: 'This is a aligned Text.'.
    div alignLeft.
    div htmlString.
Center alignment:
    |div|
    div := Div with: 'This is a aligned Text.'.
    div alignCenter.
    div htmlString.
Right alignment:
    |div|
    div := Div with: 'This is a aligned Text.'.
    div alignRight.
    div htmlString.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 06:12:02 GMT