|
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.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
An html image element
[instance variables:]
-
[class variables:]
-
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 br 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.
|
|