eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::DefinitionList':

Home

everywhere
www.exept.de
for:
[back]

Class: DefinitionList (in HTML)


Inheritance:

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

Package:
stx:goodies/webServer/htmlTree
Category:
Net-Documents-ModelTree-Lists
Version:
rev: 1.15 date: 2007/11/05 21:11:29
user: cg
file: HTML__DefinitionList.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Class protocol:

required protocol
o  tagName


Instance protocol:

queries
o  canHaveChild: anotherElement
return true, if anotherElement is allowed as my child

o  canHaveText

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

o  addDefinition: anAssociation
Add a defintion description to the definition list.

The definition description can be either the html-object
or a simple string.

o  addDefinitionDescription: aDefinitionDescriptionOrString
Add a defintion description to the definition list.

The definition description can be either the html-object
or a simple string.

o  addDefinitionTerm: aDefinitionTermOrString
Add a defintion term to the definition list.

The definition term can be either the html-object
or a simple string.

testing
o  isBlockElement


Examples:


A definition list:


    |list|

    list := DefinitionList new.

    list addDefinition:'Smalltalk' -> 'Object oriented programming language.'.

    list addLineBreak.

    list addDefinitionTerm:'Java'.
    list addDefinitionDescription:'Clever marketing strategie based on old stuff..'.

    list printHtmlString.


ST/X 6.1.1; WebServer 1.620 at exept:8081; Fri, 10 Feb 2012 15:01:10 GMT