|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.view.facelets.TagHandler javax.faces.view.facelets.MetaTagHandler javax.faces.view.facelets.DelegatingMetaTagHandler
public abstract class DelegatingMetaTagHandler
Enable the JSF
implementation to provide the appropriate behavior for the kind of
MetaTagHandler
subclass for each kind of element in the view,
while providing a base-class from which those wanting to make a Java
language custom tag handler can inherit. The JSF runtime provides
the implementation of getTagHandlerDelegate()
for the
appropriate subclass.
Field Summary | |
---|---|
protected TagHandlerDelegateFactory |
delegateFactory
|
Fields inherited from class javax.faces.view.facelets.TagHandler |
---|
nextHandler, tag, tagId |
Constructor Summary | |
---|---|
DelegatingMetaTagHandler(TagConfig config)
|
Method Summary | |
---|---|
void |
apply(FaceletContext ctx,
UIComponent parent)
The default implementation simply
calls through to |
void |
applyNextHandler(FaceletContext ctx,
UIComponent c)
Invoke the |
protected MetaRuleset |
createMetaRuleset(java.lang.Class type)
The default implementation simply
calls through to |
TagAttribute |
getBinding()
|
Tag |
getTag()
|
TagAttribute |
getTagAttribute(java.lang.String localName)
|
protected abstract TagHandlerDelegate |
getTagHandlerDelegate()
|
java.lang.String |
getTagId()
|
boolean |
isDisabled(FaceletContext ctx)
|
void |
setAttributes(FaceletContext ctx,
java.lang.Object instance)
Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance. |
Methods inherited from class javax.faces.view.facelets.TagHandler |
---|
getAttribute, getRequiredAttribute, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected TagHandlerDelegateFactory delegateFactory
Constructor Detail |
---|
public DelegatingMetaTagHandler(TagConfig config)
Method Detail |
---|
protected abstract TagHandlerDelegate getTagHandlerDelegate()
public boolean isDisabled(FaceletContext ctx)
public TagAttribute getBinding()
public Tag getTag()
public java.lang.String getTagId()
public TagAttribute getTagAttribute(java.lang.String localName)
public void setAttributes(FaceletContext ctx, java.lang.Object instance)
MetaTagHandler
setAttributes
in class MetaTagHandler
public void apply(FaceletContext ctx, UIComponent parent) throws java.io.IOException
The default implementation simply
calls through to TagHandlerDelegate#apply
.
ctx
- the FaceletContext
for this view executionparent
- the parent UIComponent
of the
component represented by this element instance.
java.io.IOException
- if unable to load relativePath
public void applyNextHandler(FaceletContext ctx, UIComponent c) throws java.io.IOException, FacesException, ELException
Invoke the apply()
method on this instance's TagHandler#nextHandler
.
ctx
- the FaceletContext
for this view executionc
- the UIComponent
of the
component represented by this element instance.
java.io.IOException
FacesException
ELException
protected MetaRuleset createMetaRuleset(java.lang.Class type)
The default implementation simply
calls through to TagHandlerDelegate#createMetaRuleset
and
returns the result.
createMetaRuleset
in class MetaTagHandler
type
- the Class
for which the
MetaRuleset
must be created.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41