org.apache.myfaces.view.facelets.tag.jsf
Class BehaviorTagHandlerDelegate

java.lang.Object
  extended by javax.faces.view.facelets.TagHandlerDelegate
      extended by org.apache.myfaces.view.facelets.tag.jsf.BehaviorTagHandlerDelegate
All Implemented Interfaces:
javax.faces.view.AttachedObjectHandler, javax.faces.view.BehaviorHolderAttachedObjectHandler

public class BehaviorTagHandlerDelegate
extends javax.faces.view.facelets.TagHandlerDelegate
implements javax.faces.view.BehaviorHolderAttachedObjectHandler

Since:
2.0
Version:
$Revision: 964310 $ $Date: 2010-07-15 01:17:19 -0500 (Thu, 15 Jul 2010) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Constructor Summary
BehaviorTagHandlerDelegate(javax.faces.view.facelets.BehaviorHandler delegate)
           
 
Method Summary
 void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent)
           
 void applyAttachedObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent parent)
          Create a ClientBehavior and attach it to the component
protected  javax.faces.component.behavior.Behavior createBehavior(javax.faces.view.facelets.FaceletContext ctx)
           
 javax.faces.view.facelets.MetaRuleset createMetaRuleset(java.lang.Class type)
          This tag call _delegate.setAttributes, so the returned MetaRuleset should ignore attributes that are not supposed to be there like "binding" and "event"
 java.lang.String getEventName()
           
 java.lang.String getFor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BehaviorTagHandlerDelegate

public BehaviorTagHandlerDelegate(javax.faces.view.facelets.BehaviorHandler delegate)
Method Detail

apply

public void apply(javax.faces.view.facelets.FaceletContext ctx,
                  javax.faces.component.UIComponent parent)
           throws java.io.IOException
Specified by:
apply in class javax.faces.view.facelets.TagHandlerDelegate
Throws:
java.io.IOException

createBehavior

protected javax.faces.component.behavior.Behavior createBehavior(javax.faces.view.facelets.FaceletContext ctx)

createMetaRuleset

public javax.faces.view.facelets.MetaRuleset createMetaRuleset(java.lang.Class type)
This tag call _delegate.setAttributes, so the returned MetaRuleset should ignore attributes that are not supposed to be there like "binding" and "event"

Specified by:
createMetaRuleset in class javax.faces.view.facelets.TagHandlerDelegate

applyAttachedObject

public void applyAttachedObject(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent parent)
Create a ClientBehavior and attach it to the component

Specified by:
applyAttachedObject in interface javax.faces.view.AttachedObjectHandler

getFor

public java.lang.String getFor()
Specified by:
getFor in interface javax.faces.view.AttachedObjectHandler

getEventName

public java.lang.String getEventName()
Specified by:
getEventName in interface javax.faces.view.BehaviorHolderAttachedObjectHandler


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.