public class ImportEnumTagHandler
extends javax.faces.view.facelets.TagHandler
TagHandler
for the ImportEnum
component.Constructor and Description |
---|
ImportEnumTagHandler(javax.faces.view.facelets.TagConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent) |
protected Class<?> |
getClassFromAttribute(javax.faces.view.facelets.TagAttribute attribute,
javax.faces.view.facelets.FaceletContext ctx)
Gets the
Class from the TagAttribute . |
protected Map<String,Object> |
getEnumValues(javax.faces.context.FacesContext facesContext,
Class<?> type,
String allSuffix)
Get all enum values of the given
Class . |
public ImportEnumTagHandler(javax.faces.view.facelets.TagConfig config)
public void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent) throws IOException
IOException
protected 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 Map<String,Object> getEnumValues(javax.faces.context.FacesContext facesContext, Class<?> type, String allSuffix)
Class
.facesContext
- The FacesContext
.type
- The enum class.allSuffix
- The suffix to access a array with all enum values.Map
with the enum values.Copyright © 2020. All rights reserved.