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 AbstractUIMenu getContextMenu(javax.faces.component.UIComponent component)
          A type save utility to get the facet contextMenu from a component.
static AbstractUIMenu getDropDownMenu(javax.faces.component.UIComponent component)
          A type save utility to get the facet dropDownMenu from a component.
static void setContextMenu(javax.faces.component.UIComponent component, AbstractUIMenu menu)
           
static void setDropDownMenu(javax.faces.component.UIComponent 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 AbstractUIMenu getContextMenu(javax.faces.component.UIComponent component)
A type save utility to get the facet contextMenu from a component.


setContextMenu

public static void setContextMenu(javax.faces.component.UIComponent component,
                                  AbstractUIMenu menu)

getDropDownMenu

public static AbstractUIMenu getDropDownMenu(javax.faces.component.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(javax.faces.component.UIComponent component,
                                   AbstractUIMenu menu)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.