public class ImportEnumTagHandler
extends javax.faces.view.facelets.TagHandler
TagHandler for the ImportEnum component.| Constructor and Description |
|---|
ImportEnumTagHandler(javax.faces.view.facelets.TagConfig config)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent) |
protected java.lang.Class<?> |
getClassFromAttribute(javax.faces.view.facelets.TagAttribute attribute,
javax.faces.view.facelets.FaceletContext ctx)
Gets the
Class from the TagAttribute. |
protected java.util.Map<java.lang.String,java.lang.Object> |
getEnumValues(java.lang.Class<?> clazz,
java.lang.String allPrefix)
Get all enum values of the given
Class. |
public ImportEnumTagHandler(javax.faces.view.facelets.TagConfig config)
config - The TagConfig.public void apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Class<?> getClassFromAttribute(javax.faces.view.facelets.TagAttribute attribute,
javax.faces.view.facelets.FaceletContext ctx)
Class from the TagAttribute.attribute - The TagAttribute.ctx - The FaceletContext.Class.protected java.util.Map<java.lang.String,java.lang.Object> getEnumValues(java.lang.Class<?> clazz,
java.lang.String allPrefix)
Class.clazz - The enum class.Map with the enum values.Copyright © 2011-2015. All Rights Reserved.