|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.tobago.component.ComponentUtil
public class ComponentUtil
Field Summary | |
---|---|
static java.lang.Class[] |
ACTION_ARGS
|
static java.lang.Class[] |
ACTION_LISTENER_ARGS
|
static java.lang.Class[] |
VALIDATOR_ARGS
|
static java.lang.Class[] |
VALUE_CHANGE_LISTENER_ARGS
|
Method Summary | ||
---|---|---|
static void |
addOnloadCommands(UIComponent component,
java.lang.String[] cmds)
|
|
static void |
addScripts(UIComponent component,
java.lang.String[] scripts)
|
|
static void |
addStyles(UIComponent component,
java.lang.String[] styles)
|
|
static boolean |
containsPopupActionListener(UICommand command)
|
|
static ActionListener |
createActionListener(java.lang.String type)
|
|
static UIColumn |
createColumn(java.lang.String label,
java.lang.String sortable,
java.lang.String align,
UIComponent child)
Deprecated. |
|
static UIColumn |
createColumn(java.lang.String label,
java.lang.String sortable,
java.lang.String align,
UIComponent child,
java.lang.String id)
|
|
static UIComponent |
createComponent(FacesContext facesContext,
java.lang.String componentType,
java.lang.String rendererType)
Deprecated. |
|
static UIComponent |
createComponent(FacesContext facesContext,
java.lang.String componentType,
java.lang.String rendererType,
java.lang.String id)
|
|
static UIComponent |
createComponent(java.lang.String componentType,
java.lang.String rendererType)
Deprecated. |
|
static UIComponent |
createComponent(java.lang.String componentType,
java.lang.String rendererType,
java.lang.String id)
|
|
static java.lang.String |
createPickerId(FacesContext facesContext,
UIComponent component,
java.lang.String postfix)
|
|
static UIColumn |
createTextColumn(java.lang.String label,
java.lang.String sortable,
java.lang.String align,
java.lang.String value)
Deprecated. |
|
static UIColumn |
createTextColumn(java.lang.String label,
java.lang.String sortable,
java.lang.String align,
java.lang.String value,
java.lang.String id)
|
|
static UIMenuSelectOne |
createUIMenuSelectOneFacet(FacesContext facesContext,
UICommand command)
Deprecated. |
|
static UIMenuSelectOne |
createUIMenuSelectOneFacet(FacesContext facesContext,
UICommand command,
java.lang.String id)
|
|
static UIComponent |
createUISelectBooleanFacet(FacesContext facesContext,
UICommand command)
Deprecated. |
|
static UIComponent |
createUISelectBooleanFacet(FacesContext facesContext,
UICommand command,
java.lang.String id)
|
|
static ValueBinding |
createValueBinding(java.lang.String value)
|
|
static java.lang.String |
currentValue(UIComponent component)
|
|
static java.lang.String |
findClientIdFor(UIComponent component,
FacesContext facesContext)
Looks for the attribute "for" in the component. |
|
static UIComponent |
findComponent(UIComponent from,
java.lang.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
|
findDescendant(UIComponent component,
java.lang.Class<T> type)
Searches the component tree beneath the component and return the first component matching the type. |
|
static UIComponent |
findFor(UIComponent component)
|
|
static UIForm |
findForm(UIComponent component)
|
|
static UIPage |
findPage(FacesContext facesContext)
|
|
static UIPage |
findPage(FacesContext context,
UIComponent component)
|
|
static UIPage |
findPage(UIComponent component)
|
|
static java.lang.Object |
findParameter(UIComponent component,
java.lang.String name)
|
|
static java.util.List<UIForm> |
findSubForms(UIComponent component)
Find all subforms of a component, and collects it. |
|
static java.lang.Object |
getAttribute(UIComponent component,
java.lang.String name)
|
|
static boolean |
getBooleanAttribute(UIComponent component,
java.lang.String name)
|
|
static java.lang.Character |
getCharacterAttribute(UIComponent component,
java.lang.String name)
|
|
static java.lang.Character |
getCharakterAttribute(UIComponent component,
java.lang.String name)
Deprecated. please use the method getCharacterAttribute(javax.faces.component.UIComponent, String) |
|
static java.lang.String |
getComponentId(FacesContext facesContext,
UIComponent component)
|
|
static java.lang.Object |
getConvertedValue(FacesContext facesContext,
UIInput component,
java.lang.String stringValue)
|
|
static java.lang.String |
getFacesMessageAsString(FacesContext facesContext,
UIComponent component)
|
|
static UIGraphic |
getFirstGraphicChild(UIComponent component)
|
|
static UIOutput |
getFirstNonGraphicChild(UIComponent component)
|
|
static int |
getIntAttribute(UIComponent component,
java.lang.String name)
|
|
static int |
getIntAttribute(UIComponent component,
java.lang.String name,
int defaultValue)
|
|
static int |
getIntValue(ValueBinding valueBinding)
|
|
static java.util.List<SelectItem> |
getItemsToRender(UISelectMany component)
|
|
static java.util.List<SelectItem> |
getItemsToRender(UISelectOne component)
|
|
static java.lang.String[] |
getMarkupBinding(FacesContext facesContext,
SupportsMarkup component)
|
|
static FacesMessage.Severity |
getMaximumSeverity(UIComponent component)
|
|
static LayoutableRendererBase |
getRenderer(FacesContext facesContext,
java.lang.String family,
java.lang.String rendererType)
|
|
static LayoutableRendererBase |
getRenderer(FacesContext facesContext,
UIComponent component)
|
|
static java.util.List<SelectItem> |
getSelectItems(UIComponent component)
|
|
static java.lang.String |
getStringAttribute(UIComponent component,
java.lang.String name)
|
|
static java.lang.String |
getValueFromEl(java.lang.String script)
|
|
static boolean |
hasErrorMessages(FacesContext context)
|
|
static boolean |
hasSelectedValue(java.util.List<SelectItem> items,
java.lang.Object value)
|
|
static void |
invokeOnComponent(FacesContext facesContext,
java.lang.String clientId,
UIComponent component,
Callback callback)
|
|
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 java.lang.String |
removePx(java.lang.String value)
|
|
static void |
resetPage(FacesContext context)
|
|
static void |
setAction(UICommand component,
java.lang.String type,
java.lang.String action)
|
|
static void |
setAction(UIComponent component,
java.lang.String type,
java.lang.String action)
Deprecated. please use the typesave method setAction(javax.faces.component.UICommand, String, String) |
|
static void |
setActionListener(ActionSource command,
java.lang.String actionListener)
|
|
static void |
setBooleanProperty(UIComponent component,
java.lang.String name,
java.lang.String value)
|
|
static void |
setConverter(UIComponent component,
java.lang.String converterId)
Deprecated. please use the typesave method setConverter(javax.faces.component.ValueHolder, String) |
|
static void |
setConverter(ValueHolder valueHolder,
java.lang.String converterId)
|
|
static void |
setIntegerProperty(UIComponent component,
java.lang.String name,
java.lang.String value)
|
|
static void |
setIntegerSizeProperty(UIComponent component,
java.lang.String name,
java.lang.String value)
|
|
static void |
setMarkup(UIComponent markupComponent,
java.lang.String markup)
|
|
static void |
setRenderedPartially(UICommand command,
java.lang.String renderers)
|
|
static void |
setSortActionListener(UIData data,
java.lang.String actionListener)
|
|
static void |
setStateChangeListener(UIData data,
java.lang.String stateChangeListener)
|
|
static void |
setStringProperty(UIComponent component,
java.lang.String name,
java.lang.String value)
|
|
static void |
setStyleClasses(UIComponent component,
java.lang.String styleClasses)
|
|
static void |
setSuggestMethodBinding(UIComponent component,
java.lang.String suggestMethod)
Deprecated. please use the typesave method setSuggestMethodBinding(UIInput, String) |
|
static void |
setSuggestMethodBinding(UIInput component,
java.lang.String suggestMethod)
|
|
static void |
setValidator(EditableValueHolder editableValueHolder,
java.lang.String validator)
|
|
static void |
setValueBinding(UIComponent component,
java.lang.String name,
java.lang.String state)
|
|
static void |
setValueChangeListener(EditableValueHolder valueHolder,
java.lang.String valueChangeListener)
|
|
static void |
setValueForValueBinding(java.lang.String name,
java.lang.Object value)
|
|
static java.lang.String |
toString(UIComponent component,
int offset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class[] ACTION_ARGS
public static final java.lang.Class[] ACTION_LISTENER_ARGS
public static final java.lang.Class[] VALUE_CHANGE_LISTENER_ARGS
public static final java.lang.Class[] VALIDATOR_ARGS
Method Detail |
---|
public static boolean hasErrorMessages(FacesContext context)
public static boolean containsPopupActionListener(UICommand command)
public static java.lang.String getFacesMessageAsString(FacesContext facesContext, UIComponent component)
public static boolean isInPopup(UIComponent component)
public static void resetPage(FacesContext context)
public static UIPage findPage(FacesContext context, UIComponent component)
public static UIPage findPage(UIComponent component)
public static void addStyles(UIComponent component, java.lang.String[] styles)
public static void addScripts(UIComponent component, java.lang.String[] scripts)
public static void addOnloadCommands(UIComponent component, java.lang.String[] cmds)
public static UIPage findPage(FacesContext facesContext)
public static UIForm findForm(UIComponent component)
public static java.util.List<UIForm> findSubForms(UIComponent component)
public static <T extends UIComponent> T findDescendant(UIComponent component, java.lang.Class<T> type)
public static java.lang.String findClientIdFor(UIComponent component, FacesContext facesContext)
public static UIComponent findFor(UIComponent component)
public static boolean isInActiveForm(UIComponent component)
public static FacesMessage.Severity getMaximumSeverity(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, java.lang.String name)
public static void setRenderedPartially(UICommand command, java.lang.String renderers)
public static void setStyleClasses(UIComponent component, java.lang.String styleClasses)
public static void setMarkup(UIComponent markupComponent, java.lang.String markup)
public static java.lang.Object getAttribute(UIComponent component, java.lang.String name)
public static java.lang.String getStringAttribute(UIComponent component, java.lang.String name)
public static int getIntAttribute(UIComponent component, java.lang.String name)
public static int getIntAttribute(UIComponent component, java.lang.String name, int defaultValue)
@Deprecated public static java.lang.Character getCharakterAttribute(UIComponent component, java.lang.String name)
getCharacterAttribute(javax.faces.component.UIComponent, String)
component
- name
- public static java.lang.Character getCharacterAttribute(UIComponent component, java.lang.String name)
public static boolean isFacetOf(UIComponent component, UIComponent parent)
public static LayoutableRendererBase getRenderer(FacesContext facesContext, UIComponent component)
public static LayoutableRendererBase getRenderer(FacesContext facesContext, java.lang.String family, java.lang.String rendererType)
public static java.lang.String currentValue(UIComponent component)
public static java.util.List<SelectItem> getSelectItems(UIComponent component)
public static java.lang.Object findParameter(UIComponent component, java.lang.String name)
public static java.lang.String toString(UIComponent component, int offset)
public static ActionListener createActionListener(java.lang.String type) throws JspException
JspException
public static UIGraphic getFirstGraphicChild(UIComponent component)
public static boolean isHoverEnabled(UIComponent component)
public static UIOutput getFirstNonGraphicChild(UIComponent component)
public static void setIntegerSizeProperty(UIComponent component, java.lang.String name, java.lang.String value)
public static java.lang.String removePx(java.lang.String value)
public static void setIntegerProperty(UIComponent component, java.lang.String name, java.lang.String value)
public static void setBooleanProperty(UIComponent component, java.lang.String name, java.lang.String value)
public static void setStringProperty(UIComponent component, java.lang.String name, java.lang.String value)
public static void setValueForValueBinding(java.lang.String name, java.lang.Object value)
public static ValueBinding createValueBinding(java.lang.String value)
public static java.lang.String getValueFromEl(java.lang.String script)
@Deprecated public static UIComponent createComponent(java.lang.String componentType, java.lang.String rendererType)
public static UIComponent createComponent(java.lang.String componentType, java.lang.String rendererType, java.lang.String id)
@Deprecated public static UIComponent createComponent(FacesContext facesContext, java.lang.String componentType, java.lang.String rendererType)
public static UIComponent createComponent(FacesContext facesContext, java.lang.String componentType, java.lang.String rendererType, java.lang.String id)
@Deprecated public static UIColumn createTextColumn(java.lang.String label, java.lang.String sortable, java.lang.String align, java.lang.String value)
public static UIColumn createTextColumn(java.lang.String label, java.lang.String sortable, java.lang.String align, java.lang.String value, java.lang.String id)
@Deprecated public static UIColumn createColumn(java.lang.String label, java.lang.String sortable, java.lang.String align, UIComponent child)
public static UIColumn createColumn(java.lang.String label, java.lang.String sortable, java.lang.String align, UIComponent child, java.lang.String id)
@Deprecated public static UIMenuSelectOne createUIMenuSelectOneFacet(FacesContext facesContext, UICommand command)
public static UIMenuSelectOne createUIMenuSelectOneFacet(FacesContext facesContext, UICommand command, java.lang.String id)
public static boolean hasSelectedValue(java.util.List<SelectItem> items, java.lang.Object value)
@Deprecated public static UIComponent createUISelectBooleanFacet(FacesContext facesContext, UICommand command)
public static UIComponent createUISelectBooleanFacet(FacesContext facesContext, UICommand command, java.lang.String id)
public static int getIntValue(ValueBinding valueBinding)
public static java.lang.String createPickerId(FacesContext facesContext, UIComponent component, java.lang.String postfix)
public static java.lang.String getComponentId(FacesContext facesContext, UIComponent component)
public static UIComponent provideLabel(FacesContext facesContext, UIComponent component)
public static java.util.List<SelectItem> getItemsToRender(UISelectOne component)
public static java.util.List<SelectItem> getItemsToRender(UISelectMany component)
public static void setValidator(EditableValueHolder editableValueHolder, java.lang.String validator)
@Deprecated public static void setConverter(UIComponent component, java.lang.String converterId)
setConverter(javax.faces.component.ValueHolder, String)
component
- converterId
- public static void setConverter(ValueHolder valueHolder, java.lang.String converterId)
@Deprecated public static void setAction(UIComponent component, java.lang.String type, java.lang.String action)
setAction(javax.faces.component.UICommand, String, String)
component
- type
- action
- public static void setAction(UICommand component, java.lang.String type, java.lang.String action)
@Deprecated public static void setSuggestMethodBinding(UIComponent component, java.lang.String suggestMethod)
setSuggestMethodBinding(UIInput, String)
component
- suggestMethod
- public static void setSuggestMethodBinding(UIInput component, java.lang.String suggestMethod)
public static void setActionListener(ActionSource command, java.lang.String actionListener)
public static void setValueChangeListener(EditableValueHolder valueHolder, java.lang.String valueChangeListener)
public static void setSortActionListener(UIData data, java.lang.String actionListener)
public static void setValueBinding(UIComponent component, java.lang.String name, java.lang.String state)
public static void setStateChangeListener(UIData data, java.lang.String stateChangeListener)
public static java.lang.String[] getMarkupBinding(FacesContext facesContext, SupportsMarkup component)
public static UIComponent findComponent(UIComponent from, java.lang.String relativeId)
public static void invokeOnComponent(FacesContext facesContext, java.lang.String clientId, UIComponent component, Callback callback)
public static java.lang.Object getConvertedValue(FacesContext facesContext, UIInput component, java.lang.String stringValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |