Package org.primefaces.model.menu
Class DefaultMenuColumn
- java.lang.Object
-
- org.primefaces.model.menu.DefaultMenuColumn
-
- All Implemented Interfaces:
Serializable,MenuColumn,MenuElement,MenuGroup
public class DefaultMenuColumn extends Object implements MenuColumn, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultMenuColumn.Builder
-
Constructor Summary
Constructors Constructor Description DefaultMenuColumn()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultMenuColumn.Builderbuilder()List<MenuElement>getElements()StringgetId()Allows access the id property which is managed and auto-assigned by callers like menu model implementations and used to identify the element.StringgetStyle()StringgetStyleClass()booleanisRendered()voidsetElements(List<MenuElement> elements)voidsetId(String id)Sets the id property which is described inMenuElement.getId().voidsetRendered(boolean rendered)voidsetStyle(String style)voidsetStyleClass(String styleClass)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.primefaces.model.menu.MenuGroup
getElementsCount
-
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:MenuElementAllows access the id property which is managed and auto-assigned by callers like menu model implementations and used to identify the element. The property is unrelated to theidattribute in the generated XHTML.- Specified by:
getIdin interfaceMenuElement- Returns:
- the id property
-
setId
public void setId(String id)
Description copied from interface:MenuElementSets the id property which is described inMenuElement.getId(). You should have a good reason to call this if you're not extending, but only using PrimeFaces. The property is unrelated to theidattribute in the generated XHTML.- Specified by:
setIdin interfaceMenuElement- Parameters:
id- the id value
-
getStyle
public String getStyle()
- Specified by:
getStylein interfaceMenuColumn
-
setStyle
public void setStyle(String style)
-
getStyleClass
public String getStyleClass()
- Specified by:
getStyleClassin interfaceMenuColumn
-
setStyleClass
public void setStyleClass(String styleClass)
-
isRendered
public boolean isRendered()
- Specified by:
isRenderedin interfaceMenuElement
-
setRendered
public void setRendered(boolean rendered)
-
getElements
public List<MenuElement> getElements()
- Specified by:
getElementsin interfaceMenuGroup
-
setElements
public void setElements(List<MenuElement> elements)
-
builder
public static DefaultMenuColumn.Builder builder()
-
-