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:
AttachedObjectHandler, BehaviorHolderAttachedObjectHandler

public class BehaviorTagHandlerDelegate
extends TagHandlerDelegate
implements 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(BehaviorHandler delegate)
           
 
Method Summary
 void apply(FaceletContext ctx, UIComponent parent)
           
 void applyAttachedObject(FacesContext context, UIComponent parent)
          Create a ClientBehavior and attach it to the component
protected  Behavior createBehavior(FaceletContext ctx)
           
 MetaRuleset createMetaRuleset(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"
 String getEventName()
           
 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(BehaviorHandler delegate)
Method Detail

apply

public void apply(FaceletContext ctx,
                  UIComponent parent)
           throws IOException
Specified by:
apply in class TagHandlerDelegate
Throws:
IOException

createBehavior

protected Behavior createBehavior(FaceletContext ctx)

createMetaRuleset

public MetaRuleset createMetaRuleset(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 TagHandlerDelegate

applyAttachedObject

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

Specified by:
applyAttachedObject in interface AttachedObjectHandler

getFor

public String getFor()
Specified by:
getFor in interface AttachedObjectHandler

getEventName

public String getEventName()
Specified by:
getEventName in interface BehaviorHolderAttachedObjectHandler


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