org.zkoss.bind.impl
Class AbstractRenderer

java.lang.Object
  extended by org.zkoss.bind.impl.AbstractRenderer
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BindChildRenderer, BindChosenboxRenderer, BindComboitemRenderer, BindListitemRenderer, BindRadioRenderer, BindRowRenderer, BindSelectboxRenderer, BindTreeitemRenderer

public abstract class AbstractRenderer
extends java.lang.Object
implements java.io.Serializable

to handle the common task of resolver a template fo a renderer

Since:
6.0.0
Author:
dennis
See Also:
Serialized Form

Field Summary
protected static java.lang.String EACH_ATTR
           
protected static java.lang.String EACH_STATUS_VAR
           
protected static java.lang.String EACH_VAR
           
protected static java.lang.String STATUS_ATTR
           
protected static java.lang.String STATUS_POST_VAR
           
 
Constructor Summary
AbstractRenderer()
           
 
Method Summary
protected  void addItemReference(Component modelOwner, Component comp, int[] path, java.lang.String varnm)
           
protected  void addItemReference(Component modelOwner, Component comp, int index, java.lang.String varnm)
           
protected  void addTemplateTracking(Component templateComp, Component eachComp, java.lang.Object data, int index, int size)
           
protected  Template resoloveTemplate(Component templateComp, Component comp, java.lang.Object data, int index, int size, java.lang.String defaultName)
           
 void setAttributeName(java.lang.String name)
          the attribute name to get a template
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EACH_ATTR

protected static final java.lang.String EACH_ATTR
See Also:
Constant Field Values

EACH_VAR

protected static final java.lang.String EACH_VAR
See Also:
Constant Field Values

STATUS_ATTR

protected static final java.lang.String STATUS_ATTR
See Also:
Constant Field Values

STATUS_POST_VAR

protected static final java.lang.String STATUS_POST_VAR
See Also:
Constant Field Values

EACH_STATUS_VAR

protected static final java.lang.String EACH_STATUS_VAR
See Also:
Constant Field Values
Constructor Detail

AbstractRenderer

public AbstractRenderer()
Method Detail

setAttributeName

public void setAttributeName(java.lang.String name)
the attribute name to get a template


resoloveTemplate

protected Template resoloveTemplate(Component templateComp,
                                    Component comp,
                                    java.lang.Object data,
                                    int index,
                                    int size,
                                    java.lang.String defaultName)

addTemplateTracking

protected void addTemplateTracking(Component templateComp,
                                   Component eachComp,
                                   java.lang.Object data,
                                   int index,
                                   int size)

addItemReference

protected void addItemReference(Component modelOwner,
                                Component comp,
                                int index,
                                java.lang.String varnm)

addItemReference

protected void addItemReference(Component modelOwner,
                                Component comp,
                                int[] path,
                                java.lang.String varnm)


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