
WebOutStream provides methods for generating XML and XHTML content.
Slots
- a
-
WebOutStream a(Uri href, Str attrs := def)
Start a <a> tag.
- aEnd
-
WebOutStream aEnd()
End a <a> tag.
- body
-
WebOutStream body(Str attrs := def)
Start a <body> tag.
- bodyEnd
-
WebOutStream bodyEnd()
End a <body> tag.
- br
-
WebOutStream br()
Write out a complete <br/> tag.
-
WebOutStream button(Str attrs := def)
Convenience for input("type='button'" + attrs).
- code
-
WebOutStream code(Str attrs := def)
Start a <code> tag.
- codeEnd
-
WebOutStream codeEnd()
End a <code> tag.
- css
-
WebOutStream css(Uri href)
Write a complete <link> tag for an external CSS stylesheet. If this URI has already been included in this WebOutStream instance, then this method does nothing.
-
private Uri[] cssUris
- dd
-
WebOutStream dd(Str attrs := def)
Start a <dd> tag.
- ddEnd
-
WebOutStream ddEnd()
End a <dd> tag.
- div
-
WebOutStream div(Str attrs := def)
Start a <div> tag.
- divEnd
-
WebOutStream divEnd()
End a <div> tag.
- dl
-
WebOutStream dl(Str attrs := def)
Start a <dl> tag.
- dlEnd
-
WebOutStream dlEnd()
End a <dl> tag.
- docType
-
WebOutStream docType()
Write the XHTML Strict DOCTYPE.
- dt
-
WebOutStream dt(Str attrs := def)
Start a <dt> tag.
- dtEnd
-
WebOutStream dtEnd()
End a <dt> tag.
- form
-
WebOutStream form(Str attrs := def)
Start a <form> tag.
- formEnd
-
WebOutStream formEnd()
End a <form> tag.
- h1
-
WebOutStream h1(Str content, Str attrs := def)
Write a complete <h1> tag.
- h2
-
WebOutStream h2(Str content, Str attrs := def)
Write a complete <h2> tag.
- h3
-
WebOutStream h3(Str content, Str attrs := def)
Write a complete <h3> tag.
- h4
-
WebOutStream h4(Str content, Str attrs := def)
Write a complete <h4> tag.
- h5
-
WebOutStream h5(Str content, Str attrs := def)
Write a complete <h5> tag.
- h6
-
WebOutStream h6(Str content, Str attrs := def)
Write a complete <h6> tag.
- head
-
WebOutStream head()
Start a <head> tag.
- headEnd
-
WebOutStream headEnd()
End a <head> tag.
- hr
-
WebOutStream hr()
Write out a complete <hr/> tag.
- html
-
WebOutStream html()
Start a <html> tag.
- htmlEnd
-
WebOutStream htmlEnd()
End a <html> tag.
- img
-
WebOutStream img(Uri src, Str attrs := def)
Write a complete <img> tag.
- input
-
WebOutStream input(Str attrs := def)
Write a complete <input> tag.
- js
-
WebOutStream js(Uri href)
Write a complete <script> tag for an external JavaScript file. If this URI has already been included in this WebOutStream instance, then this method does nothing.
-
private Uri[] jsUris
- li
-
WebOutStream li(Str attrs := def)
Start a <li> tag.
- liEnd
-
WebOutStream liEnd()
End a <li> tag.
- make
-
new make(OutStream out)
Construct a WebOutStream that wraps the given OutStream.
- nl
-
WebOutStream nl()
Convenience for writeChar('\n').
- ol
-
WebOutStream ol(Str attrs := def)
Start a <ol> tag.
- olEnd
-
WebOutStream olEnd()
End a <ol> tag.
- option
-
WebOutStream option(Str attrs := def)
Start a <option> tag.
- optionEnd
-
WebOutStream optionEnd()
End a <option> tag.
- p
-
WebOutStream p(Str attrs := def)
Start a <p> tag.
- pEnd
-
WebOutStream pEnd()
End a <p> tag.
- pre
-
WebOutStream pre(Str attrs := def)
Start a <pre> tag.
- preEnd
-
WebOutStream preEnd()
End a <pre> tag.
- prolog
-
WebOutStream prolog()
Write out a prolog statement using the streams current charset encoding.
- select
-
WebOutStream select(Str attrs := def)
Start a <select> tag.
- selectEnd
-
WebOutStream selectEnd()
End a <select> tag.
- span
-
WebOutStream span(Str attrs := def)
Start a <span> tag.
- spanEnd
-
WebOutStream spanEnd()
End a <span> tag.
- submit
-
WebOutStream submit(Str attrs := def)
Convenience for input("type='submit'" + attrs).
- tab
-
WebOutStream tab(Int numSpaces := def)
Convenience for writeChars(Str.spaces(numSpaces)).
- table
-
WebOutStream table(Str attrs := def)
Start a <table> tag.
- tableEnd
-
WebOutStream tableEnd()
End a <table> tag.
- tag
-
WebOutStream tag(Str elemName, Str attrs := def, Bool empty := def)
Write a start tag. Use attrs to fully specify the attributes manually. Use empty to optionally close this element without using an end tag.
- tagEnd
-
WebOutStream tagEnd(Str elemName)
Write an end tag.
- td
-
WebOutStream td(Str attrs := def)
Start a <td> tag.
- tdEnd
-
WebOutStream tdEnd()
End a <td> tag.
- textField
-
WebOutStream textField(Str attrs := def)
Convenience for input("type='text'" + attrs).
- th
-
WebOutStream th(Str attrs := def)
Start a <th> tag.
- thEnd
-
WebOutStream thEnd()
End a <th> tag.
- title
-
WebOutStream title(Str title)
Write a complete <title> tag.
- tr
-
WebOutStream tr(Str attrs := def)
Start a <tr> tag.
- trEnd
-
WebOutStream trEnd()
End a <tr> tag.
- ul
-
WebOutStream ul(Str attrs := def)
Start a <ul> tag.
- ulEnd
-
WebOutStream ulEnd()
End a <ul> tag.
- w
-
WebOutStream w(Obj obj)
Convenience for writeChars(obj.toStr).
More Info
Slots
- a
- aEnd
- body
- bodyEnd
- br
- button
- code
- codeEnd
- css
- cssUris
- dd
- ddEnd
- div
- divEnd
- dl
- dlEnd
- docType
- dt
- dtEnd
- form
- formEnd
- h1
- h2
- h3
- h4
- h5
- h6
- head
- headEnd
- hr
- html
- htmlEnd
- img
- input
- js
- jsUris
- li
- liEnd
- make
- nl
- ol
- olEnd
- option
- optionEnd
- p
- pEnd
- pre
- preEnd
- prolog
- select
- selectEnd
- span
- spanEnd
- submit
- tab
- table
- tableEnd
- tag
- tagEnd
- td
- tdEnd
- textField
- th
- thEnd
- title
- tr
- trEnd
- ul
- ulEnd
- w