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.27 date: 2022/07/05 18:10:00
user: cg
file: HTML__Image.st directory: goodies/webServer/htmlTree
module: stx stc-classLibrary: htmlTree

Description:


An html image element


[instance variables:]
    -

[class variables:]
    -

copyright

COPYRIGHT (c) 2003 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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 eg <br>, <li> 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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 23 Nov 2024 09:27:01 GMT