eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTMLMarkup':

Home

everywhere
www.exept.de
for:
[back]

Class: HTMLMarkup


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--ArrayedCollection
            |
            +--Array
               |
               +--HTMLElement
                  |
                  +--HTMLMarkup
                     |
                     +--HTMLAnchor
                     |
                     +--HTMLBullet
                     |
                     +--HTMLForm
                     |
                     +--HTMLList
                     |
                     +--HTMLScript
                     |
                     +--HTMLStyle
                     |
                     +--HTMLTable
                     |
                     +--HTMLWidget

Package:
stx:libhtml
Category:
System-Documentation
Version:
rev: 1.48 date: 2008/09/03 09:00:08
user: cg
file: HTMLMarkup.st directory: libhtml
module: stx stc-classLibrary: libhtml
Author:
Claus Gittinger

Description:


a generic markup element.
Provides access to the elements attributes (parameters).
Also, provides parsing support to extract those from the
elements string i.e. to read them from the remaining string 
after the 'foo' in <foo ....>


Related information:

    HTMLParser
    HTMLDocumentPainter

Class protocol:

helpers
o  collectParametersFrom: text

o  parameterFor: keyword from: text
look for the value of a keyword parameter; return
it as a string or nil, if no value given, or parameter is not present.
Notice: returns nil if parameter is there, but without a value.

o  parameterFor: keyword orLowerCase: lcKeyword from: text
look for the value of a keyword parameter; return
it as a string or nil, if no value given, or parameter is not present.
Notice: returns nil if parameter is there, but without a value.

initialization
o  initialize

instance creation
o  classForType: aTypeSymbol
internal interface - return a markup elements class, given a typeSymbol
(such as #b, #pre or #'/pre')

o  for: aString
given a marks string (such as 'b', 'pre' or '/pre'),
return a new markup instance

o  type: aTypeSymbol
internal interface - create a markup element, given a typeSymbol
(such as #b, #pre or #'/pre'), return a new markup instance


Instance protocol:

accessing
o  bounds

o  tag
return the markups type, a symbol

o  text
return the markups text, if any

o  text: aString
set the markups text

o  type
return the markups type, a symbol

o  type: aSymbol
set the markups type to aSymbol

o  type: aSymbol text: aString
set the markups type to aSymbol and textInfo to aString

printing
o  printHTMLOn: aStream

printing & storing
o  displayString
return a printed representation of the receiver for displaying

queries
o  actionString

o  alignSymbol
return the align parameter - or nil, if there is none

o  boundsTop

o  nameString

o  typeString

o  valignSymbol
return the valign parameter - or nil, if there is none

o  valueString

testing
o  isEndTag

o  isFormEndElement

o  isHeading
true if the receiver is one of the <hI> tags

o  isOptionElement

o  isPrintable
answer true, if element can be printed

o  isSelectEndElement

o  isSelected



ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 09:50:49 GMT