public class ThemeTypeConverter extends Object implements javax.faces.convert.Converter
ThemeType enum.
Converts between ThemeType enum values and their
corresponding human-friendly String representation.
Example:
ThemeType.ADVENTURE ↔ "Adventure"ThemeType.HISTORY ↔ "History"
This converter is automatically applied to all ThemeType properties
in JSF views due to the FacesConverter.forClass() annotation.
| Constructor and Description |
|---|
ThemeTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String value)
Converts a String value from the JSF view into a
ThemeType enum. |
String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Converts a
ThemeType enum value into a human-friendly String
for display in the JSF view. |
public Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
ThemeType enum.getAsObject in interface javax.faces.convert.Convertercontext - the JSF FacesContextcomponent - the UI component associated with this conversionvalue - the string value from the JSF viewThemeType enum, or null if the value is emptypublic String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
ThemeType enum value into a human-friendly String
for display in the JSF view.getAsString in interface javax.faces.convert.Convertercontext - the JSF FacesContextcomponent - the UI component associated with this conversionvalue - the ThemeType enum value to convertnullCopyright © 2025. All rights reserved.