org.zkoss.jsf.zul.impl
Class Inline

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.jsf.zul.impl.Inline
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.sys.ComponentCtrl

public class Inline
extends org.zkoss.zk.ui.AbstractComponent

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 setContent(java.lang.String).

Since the content is sent to client directly, Inline has some limitations:

  1. The content cannot be changed dynamically. In other words, once the output of Inline is sent to the client, calling setContent(java.lang.String) 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.
  2. No style, no tooltip or others to control the look of Inline.

Author:
tomyeh
See Also:
Html, Serialized Form

Field Summary
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Constructor Summary
Inline()
          Constructs a Inline component to embed HTML tags.
Inline(java.lang.String content)
          Constructs a Inline component to embed HTML tags with the specified content.
 
Method Summary
 java.lang.String getContent()
          Returns the embedded content (i.e., HTML tags).
 boolean isChildable()
          Default: not childable.
 void redraw(java.io.Writer out)
           
 void setContent(java.lang.String content)
          Sets the embedded content (i.e., HTML tags).
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isAsapRequired, isListenerAvailable, isVisible, newExtraCtrl, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setPageBefore, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Inline

public Inline()
Constructs a Inline component to embed HTML tags.


Inline

public Inline(java.lang.String content)
Constructs a Inline component to embed HTML tags with the specified content.

Method Detail

getContent

public java.lang.String getContent()
Returns the embedded content (i.e., HTML tags).

Default: empty ("").


setContent

public void setContent(java.lang.String content)
Sets the embedded content (i.e., HTML tags).

Note: Unlike 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.


isChildable

public boolean isChildable()
Default: not childable.

Specified by:
isChildable in interface org.zkoss.zk.ui.Component
Overrides:
isChildable in class org.zkoss.zk.ui.AbstractComponent

redraw

public void redraw(java.io.Writer out)
            throws java.io.IOException
Specified by:
redraw in interface org.zkoss.zk.ui.Component
Overrides:
redraw in class org.zkoss.zk.ui.AbstractComponent
Throws:
java.io.IOException


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.