|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.tobago.util.ComponentUtil
public class ComponentUtil
| Field Summary | |
|---|---|
static Class[] |
ACTION_ARGS
|
static Class[] |
ACTION_LISTENER_ARGS
|
static String |
LIST_SEPARATOR_CHARS
|
static Class[] |
VALIDATOR_ARGS
|
static Class[] |
VALUE_CHANGE_LISTENER_ARGS
|
| Method Summary | |
|---|---|
static boolean |
containsPopupActionListener(UICommand command)
|
static ActionListener |
createActionListener(String type)
|
static String |
createPickerId(FacesContext facesContext,
UIComponent component,
String postfix)
|
static ValueBinding |
createValueBinding(String value)
|
static String |
findClientIdFor(UIComponent component,
FacesContext facesContext)
Looks for the attribute "for" in the component. |
static UIComponent |
findComponent(UIComponent from,
String relativeId)
colonCount == 0: fully relative colonCount == 1: absolute (still normal findComponent syntax) colonCount > 1: for each extra colon after 1, go up a naming container (to the view root, if naming containers run out) |
static UIComponent |
findFor(UIComponent component)
|
static AbstractUIForm |
findForm(UIComponent component)
|
static AbstractUIPage |
findPage(FacesContext facesContext)
|
static AbstractUIPage |
findPage(FacesContext context,
UIComponent component)
|
static AbstractUIPage |
findPage(UIComponent component)
|
static Object |
findParameter(UIComponent component,
String name)
|
static List<AbstractUIForm> |
findSubForms(UIComponent component)
Find all subforms of a component, and collects it. |
static Object |
getAttribute(UIComponent component,
String name)
|
static boolean |
getBooleanAttribute(UIComponent component,
String name)
|
static Character |
getCharacterAttribute(UIComponent component,
String name)
|
static Character |
getCharakterAttribute(UIComponent component,
String name)
Deprecated. please use the method getCharacterAttribute(javax.faces.component.UIComponent, String) |
static String |
getComponentId(FacesContext facesContext,
UIComponent component)
|
static String |
getFacesMessageAsString(FacesContext facesContext,
UIComponent component)
|
static UIGraphic |
getFirstGraphicChild(UIComponent component)
|
static UIOutput |
getFirstNonGraphicChild(UIComponent component)
|
static int |
getIntAttribute(UIComponent component,
String name)
|
static int |
getIntAttribute(UIComponent component,
String name,
int defaultValue)
|
static int |
getIntValue(ValueBinding valueBinding)
|
static LayoutRenderer |
getLayoutRenderer(FacesContext facesContext,
String family,
String rendererType)
|
static String[] |
getMarkupBinding(FacesContext facesContext,
SupportsMarkup component)
|
static Object |
getObjectAttribute(UIComponent component,
String name)
|
static LayoutableRenderer |
getRenderer(FacesContext facesContext,
String family,
String rendererType)
|
static LayoutableRenderer |
getRenderer(FacesContext facesContext,
UIComponent component)
|
static RendererBase |
getRendererBase(FacesContext facesContext,
String family,
String rendererType)
|
static RendererBase |
getRendererBase(FacesContext facesContext,
UIComponent component)
|
static String |
getStringAttribute(UIComponent component,
String name)
|
static boolean |
hasErrorMessages(FacesContext context)
|
static boolean |
hasSelectedValue(List<SelectItem> items,
Object value)
|
static boolean |
isError(UIComponent component)
|
static boolean |
isError(UIInput uiInput)
|
static boolean |
isFacetOf(UIComponent component,
UIComponent parent)
|
static boolean |
isHoverEnabled(UIComponent component)
|
static boolean |
isInActiveForm(UIComponent component)
|
static boolean |
isInPopup(UIComponent component)
|
static boolean |
isOutputOnly(UIComponent component)
|
static boolean |
mayUpdateModel(UIComponent component)
|
static boolean |
mayValidate(UIComponent component)
|
static UIComponent |
provideLabel(FacesContext facesContext,
UIComponent component)
|
static String |
removePx(String value)
|
static void |
resetPage(FacesContext context)
|
static void |
setAction(ActionSource component,
String action)
|
static void |
setActionListener(ActionSource command,
String actionListener)
|
static void |
setConverter(UIComponent component,
String converterId)
Deprecated. please use the typesave method setConverter(javax.faces.component.ValueHolder, String) |
static void |
setConverter(ValueHolder valueHolder,
String converterId)
|
static void |
setIntegerSizeProperty(UIComponent component,
String name,
String value)
|
static void |
setMarkup(UIComponent markupComponent,
String markup)
|
static void |
setStringProperty(UIComponent component,
String name,
String value)
|
static void |
setStyleClasses(UIComponent component,
String styleClasses)
|
static void |
setValidator(EditableValueHolder editableValueHolder,
String validator)
|
static void |
setValueBinding(UIComponent component,
String name,
String state)
|
static void |
setValueChangeListener(EditableValueHolder valueHolder,
String valueChangeListener)
|
static void |
setValueForValueBinding(String name,
Object value)
|
static String[] |
splitList(String renderers)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Class[] ACTION_ARGS
public static final Class[] ACTION_LISTENER_ARGS
public static final Class[] VALUE_CHANGE_LISTENER_ARGS
public static final Class[] VALIDATOR_ARGS
public static final String LIST_SEPARATOR_CHARS
| Method Detail |
|---|
public static boolean hasErrorMessages(FacesContext context)
public static boolean containsPopupActionListener(UICommand command)
public static String getFacesMessageAsString(FacesContext facesContext,
UIComponent component)
public static boolean isInPopup(UIComponent component)
public static void resetPage(FacesContext context)
public static AbstractUIPage findPage(FacesContext context,
UIComponent component)
public static AbstractUIPage findPage(UIComponent component)
public static AbstractUIPage findPage(FacesContext facesContext)
public static AbstractUIForm findForm(UIComponent component)
public static List<AbstractUIForm> findSubForms(UIComponent component)
public static String findClientIdFor(UIComponent component,
FacesContext facesContext)
public static UIComponent findFor(UIComponent component)
public static boolean isInActiveForm(UIComponent component)
public static boolean isError(UIInput uiInput)
public static boolean isError(UIComponent component)
public static boolean isOutputOnly(UIComponent component)
public static boolean mayValidate(UIComponent component)
public static boolean mayUpdateModel(UIComponent component)
public static boolean getBooleanAttribute(UIComponent component,
String name)
public static ValueBinding createValueBinding(String value)
public static void setStringProperty(UIComponent component,
String name,
String value)
public static void setStyleClasses(UIComponent component,
String styleClasses)
public static void setMarkup(UIComponent markupComponent,
String markup)
public static Object getAttribute(UIComponent component,
String name)
public static Object getObjectAttribute(UIComponent component,
String name)
public static String getStringAttribute(UIComponent component,
String name)
public static int getIntAttribute(UIComponent component,
String name)
public static int getIntAttribute(UIComponent component,
String name,
int defaultValue)
@Deprecated
public static Character getCharakterAttribute(UIComponent component,
String name)
getCharacterAttribute(javax.faces.component.UIComponent, String)
component - name -
public static Character getCharacterAttribute(UIComponent component,
String name)
public static boolean isFacetOf(UIComponent component,
UIComponent parent)
public static LayoutableRenderer getRenderer(FacesContext facesContext,
UIComponent component)
public static LayoutRenderer getLayoutRenderer(FacesContext facesContext,
String family,
String rendererType)
public static LayoutableRenderer getRenderer(FacesContext facesContext,
String family,
String rendererType)
public static RendererBase getRendererBase(FacesContext facesContext,
UIComponent component)
public static RendererBase getRendererBase(FacesContext facesContext,
String family,
String rendererType)
public static Object findParameter(UIComponent component,
String name)
public static ActionListener createActionListener(String type)
throws JspException
JspExceptionpublic static UIGraphic getFirstGraphicChild(UIComponent component)
public static boolean isHoverEnabled(UIComponent component)
public static UIOutput getFirstNonGraphicChild(UIComponent component)
public static void setIntegerSizeProperty(UIComponent component,
String name,
String value)
public static String removePx(String value)
public static void setValueForValueBinding(String name,
Object value)
public static boolean hasSelectedValue(List<SelectItem> items,
Object value)
public static int getIntValue(ValueBinding valueBinding)
public static String createPickerId(FacesContext facesContext,
UIComponent component,
String postfix)
public static String getComponentId(FacesContext facesContext,
UIComponent component)
public static UIComponent provideLabel(FacesContext facesContext,
UIComponent component)
public static void setValidator(EditableValueHolder editableValueHolder,
String validator)
@Deprecated
public static void setConverter(UIComponent component,
String converterId)
setConverter(javax.faces.component.ValueHolder, String)
component - converterId -
public static void setConverter(ValueHolder valueHolder,
String converterId)
public static void setAction(ActionSource component,
String action)
public static void setActionListener(ActionSource command,
String actionListener)
public static void setValueChangeListener(EditableValueHolder valueHolder,
String valueChangeListener)
public static void setValueBinding(UIComponent component,
String name,
String state)
public static String[] getMarkupBinding(FacesContext facesContext,
SupportsMarkup component)
public static UIComponent findComponent(UIComponent from,
String relativeId)
public static String[] splitList(String renderers)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||