- Index
- »
- web
- »
- WebOutStream
type
WebOutStream
src
@Js
class WebOutStream : OutStream
WebOutStream provides methods for generating XML and XHTML content.
constructors
make |
Construct a WebOutStream that wraps the given OutStream. |
---|
methods
a |
Start a <a> tag. |
---|---|
aEnd |
End a <a> tag. |
article |
Start a <article> tag. |
articleEnd |
End a <article> tag. |
aside |
Start a <aside> tag. |
asideEnd |
End a <aside> tag. |
atom |
Write a complete <link> tag for an Atom feed resource. |
b |
Start a <b> tag. |
bEnd |
End a <b> tag. |
body |
Start a <body> tag. |
bodyEnd |
End a <body> tag. |
br |
Write out a complete <br/> tag. |
button |
Convenience for input("type='button'" + attrs). |
checkbox |
Convenience for input("type='checkbox'" + attrs) |
code |
Start a <code> tag. |
codeEnd |
End a <code> tag. |
dd |
Start a <dd> tag. |
ddEnd |
End a <dd> tag. |
div |
Start a <div> tag. |
divEnd |
End a <div> tag. |
dl |
Start a <dl> tag. |
dlEnd |
End a <dl> tag. |
docType |
Write the XHTML Strict DOCTYPE. |
docType5 |
Write the HTML5 DOCTYPE. |
dt |
Start a <dt> tag. |
dtEnd |
End a <dt> tag. |
em |
Start a <em> tag. |
emEnd |
End a <em> tag. |
esc |
Write |
favIcon |
Write a complete <link> tag for a favicon. |
footer |
Start a <footer> tag. |
footerEnd |
End a <footer> tag. |
form |
Start a <form> tag. |
formEnd |
End a <form> tag. |
h1 |
Start a <h1> tag. |
h1End |
End a <h1> tag. |
h2 |
Start a <h2> tag. |
h2End |
End a <h2> tag. |
h3 |
Start a <h3> tag. |
h3End |
End a <h3> tag. |
h4 |
Start a <h4> tag. |
h4End |
End a <h4> tag. |
h5 |
Start a <h5> tag. |
h5End |
End a <h5> tag. |
h6 |
Start a <h6> tag. |
h6End |
End a <h6> tag. |
head |
Start a <head> tag. |
headEnd |
End a <head> tag. |
header |
Start a <header> tag. |
headerEnd |
End a <header> tag. |
hidden |
Convenience for input("type='hidden'" + attrs). |
hr |
Write out a complete <hr/> tag. |
html |
Start a <html> tag. |
htmlEnd |
End a <html> tag. |
i |
Start a <i> tag. |
iEnd |
End a <i> tag. |
img |
Write a complete <img> tag. |
includeCss |
Write a complete <link> tag for an external CSS stylesheet. |
includeJs |
Write a complete <script> tag for an external JavaScript file. |
initJs |
Customize how the JavaScript runtime environment is initialized. |
input |
Write a complete <input> tag. |
label |
Start a <label> tag. |
labelEnd |
End a <label> tag. |
li |
Start a <li> tag. |
liEnd |
End a <li> tag. |
main |
Start a <main> tag. |
mainEnd |
End a <main> tag. |
nav |
Start a <nav> tag. |
navEnd |
End a <nav> tag. |
nl |
Convenience for writeChar( |
ol |
Start a <ol> tag. |
olEnd |
End a <ol> tag. |
option |
Start a <option> tag. |
optionEnd |
End a <option> tag. |
p |
Start a <p> tag. |
pEnd |
End a <p> tag. |
password |
Convenience for input("type='password'" + attrs). |
pre |
Start a <pre> tag. |
preEnd |
End a <pre> tag. |
prolog |
Write out a prolog statement using the streams current charset encoding. |
radio |
Convenience for input("type='radio'" + attrs) |
rss |
Write a complete <link> tag for a RSS feed resource. |
script |
Start a <script> tag. |
scriptEnd |
End a <script> tag. |
section |
Start a <section> tag. |
sectionEnd |
End a <section> tag. |
select |
Start a <select> tag. |
selectEnd |
End a <select> tag. |
span |
Start a <span> tag. |
spanEnd |
End a <span> tag. |
style |
Start a <style> tag. |
styleEnd |
End a <style> tag. |
submit |
Convenience for input("type='submit'" + attrs). |
tab |
Convenience for writeChars(Str.spaces(numSpaces)). |
table |
Start a <table> tag. |
tableEnd |
End a <table> tag. |
tag |
Write a start tag. |
tagEnd |
Write an end tag. |
tbody |
Start a <tbody> tag. |
tbodyEnd |
End a <tbody> tag. |
td |
Start a <td> tag. |
tdEnd |
End a <td> tag. |
textArea |
Start a <textarea> tag. |
textAreaEnd |
End a <textarea> tag. |
textField |
Convenience for input("type='text'" + attrs). |
tfoot |
Start a <tfoot> tag. |
tfootEnd |
End a <tfoot> tag. |
th |
Start a <th> tag. |
thEnd |
End a <th> tag. |
thead |
Start a <thead> tag. |
theadEnd |
End a <thead> tag. |
title |
Write a complete <title> tag. |
titleEnd |
End a <title> tag. |
tr |
Start a <tr> tag. |
trEnd |
End a <tr> tag. |
ul |
Start a <ul> tag. |
ulEnd |
End a <ul> tag. |
w |
Convenience for writeChars(obj.toStr). |
Slot Details
a
aEnd
article
articleEnd
aside
asideEnd
atom
b
bEnd
body
bodyEnd
br
button
checkbox
code
codeEnd
dd
ddEnd
div
divEnd
dl
dlEnd
docType
docType5
dt
dtEnd
em
emEnd
esc
favIcon
footer
footerEnd
form
formEnd
h1
h1End
h2
h2End
h3
h3End
h4
h4End
h5
h5End
h6
h6End
head
headEnd
header
headerEnd
hidden
hr
html
htmlEnd
i
iEnd
img
includeCss
includeJs
initJs
Customize how the JavaScript runtime environment is initialized. This method must be called inside the <head>
tag, and also before sys.js
is loaded in order to take effect.
Note this method is not necessary if no customization is needed. The JS runtime will automatically initialize using default values.
The following variables are supported:
timezone
: set the default TimeZone for JsVMlocale
: set the default Locale for the JsVM. Note you must manually provide the locale config.props files. SeeFilePack.toLocaleJsFile
.main
: an optional method to invoke after the page has been loaded. Themain
argument can be either a type or method. If no method is specified,main
is used. If the method is not static, a new instance of type is created:"foo::Instance" => Instance().main() "foo::Instance.bar" => Instance().bar() "foo::Static" => Static.main() "foo::Static.bar" => Static.bar()