|
Class: AbstractHTMLElement (in HTML)
Object
|
+--HTML::AbstractElement
|
+--HTML::AbstractHTMLElement
|
+--HTML::AbstractFormElement
|
+--HTML::AbstractList
|
+--HTML::AbstractTableCell
|
+--HTML::AbstractTableRow
|
+--HTML::Address
|
+--HTML::Anchor
|
+--HTML::Area
|
+--HTML::Base
|
+--HTML::Big
|
+--HTML::BlockQuote
|
+--HTML::Body
|
+--HTML::Bold
|
+--HTML::Break
|
+--HTML::Caption
|
+--HTML::Center
|
+--HTML::Code
|
+--HTML::Col
|
+--HTML::Colgroup
|
+--HTML::DefinitionDescription
|
+--HTML::DefinitionList
|
+--HTML::DefinitionTerm
|
+--HTML::Div
|
+--HTML::Document
|
+--HTML::DummyContainerElement
|
+--HTML::Element
|
+--HTML::Form
|
+--HTML::Frame
|
+--HTML::Frameset
|
+--HTML::Head
|
+--HTML::Heading
|
+--HTML::HorizontalRule
|
+--HTML::IFrame
|
+--HTML::Image
|
+--HTML::Italic
|
+--HTML::Label
|
+--HTML::Link
|
+--HTML::ListItem
|
+--HTML::Meta
|
+--HTML::NoBr
|
+--HTML::NoFrames
|
+--HTML::NoScript
|
+--HTML::Paragraph
|
+--HTML::Pre
|
+--HTML::Script
|
+--HTML::Small
|
+--HTML::Span
|
+--HTML::Strong
|
+--HTML::Style
|
+--HTML::Table
|
+--HTML::TableBody
|
+--HTML::Title
|
+--HTML::Underlined
- Package:
- stx:goodies/webServer/htmlTree
- Category:
- Net-Documents-HTML-ModelTree
- Version:
- rev:
1.31
date: 2019/07/13 12:19:57
- user: cg
- file: HTML__AbstractHTMLElement.st directory: goodies/webServer/htmlTree
- module: stx stc-classLibrary: htmlTree
instance creation
-
tagToClassMapping
-
return a mapping for all existing tag names.
The key is the tag name, the value is a
concrete element class.
queries
-
isAbstract
-
Return if this class is an abstract class.
Return true for this class but false for all subclasses.
To have an abstract subclass implement this method there again.
usage example(s):
AbstractElement isAbstract.
Table isAbstract.
|
-
isElement
-
Say that you are an element.
Attention this method is not
implemented in Object, like
on should think!
Use method:'#askFor:#isElement'
and forget about this return
value here.
-
isElementImplementing
-
Return true if the class is implementing a concrete tag.
usage example(s):
AbstractElement isElementImplementing
Element isElementImplementing
Table isElementImplementing
|
-
isGeneric
-
Return false here.
The Element will return true.
accessing-style-background-color
-
backgroundColor: aRawColor
-
Set background-color using style-sheets(CSS).
accessing-style-border
-
borderStyle: aStyle
-
Set border-width using style-sheets(CSS).
-
borderStyleDashed
-
Set border-width to dashed using style-sheets(CSS).
-
borderStyleDotted
-
Set border-style to dotted using style-sheets(CSS).
-
borderStyleDouble
-
Set border-width to double using style-sheets(CSS).
-
borderStyleGroove
-
Set border-style to groove using style-sheets(CSS).
-
borderStyleInset
-
Set border-style to inset using style-sheets(CSS).
-
borderStyleNone
-
Set border-style to none using style-sheets(CSS).
-
borderStyleOutset
-
Set border-style to outset using style-sheets(CSS).
-
borderStyleRidge
-
Set border-style to ridge using style-sheets(CSS).
-
borderStyleSolid
-
Set border-style to solid using style-sheets(CSS).
-
borderWidth: aRawWidth
-
Set border-width using style-sheets(CSS).
-
margin: aDistance
-
Set margin for all four sides using style-sheets(CSS).
-
padding: aDistance
-
Set padding for all four sides using style-sheets(CSS).
accessing-style-border-color
-
borderColor: aRawColor
-
Set color using style-sheets(CSS).
-
borderColorAqua
-
Set border-color to aqua using style-sheets(CSS).
-
borderColorBlack
-
Set border-color to black using style-sheets(CSS).
-
borderColorBlue
-
Set border-color to blue using style-sheets(CSS).
-
borderColorFuchsia
-
Set border-color to fuchsia using style-sheets(CSS).
-
borderColorGray
-
Set border-color to gray using style-sheets(CSS).
-
borderColorGreen
-
Set border-color to green using style-sheets(CSS).
-
borderColorLime
-
Set border-color to lime using style-sheets(CSS).
-
borderColorMaroon
-
Set border-color to maroon using style-sheets(CSS).
-
borderColorNavy
-
Set border-color to navy using style-sheets(CSS).
-
borderColorOlive
-
Set border-color to olive using style-sheets(CSS).
-
borderColorPurple
-
Set border-color to purple using style-sheets(CSS).
-
borderColorRed
-
Set border-color to red using style-sheets(CSS).
-
borderColorSilver
-
Set border-color to silver using style-sheets(CSS).
-
borderColorTeal
-
Set border-color to teal using style-sheets(CSS).
accessing-style-position
-
atPosition: aPosition
-
Set position using style-sheets(CSS).
-
bottom: aBottom
-
Set bottom using style-sheets(CSS).
-
bounds: aRectangle
-
Set bounds using style-sheets(CSS).
-
display: aDisplayPropertyString
-
Set display using style-sheets(CSS).
-
document
-
-
extent: aPosition
-
Set extent using style-sheets(CSS).
-
height: aNumberOrPercentString
-
Set height using style-sheets(CSS).
-
left: aLeft
-
Set left using style-sheets(CSS).
-
right: aRight
-
Set right using style-sheets(CSS).
-
top: aTop
-
Set top using style-sheets(CSS).
-
width: aNumberOrPercentString
-
Set width using style-sheets(CSS).
interface-accessing-elements
-
addAnchor
-
Add an anchor.
-
addAnchorHRef: anURLString
-
Add an anchor.
-
addAnchorHRef: anURLString with: aElementOrString
-
Add an anchor.
-
addBig: anELementOrStringOtCollection
-
Add a big.
-
addBold: anELementOrStringOtCollection
-
Add a bold.
-
addBreak
-
Add a line break to the children.
-
addDiv
-
Add an empty div.
-
addDiv: anElementOrStringOrCollection
-
Add a div.
-
addItalic: anELementOrStringOtCollection
-
Add an italic.
-
addLineBreak
-
Add a line break to the children.
-
addScriptType: language code: theCode
-
-
addSmall: anELementOrStringOtCollection
-
Add an small.
-
addSpan: anELementOrStringOtCollection
-
Add a span.
-
addUnderlined: anElementOrStringOrCollection
-
Add an underlined.
interface-attributes
-
bgColor
-
Return the background color of the element.
-
bgColor: aColorOrRGBColorString
-
Set the background color of the element.
This can be either an rgb-color string or a smalltalk color.
-
border
-
Return the border of the element.
-
border: aWidth
-
Set the border of the element.
-
class
-
OUCH: class is a bad name!
Return the css-class of the element.
-
class: classString
-
Set the css-class of the element.
-
cssClass
-
Return the css-class of the element.
-
name
-
Return the name of the frame.
-
name: aName
-
Set the name of the frame.
-
style
-
Return the style of the element.
-
style: aStyle
-
Set the style of the element.
-
text
-
Return the text of the element.
-
text: aText
-
Set the text of the element.
-
title: aText
-
Set the title of the element.
-
valign
-
Return the valign of the table.
-
valign: align
-
Set the vertical align of the table/cell (top|middle|bottom|baseline).
interface-attributes-alignment
-
align: alignmentString
-
Set the alignment of the element.
The alignment can be left, center, right.
-
alignCenter
-
Set alignment to be center.
-
alignLeft
-
Set alignment to be left.
-
alignRight
-
Set alignment to be right.
-
alignment
-
Return the alignment of the table.
The alignment can be left, center, right
or nil in case no alignment is set so far.
-
alignment: alignmentString
-
Set the alignment of the table.
The alignment can be left, center, right.
operations
-
buildHtmlUsingEncoder: anEncoder
-
printing
-
htmlString
-
Print yourself as html string.
See class Encoder and Visitor.
-
htmlStringOfSubElements
-
Print my children as html string.
See class Encoder and Visitor.
-
htmlStringUsingEncoder: anEncoder
-
Print yourself as html string.
See class Encoder and Visitor.
-
printHtmlOn: aStream
-
Print yourself as html string.
See class Encoder and Visitor.
-
printHtmlString
-
Print yourself as html string.
See class Encoder and Visitor.
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
printOn: aStream
-
queries
-
mustBeClosed
-
return true, if I need a closing tag (as opposed to br or img, which do not)
testing
-
canBeReformatted
-
answer true, if the text may be reformatted by the browser,
and added white space does not matter.
Redefined in subclasses.
-
isElement
-
See class-method:'#isElement'
-
isInlineElement
-
-
printInlineWithSimpleElements
-
helper for printing; controls if begin- and end-tags are generated into extra lines
|