org.zkoss.zml
Class Transformer

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zml.Transformer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Component, Scope, ComponentCtrl

public class Transformer
extends AbstractComponent

XML transformer.

Author:
tomyeh
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
AbstractComponent.Children
 
Field Summary
 
Fields inherited from class org.zkoss.zk.ui.AbstractComponent
_visible
 
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
Transformer()
           
 
Method Summary
 java.lang.Object getXsl()
          Returns the XSL (Extensible Stylesheet Language), or null if not available.
 void redraw(java.io.Writer out)
          Redraws this component.
 void setXsl(org.w3c.dom.Document xsl)
          Sets the XSL with a document.
 void setXsl(Document xsl)
          Sets the XSL with a iDOM document.
 void setXsl(java.io.File xsl)
          Sets the XSL with a file.
 void setXsl(java.io.InputStream xsl)
          Sets the XSL with an input stream.
 void setXsl(java.io.Reader xsl)
          Sets the XSL with a reader.
 void setXsl(javax.xml.transform.Source xsl)
          Sets the XSL with a XML source.
 void setXsl(java.lang.String xsl)
          Sets the XSL with the resource path.
 void setXsl(java.net.URL xsl)
          Sets the XSL with an URL.
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendAsapAttr, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getCommand, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getExtraCtrl, getFellow, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, hasFellow, insertBefore, invalidate, isAsapRequired, isChildable, isInvalidated, isListenerAvailable, isVisible, newChildren, 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, smartUpdateDeferred, smartUpdateValues, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transformer

public Transformer()
Method Detail

getXsl

public java.lang.Object getXsl()
Returns the XSL (Extensible Stylesheet Language), or null if not available.

See Also:
setXsl(String), setXsl(URL), setXsl(File), setXsl(Source)

setXsl

public void setXsl(java.lang.String xsl)
Sets the XSL with the resource path. The resource must be retrievable by use of WebApp.getResource(java.lang.String).


setXsl

public void setXsl(java.io.File xsl)
Sets the XSL with a file.


setXsl

public void setXsl(java.net.URL xsl)
Sets the XSL with an URL.


setXsl

public void setXsl(java.io.InputStream xsl)
Sets the XSL with an input stream.


setXsl

public void setXsl(java.io.Reader xsl)
Sets the XSL with a reader.


setXsl

public void setXsl(javax.xml.transform.Source xsl)
Sets the XSL with a XML source.


setXsl

public void setXsl(org.w3c.dom.Document xsl)
Sets the XSL with a document.


setXsl

public void setXsl(Document xsl)
Sets the XSL with a iDOM document.


redraw

public void redraw(java.io.Writer out)
            throws java.io.IOException
Description copied from class: AbstractComponent
Redraws this component. This method implements the mold mechanism.
  1. It first invokes AbstractComponent.getMoldURI() to retrieve the mold to redraw. The mold is either an URI (String) or a ComponentRenderer instance.
  2. If URI, it invokes Execution.include(java.io.Writer, java.lang.String, java.util.Map, int) to generate the output.
  3. If a ComponentRenderer instance, ComponentRenderer.render(org.zkoss.zk.ui.Component, java.io.Writer) is called to generate the output.
  4. Specified by:
    redraw in interface Component
    Overrides:
    redraw in class AbstractComponent
    Throws:
    java.io.IOException


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