Package org.primefaces.model.menu
Class DefaultSubMenu
java.lang.Object
org.primefaces.model.menu.DefaultSubMenu
- All Implemented Interfaces:
Serializable,MenuElement,MenuGroup,Submenu
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultSubMenu.Builderbuilder()getIcon()getId()Allows access the id property which is managed and auto-assigned by callers like menu model implementations and used to identify the element.getLabel()getStyle()booleanbooleanbooleanvoidsetDisabled(boolean disabled) voidsetElements(List<MenuElement> elements) voidsetExpanded(boolean expanded) voidvoidSets the id property which is described inMenuElement.getId().voidvoidsetRendered(boolean rendered) voidvoidsetStyleClass(String styleClass) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.primefaces.model.menu.MenuGroup
getElementsCount
-
Constructor Details
-
DefaultSubMenu
public DefaultSubMenu()
-
-
Method Details
-
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
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
-
setStyle
-
getStyleClass
- Specified by:
getStyleClassin interfaceSubmenu
-
setStyleClass
-
getIcon
-
setIcon
-
getLabel
-
setLabel
-
isDisabled
public boolean isDisabled()- Specified by:
isDisabledin interfaceSubmenu
-
setDisabled
public void setDisabled(boolean disabled) -
getElements
- Specified by:
getElementsin interfaceMenuGroup
-
setElements
-
isRendered
public boolean isRendered()- Specified by:
isRenderedin interfaceMenuElement
-
setRendered
public void setRendered(boolean rendered) -
isExpanded
public boolean isExpanded()- Specified by:
isExpandedin interfaceSubmenu
-
setExpanded
public void setExpanded(boolean expanded) -
getParent
-
getClientId
- Specified by:
getClientIdin interfaceSubmenu
-
builder
-