XConElem

ostrat.pWeb.XConElem
trait XConElem

Content for XML and HTML elements. You can use plain Strings, however other content classes must implement the out and outLines interfaces. The outLines method allows the parent element to the content to format itself according to the number of lines and the length of the first and last lines. it is not the responsibility of the content to indent its first line or provided a newline before its first line, or to provide a new line after its last line. This is the responsibility of the parent element. Note in the case of HTML elements we are referring to the formatting of the HTML file in a text editor, not how it will be displayed in a browser.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait CssRuleLike
class CssMedia
trait CssRule
class CssBody
class CssButton
class CssCanvas
class CssCode
class CssH1
class CssIDRule
class CssOl
class CssP
class CssSvg
trait XHmlInline
trait HtmlInline
class HtmlA
class HtmlB
trait XmlInline
trait SvgElem
class SvgCircle
class SvgEllipse
class SvgGroup
class SvgLine
class SvgPolygon
class SvgRect
class SvgText
class ArtifactId
class GroupId
object OpenJfxId
object ScalaGroupId
object RichstratID
class ServletClass
class ServletName
class UrlPattern
class VersionElem
trait XHtmlInline
trait XHmlElem
trait HtmlElem
class HtmlOl
trait HtmlRow
class HtmlRowData
class HtmlRowHead
trait HtmlSection
object CoordSystem
object Ellipses
object GeomPage2D
object GeomPageWeb
object LessonLists
object LinePathNames
class HtmlOlWithLH
class HtmlUlWithLH
class HtmlSvg
class HtmlTable
class HtmlUl
trait HtmlOwnLine
trait HtmlBrLine
class HtmlButton
class HtmlCanvas
trait HtmlCell
class HtmlTd
class HtmlTh
class HtmlDirPath
class HtmlDivGen
class HtmlLi
class HtmlNoScript
class HtmlP
class HtmlScript
class HtmlSpan
class HtmlH1
class HtmlH2
class HtmlH3
class HtmlH4
class HtmlStyle
trait HtmlUnvoid
class HtmlBody
trait HtmlCode
trait HtmlBash
class HtmlBashLine
trait HtmlSbt
trait HtmlScala
trait HtmlDiv
class HtmlHead
class HtmlHtml
class HtmlTitle
trait HtmlVoid
object HtmlBr
class HtmlCssLink
class HtmlInput
trait HtmlMeta
object HtmlNoCache
object HtmlUtf8
trait XHmlMulti
trait XmlMulti
class PomDep
trait PomProject
trait WebApp
trait WebApp6
class ServletElem
trait XHmlOwnLine
trait XmlElem
trait XmlNoAtts
class XmlAsString
Show all

Members list

Value members

Abstract methods

def out(indent: Int, line1InputLen: Int, maxLineLen: Int): String

Returns the XML / HTML source code, formatted according to the input. This allows the XML to be indented according to its context. This will generally use the outLines method for its implementation.

Returns the XML / HTML source code, formatted according to the input. This allows the XML to be indented according to its context. This will generally use the outLines method for its implementation.

Attributes

Concrete methods

def outLines(indent: Int, line1InputLen: Int, maxLineLen: Int): TextLines

This method returns the HTML output code, but also information for the parent XML / HTML element. The class should not add any indentation to its first line. This is the responsibility of the parent element.

This method returns the HTML output code, but also information for the parent XML / HTML element. The class should not add any indentation to its first line. This is the responsibility of the parent element.

Attributes