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, BindTabboxRenderer, BindTreeitemRenderer

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

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

Since:
6.0.0
Author:
dennis
See Also:
Serialized Form

Field Summary
protected static java.lang.String CURRENT_INDEX_RESOLVER_ATTR
           
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 IS_TEMPLATE_MODEL_ENABLED_ATTR
           
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 index, java.lang.String varnm)
           
protected  void addTemplateTracking(Component templateComp, Component eachComp, java.lang.Object data, int index, int size)
           
protected  Component[] filterOutShadows(Component parent, Component[] items)
           
protected  Template resolveTemplate(Component templateComp, Component comp, java.lang.Object data, int index, int size, java.lang.String defaultName)
           
protected  Template resolveTemplate(Component templateComp, Component comp, java.lang.Object data, int index, int size, java.lang.String defaultName, java.lang.String subType)
           
 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

IS_TEMPLATE_MODEL_ENABLED_ATTR

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

CURRENT_INDEX_RESOLVER_ATTR

protected static final java.lang.String CURRENT_INDEX_RESOLVER_ATTR
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


resolveTemplate

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

resolveTemplate

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

filterOutShadows

protected Component[] filterOutShadows(Component parent,
                                       Component[] items)

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)


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