| org.zkoss.jsf.zul.impl.AbstractComponent org.zkoss.jsf.zul.impl.Inline
Inline | public class Inline extends AbstractComponent (Code) | | A component used to embed the browser native content (i.e., HTML tags)
into the output sent to the browser without additional HTML SPAN.
The browser native content is specified by
Inline.setContent .
Since the content is sent to client directly,
Inline has some limitations:
- The content cannot be changed dynamically. In other words,
once the output of
Inline is sent to the client,
calling
Inline.setContent won't cause the client to change
the content accordingly.
Rather, you have to invalidate its parent, such that the new
content will be sent to the client with its parent's content.
- No style, no tooltip or others to control the look of
Inline .
author: tomyeh See Also: org.zkoss.zul.Html |
Constructor Summary | |
public | Inline() Constructs a
Inline component to embed HTML tags. | public | Inline(String content) Constructs a
Inline component to embed HTML tags
with the specified content. |
Inline | public Inline()(Code) | | Constructs a
Inline component to embed HTML tags.
|
Inline | public Inline(String content)(Code) | | Constructs a
Inline component to embed HTML tags
with the specified content.
|
getContent | public String getContent()(Code) | | Returns the embedded content (i.e., HTML tags).
Default: empty ("").
|
isChildable | public boolean isChildable()(Code) | | Default: not childable.
|
setContent | public void setContent(String content)(Code) | | Sets the embedded content (i.e., HTML tags).
Note: Unlike
org.zkoss.zul.Html , the content of
Inline cannot be changed dynamically.
In other words, once the output of
Inline is sent the client, calling this method
won't change the content at the client accordingly.
Rather, you have to invalidate its parent, such that the new
content will be sent to the client with its parent's content.
|
|
|