org.apache.myfaces.trinidadinternal.renderkit.uix
Class SelectItemSupport
java.lang.Object
org.apache.myfaces.trinidadinternal.renderkit.uix.SelectItemSupport
public class SelectItemSupport
- extends java.lang.Object
Method Summary |
static void |
addSelectItem(javax.faces.component.UISelectItem uiItem,
java.util.List<javax.faces.model.SelectItem> items)
Adds a SelectItem object derived from
a UISelectItem component into the items List. |
static void |
addSelectItems(javax.faces.component.UISelectItems uiItems,
java.util.List<javax.faces.model.SelectItem> items)
Adds SelectItem objects derived from
a UISelectItems component into the items List. |
static javax.faces.convert.Converter |
getConverter(javax.faces.component.UIComponent component)
|
static int |
getSelectItemCount(javax.faces.component.UIComponent component)
|
static java.util.List<javax.faces.model.SelectItem> |
getSelectItems(javax.faces.component.UIComponent component,
javax.faces.convert.Converter converter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSelectItems
public static java.util.List<javax.faces.model.SelectItem> getSelectItems(javax.faces.component.UIComponent component,
javax.faces.convert.Converter converter)
- Parameters:
component
- UIComponentconverter
- For UISelectItem and UIXSelectItem children of the
component, use the converter to convert itemValue Strings
when creating the javax.faces.model.SelectItem Object if
the child's value is not an instanceof SelectItem.
- Returns:
- a List of javax.faces.model.SelectItem Objects that we get or
create from the component's children.
OR
java.util.Collections.emptyList if component has no children or
the component isn't a javax.faces.component.ValueHolder. else
getSelectItemCount
public static int getSelectItemCount(javax.faces.component.UIComponent component)
- Parameters:
component
- UIComponent
- Returns:
- item count
addSelectItem
public static void addSelectItem(javax.faces.component.UISelectItem uiItem,
java.util.List<javax.faces.model.SelectItem> items)
- Adds a SelectItem object derived from
a UISelectItem component into the items List.
addSelectItems
public static void addSelectItems(javax.faces.component.UISelectItems uiItems,
java.util.List<javax.faces.model.SelectItem> items)
- Adds SelectItem objects derived from
a UISelectItems component into the items List.
getConverter
public static javax.faces.convert.Converter getConverter(javax.faces.component.UIComponent component)
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.