public class

FacetUtils

extends Object
java.lang.Object
   ↳ org.apache.myfaces.tobago.util.FacetUtils

Class Overview

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

Summary

Public Methods
static AbstractUIMenu getContextMenu(UIComponent component)
A type save utility to get the facet contextMenu from a component.
static AbstractUIMenu getDropDownMenu(UIComponent component)
A type save utility to get the facet dropDownMenu from a component.
static void setContextMenu(UIComponent component, AbstractUIMenu menu)
static void setDropDownMenu(UIComponent component, AbstractUIMenu menu)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static AbstractUIMenu getContextMenu (UIComponent component)

A type save utility to get the facet contextMenu from a component.

public static AbstractUIMenu getDropDownMenu (UIComponent component)

A type save utility to get the facet dropDownMenu from a component. It also returns the deprecated facet menupopup

public static void setContextMenu (UIComponent component, AbstractUIMenu menu)

public static void setDropDownMenu (UIComponent component, AbstractUIMenu menu)