|
Class: Image (in HTML)
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
An html image element
[instance variables:]
-
[class variables:]
-
copyrightCOPYRIGHT (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.
instance creation
-
source: sourceString alternative: altString border: anInteger
-
Modified (format): / 06-03-2017 / 18:27:58 / cg
required protocol
-
tagName
-
interface-attributes
-
alt
-
Return the alternative for displaying this image.
-
alt: anAlternative
-
Set the alternative for displaying this image.
-
alternative
-
Return the alternative for displaying this image.
-
alternative: anAlternative
-
Set the alternative for displaying this image.
-
source
-
Return the source of the image.
-
source: aSource
-
Set the source of the image.
-
src
-
Return the source of the image.
-
src: aSource
-
Set the source of the image.
queries
-
canHaveChild: anElement in: aParser
-
(comment from inherited method)
return true, if anotherElement is allowed as my child
-
canHaveText
-
(comment from inherited method)
return true, if I allow text as child (i.f. PCDATA)
-
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.
-
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
-
acceptHTMLVisitor: aVisitor
-
visitor pattern: dispatch me to the visitor
testing
-
isImg
-
-
isInlineElement
-
|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.
|
|