eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTML::Image':

Home

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

Class: Image (in HTML)


Inheritance:

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

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

Description:


An html image element


[instance variables:]
    -

[class variables:]
    -


Related information:



Class protocol:

instance creation
o  source: sourceString alternative: altString border: anInteger
Modified (format): / 06-03-2017 / 18:27:58 / cg

required protocol
o  tagName


Instance protocol:

interface-attributes
o  alt
Return the alternative for displaying this image.

o  alt: anAlternative
Set the alternative for displaying this image.

o  alternative
Return the alternative for displaying this image.

o  alternative: anAlternative
Set the alternative for displaying this image.

o  source
Return the source of the image.

o  source: aSource
Set the source of the image.

o  src
Return the source of the image.

o  src: aSource
Set the source of the image.

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
(comment from inherited method)
return true, if I need a closing tag (as opposed to br or img, which do not)

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

testing
o  isImg

o  isInlineElement


Examples:


    |image|
    image := Image new.
    image alternative:'eXept Software AG Logo'.
    image border:0.
    image source:'http://www.exept.de/sites/exept/images/startup.gif'.
    image htmlString.


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 05:03:57 GMT