org.apache.myfaces.tobago.util
Class FacetUtils

java.lang.Object
  extended by org.apache.myfaces.tobago.util.FacetUtils

public class FacetUtils
extends Object

Utility class to provide a type save way to get a specific facet from a components.


Method Summary
static org.apache.myfaces.tobago.internal.component.AbstractUIMenu getContextMenu(UIComponent component)
          A type save utility to get the facet contextMenu from a component.
static org.apache.myfaces.tobago.internal.component.AbstractUIMenu getDropDownMenu(UIComponent component)
          A type save utility to get the facet dropDownMenu from a component.
static void setContextMenu(UIComponent component, org.apache.myfaces.tobago.internal.component.AbstractUIMenu menu)
           
static void setDropDownMenu(UIComponent component, org.apache.myfaces.tobago.internal.component.AbstractUIMenu menu)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContextMenu

public static org.apache.myfaces.tobago.internal.component.AbstractUIMenu getContextMenu(UIComponent component)
A type save utility to get the facet contextMenu from a component.


setContextMenu

public static void setContextMenu(UIComponent component,
                                  org.apache.myfaces.tobago.internal.component.AbstractUIMenu menu)

getDropDownMenu

public static org.apache.myfaces.tobago.internal.component.AbstractUIMenu getDropDownMenu(UIComponent component)
A type save utility to get the facet dropDownMenu from a component. It also returns the deprecated facet menupopup


setDropDownMenu

public static void setDropDownMenu(UIComponent component,
                                   org.apache.myfaces.tobago.internal.component.AbstractUIMenu menu)


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