T - public class CanvasMacros<T extends HtmlCanvas> extends Object
| Constructor and Description |
|---|
CanvasMacros(T canvas) |
| Modifier and Type | Method and Description |
|---|---|
T |
cdata(String cdata)
Write some character data inside a CDATA section.
|
T |
favicon(String iconHref)
Write the link tag with a reference to the favicon.
|
T |
javascript(String jsHref)
Write the script tag with a reference to the external resource.
|
T |
script(String code)
Write the script tag with code content.
|
T |
stylesheet(String cssHref)
Write the link tag with a reference to the external resource.
|
public CanvasMacros(T canvas)
public T script(String code) throws IOException
code - IOExceptionpublic T stylesheet(String cssHref) throws IOException
cssHref - IOExceptionpublic T javascript(String jsHref) throws IOException
jsHref - IOExceptionpublic T cdata(String cdata) throws IOException
cdata - IOExceptionpublic T favicon(String iconHref) throws IOException
iconHref - IOExceptionCopyright © 2010–2018. All rights reserved.