org.apache.myfaces.tobago.component
Class ComponentUtil

java.lang.Object
  extended by org.apache.myfaces.tobago.component.ComponentUtil

Deprecated. please use ComponentUtils

@Deprecated
public class ComponentUtil
extends Object


Field Summary
static Class[] ACTION_ARGS
          Deprecated.  
static Class[] ACTION_LISTENER_ARGS
          Deprecated.  
static Class[] VALIDATOR_ARGS
          Deprecated.  
static Class[] VALUE_CHANGE_LISTENER_ARGS
          Deprecated.  
 
Method Summary
static void addOnloadCommands(UIComponent component, String[] cmds)
          Deprecated.  
static void addScripts(UIComponent component, String[] scripts)
          Deprecated.  
static void addStyles(UIComponent component, String[] styles)
          Deprecated.  
static boolean containsPopupActionListener(UICommand command)
          Deprecated.  
static ActionListener createActionListener(String type)
          Deprecated.  
static UIColumn createColumn(String label, String sortable, String align, UIComponent child)
          Deprecated.  
static UIColumn createColumn(String label, String sortable, String align, UIComponent child, String id)
          Deprecated.  
static UIComponent createComponent(FacesContext facesContext, String componentType, String rendererType)
          Deprecated.  
static UIComponent createComponent(FacesContext facesContext, String componentType, String rendererType, String id)
          Deprecated.  
static UIComponent createComponent(String componentType, String rendererType, String id)
          Deprecated.  
static String createPickerId(FacesContext facesContext, UIComponent component, String postfix)
          Deprecated.  
static UIColumn createTextColumn(String label, String sortable, String align, String value, String id)
          Deprecated.  
static UIMenuSelectOne createUIMenuSelectOneFacet(FacesContext facesContext, UICommand command, String id)
          Deprecated.  
static UIComponent createUISelectBooleanFacet(FacesContext facesContext, UICommand command, String id)
          Deprecated.  
static ValueBinding createValueBinding(String value)
          Deprecated.  
static String currentValue(UIComponent component)
          Deprecated.  
static String findClientIdFor(UIComponent component, FacesContext facesContext)
          Deprecated.  
static UIComponent findComponent(UIComponent from, String relativeId)
          Deprecated.  
static
<T extends UIComponent>
T
findDescendant(UIComponent component, Class<T> type)
          Deprecated.  
static UIComponent findFor(UIComponent component)
          Deprecated.  
static UIForm findForm(UIComponent component)
          Deprecated.  
static UIPage findPage(FacesContext facesContext)
          Deprecated.  
static UIPage findPage(FacesContext context, UIComponent component)
          Deprecated.  
static UIPage findPage(UIComponent component)
          Deprecated.  
static Object findParameter(UIComponent component, String name)
          Deprecated.  
static List<UIForm> findSubForms(UIComponent component)
          Deprecated.  
static Object getAttribute(UIComponent component, String name)
          Deprecated.  
static boolean getBooleanAttribute(UIComponent component, String name)
          Deprecated.  
static Character getCharacterAttribute(UIComponent component, String name)
          Deprecated.  
static String getComponentId(FacesContext facesContext, UIComponent component)
          Deprecated.  
static String getFacesMessageAsString(FacesContext facesContext, UIComponent component)
          Deprecated.  
static UIGraphic getFirstGraphicChild(UIComponent component)
          Deprecated.  
static UIOutput getFirstNonGraphicChild(UIComponent component)
          Deprecated.  
static int getIntAttribute(UIComponent component, String name)
          Deprecated.  
static int getIntAttribute(UIComponent component, String name, int defaultValue)
          Deprecated.  
static int getIntValue(ValueBinding valueBinding)
          Deprecated.  
static List<SelectItem> getItemsToRender(UISelectMany component)
          Deprecated.  
static List<SelectItem> getItemsToRender(UISelectOne component)
          Deprecated.  
static String[] getMarkupBinding(FacesContext facesContext, SupportsMarkup component)
          Deprecated. 
static LayoutComponentRendererBase getRenderer(FacesContext facesContext, String family, String rendererType)
          Deprecated.  
static LayoutComponentRendererBase getRenderer(FacesContext facesContext, UIComponent component)
          Deprecated.  
static List<SelectItem> getSelectItems(UIComponent component)
          Deprecated.  
static String getStringAttribute(UIComponent component, String name)
          Deprecated.  
static String getValueFromEl(String script)
          Deprecated.  
static boolean hasErrorMessages(FacesContext context)
          Deprecated.  
static boolean hasSelectedValue(List<SelectItem> items, Object value)
          Deprecated.  
static boolean isError(UIComponent component)
          Deprecated.  
static boolean isError(UIInput uiInput)
          Deprecated.  
static boolean isFacetOf(UIComponent component, UIComponent parent)
          Deprecated.  
static boolean isHoverEnabled(UIComponent component)
          Deprecated.  
static boolean isInActiveForm(UIComponent component)
          Deprecated.  
static boolean isInPopup(UIComponent component)
          Deprecated.  
static boolean isOutputOnly(UIComponent component)
          Deprecated.  
static boolean mayUpdateModel(UIComponent component)
          Deprecated.  
static boolean mayValidate(UIComponent component)
          Deprecated.  
static UIComponent provideLabel(FacesContext facesContext, UIComponent component)
          Deprecated.  
static String removePx(String value)
          Deprecated.  
static void resetPage(FacesContext context)
          Deprecated.  
static void setAction(UICommand component, String type, String action)
          Deprecated.  
static void setActionListener(ActionSource command, String actionListener)
          Deprecated.  
static void setBooleanProperty(UIComponent component, String name, String value)
          Deprecated.  
static void setConverter(ValueHolder valueHolder, String converterId)
          Deprecated.  
static void setIntegerProperty(UIComponent component, String name, String value)
          Deprecated.  
static void setIntegerSizeProperty(UIComponent component, String name, String value)
          Deprecated.  
static void setMarkup(UIComponent markupComponent, String markup)
          Deprecated.  
static void setRenderedPartially(UICommand command, String renderers)
          Deprecated.  
static void setSortActionListener(UIData data, String actionListener)
          Deprecated.  
static void setStateChangeListener(UISheet data, String stateChangeListener)
          Deprecated.  
static void setStringProperty(UIComponent component, String name, String value)
          Deprecated.  
static void setStyleClasses(UIComponent component, String styleClasses)
          Deprecated.  
static void setSuggestMethodBinding(UIInput component, String suggestMethod)
          Deprecated.  
static void setValidator(EditableValueHolder editableValueHolder, String validator)
          Deprecated.  
static void setValueBinding(UIComponent component, String name, String state)
          Deprecated.  
static void setValueChangeListener(EditableValueHolder valueHolder, String valueChangeListener)
          Deprecated.  
static void setValueForValueBinding(String name, Object value)
          Deprecated.  
static String toString(UIComponent component, int offset)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_ARGS

public static final Class[] ACTION_ARGS
Deprecated. 

ACTION_LISTENER_ARGS

public static final Class[] ACTION_LISTENER_ARGS
Deprecated. 

VALUE_CHANGE_LISTENER_ARGS

public static final Class[] VALUE_CHANGE_LISTENER_ARGS
Deprecated. 

VALIDATOR_ARGS

public static final Class[] VALIDATOR_ARGS
Deprecated. 
Method Detail

hasErrorMessages

public static boolean hasErrorMessages(FacesContext context)
Deprecated. 

containsPopupActionListener

public static boolean containsPopupActionListener(UICommand command)
Deprecated. 

getFacesMessageAsString

public static String getFacesMessageAsString(FacesContext facesContext,
                                             UIComponent component)
Deprecated. 

isInPopup

public static boolean isInPopup(UIComponent component)
Deprecated. 

resetPage

public static void resetPage(FacesContext context)
Deprecated. 

findPage

public static UIPage findPage(FacesContext context,
                              UIComponent component)
Deprecated. 

findPage

public static UIPage findPage(UIComponent component)
Deprecated. 

addStyles

public static void addStyles(UIComponent component,
                             String[] styles)
Deprecated. 

addScripts

public static void addScripts(UIComponent component,
                              String[] scripts)
Deprecated. 

addOnloadCommands

public static void addOnloadCommands(UIComponent component,
                                     String[] cmds)
Deprecated. 

findPage

public static UIPage findPage(FacesContext facesContext)
Deprecated. 

findForm

public static UIForm findForm(UIComponent component)
Deprecated. 

findSubForms

public static List<UIForm> findSubForms(UIComponent component)
Deprecated. 

findDescendant

public static <T extends UIComponent> T findDescendant(UIComponent component,
                                                       Class<T> type)
Deprecated. 

findClientIdFor

public static String findClientIdFor(UIComponent component,
                                     FacesContext facesContext)
Deprecated. 

findFor

public static UIComponent findFor(UIComponent component)
Deprecated. 

isInActiveForm

public static boolean isInActiveForm(UIComponent component)
Deprecated. 

isError

public static boolean isError(UIInput uiInput)
Deprecated. 

isError

public static boolean isError(UIComponent component)
Deprecated. 

isOutputOnly

public static boolean isOutputOnly(UIComponent component)
Deprecated. 

mayValidate

public static boolean mayValidate(UIComponent component)
Deprecated. 

mayUpdateModel

public static boolean mayUpdateModel(UIComponent component)
Deprecated. 

getBooleanAttribute

public static boolean getBooleanAttribute(UIComponent component,
                                          String name)
Deprecated. 

setRenderedPartially

public static void setRenderedPartially(UICommand command,
                                        String renderers)
Deprecated. 

setStyleClasses

public static void setStyleClasses(UIComponent component,
                                   String styleClasses)
Deprecated. 

setMarkup

public static void setMarkup(UIComponent markupComponent,
                             String markup)
Deprecated. 

getAttribute

public static Object getAttribute(UIComponent component,
                                  String name)
Deprecated. 

getStringAttribute

public static String getStringAttribute(UIComponent component,
                                        String name)
Deprecated. 

getIntAttribute

public static int getIntAttribute(UIComponent component,
                                  String name)
Deprecated. 

getIntAttribute

public static int getIntAttribute(UIComponent component,
                                  String name,
                                  int defaultValue)
Deprecated. 

getCharacterAttribute

public static Character getCharacterAttribute(UIComponent component,
                                              String name)
Deprecated. 

isFacetOf

public static boolean isFacetOf(UIComponent component,
                                UIComponent parent)
Deprecated. 

getRenderer

public static LayoutComponentRendererBase getRenderer(FacesContext facesContext,
                                                      UIComponent component)
Deprecated. 

getRenderer

public static LayoutComponentRendererBase getRenderer(FacesContext facesContext,
                                                      String family,
                                                      String rendererType)
Deprecated. 

currentValue

public static String currentValue(UIComponent component)
Deprecated. 

getSelectItems

public static List<SelectItem> getSelectItems(UIComponent component)
Deprecated. 

findParameter

public static Object findParameter(UIComponent component,
                                   String name)
Deprecated. 

toString

public static String toString(UIComponent component,
                              int offset)
Deprecated. 

createActionListener

public static ActionListener createActionListener(String type)
                                           throws JspException
Deprecated. 
Throws:
JspException

getFirstGraphicChild

public static UIGraphic getFirstGraphicChild(UIComponent component)
Deprecated. 

isHoverEnabled

@Deprecated
public static boolean isHoverEnabled(UIComponent component)
Deprecated. 


getFirstNonGraphicChild

public static UIOutput getFirstNonGraphicChild(UIComponent component)
Deprecated. 

setIntegerSizeProperty

public static void setIntegerSizeProperty(UIComponent component,
                                          String name,
                                          String value)
Deprecated. 

removePx

public static String removePx(String value)
Deprecated. 

setIntegerProperty

public static void setIntegerProperty(UIComponent component,
                                      String name,
                                      String value)
Deprecated. 

setBooleanProperty

public static void setBooleanProperty(UIComponent component,
                                      String name,
                                      String value)
Deprecated. 

setStringProperty

public static void setStringProperty(UIComponent component,
                                     String name,
                                     String value)
Deprecated. 

setValueForValueBinding

public static void setValueForValueBinding(String name,
                                           Object value)
Deprecated. 

createValueBinding

public static ValueBinding createValueBinding(String value)
Deprecated. 

getValueFromEl

public static String getValueFromEl(String script)
Deprecated. 

createComponent

public static UIComponent createComponent(String componentType,
                                          String rendererType,
                                          String id)
Deprecated. 

createComponent

public static UIComponent createComponent(FacesContext facesContext,
                                          String componentType,
                                          String rendererType,
                                          String id)
Deprecated. 

createComponent

@Deprecated
public static UIComponent createComponent(FacesContext facesContext,
                                                     String componentType,
                                                     String rendererType)
Deprecated. 

Please use createComponent(FacesContext facesContext, String componentType, String rendererType, String id)


createTextColumn

public static UIColumn createTextColumn(String label,
                                        String sortable,
                                        String align,
                                        String value,
                                        String id)
Deprecated. 

createColumn

public static UIColumn createColumn(String label,
                                    String sortable,
                                    String align,
                                    UIComponent child)
Deprecated. 

createColumn

public static UIColumn createColumn(String label,
                                    String sortable,
                                    String align,
                                    UIComponent child,
                                    String id)
Deprecated. 

createUIMenuSelectOneFacet

public static UIMenuSelectOne createUIMenuSelectOneFacet(FacesContext facesContext,
                                                         UICommand command,
                                                         String id)
Deprecated. 

hasSelectedValue

public static boolean hasSelectedValue(List<SelectItem> items,
                                       Object value)
Deprecated. 

createUISelectBooleanFacet

public static UIComponent createUISelectBooleanFacet(FacesContext facesContext,
                                                     UICommand command,
                                                     String id)
Deprecated. 

getIntValue

public static int getIntValue(ValueBinding valueBinding)
Deprecated. 

createPickerId

public static String createPickerId(FacesContext facesContext,
                                    UIComponent component,
                                    String postfix)
Deprecated. 

getComponentId

public static String getComponentId(FacesContext facesContext,
                                    UIComponent component)
Deprecated. 

provideLabel

public static UIComponent provideLabel(FacesContext facesContext,
                                       UIComponent component)
Deprecated. 

getItemsToRender

public static List<SelectItem> getItemsToRender(UISelectOne component)
Deprecated. 

getItemsToRender

public static List<SelectItem> getItemsToRender(UISelectMany component)
Deprecated. 

setValidator

public static void setValidator(EditableValueHolder editableValueHolder,
                                String validator)
Deprecated. 

setConverter

public static void setConverter(ValueHolder valueHolder,
                                String converterId)
Deprecated. 

setAction

public static void setAction(UICommand component,
                             String type,
                             String action)
Deprecated. 

setSuggestMethodBinding

public static void setSuggestMethodBinding(UIInput component,
                                           String suggestMethod)
Deprecated. 

setActionListener

public static void setActionListener(ActionSource command,
                                     String actionListener)
Deprecated. 

setValueChangeListener

public static void setValueChangeListener(EditableValueHolder valueHolder,
                                          String valueChangeListener)
Deprecated. 

setSortActionListener

public static void setSortActionListener(UIData data,
                                         String actionListener)
Deprecated. 

setValueBinding

public static void setValueBinding(UIComponent component,
                                   String name,
                                   String state)
Deprecated. 

setStateChangeListener

public static void setStateChangeListener(UISheet data,
                                          String stateChangeListener)
Deprecated. 

getMarkupBinding

@Deprecated
public static String[] getMarkupBinding(FacesContext facesContext,
                                                   SupportsMarkup component)
Deprecated. 


findComponent

public static UIComponent findComponent(UIComponent from,
                                        String relativeId)
Deprecated. 


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.