org.zkoss.bind.impl
Class TemplateResolverImpl

java.lang.Object
  extended by org.zkoss.bind.impl.TemplateResolverImpl
All Implemented Interfaces:
java.io.Serializable, TemplateResolver

public class TemplateResolverImpl
extends java.lang.Object
implements TemplateResolver, java.io.Serializable

rename it to template binding?

Since:
6.0.0
Author:
dennis
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.zkoss.bind.sys.TemplateResolver
EACH_ATTR, EACH_STATUS_VAR, EACH_VAR, STATUS_ATTR
 
Constructor Summary
TemplateResolverImpl(Binder binder, Component comp, java.lang.String attr, java.lang.String templateExpr, java.util.Map<java.lang.String,java.lang.Object> templateArgs)
           
 
Method Summary
 void addTemplateTracking(Component eachComp)
          Add template tracking to component
 java.lang.String getExpression()
           
 Template resolveTemplate(Component eachComp, java.lang.Object eachData, int index, int size)
          Resolve the template for the component
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateResolverImpl

public TemplateResolverImpl(Binder binder,
                            Component comp,
                            java.lang.String attr,
                            java.lang.String templateExpr,
                            java.util.Map<java.lang.String,java.lang.Object> templateArgs)
Method Detail

getExpression

public java.lang.String getExpression()

resolveTemplate

public Template resolveTemplate(Component eachComp,
                                java.lang.Object eachData,
                                int index,
                                int size)
Description copied from interface: TemplateResolver
Resolve the template for the component

Specified by:
resolveTemplate in interface TemplateResolver
Parameters:
eachComp - the template to be resolved of the component
eachData - the data for resolver
index - the index of each
size - the size of data set
Returns:
the template if exist.

addTemplateTracking

public void addTemplateTracking(Component eachComp)
Description copied from interface: TemplateResolver
Add template tracking to component

Specified by:
addTemplateTracking in interface TemplateResolver
Parameters:
eachComp - the component to add template tracking

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo