Package org.primefaces.model.menu
Class DefaultSubMenu
- java.lang.Object
-
- org.primefaces.model.menu.DefaultSubMenu
-
- All Implemented Interfaces:
Serializable
,MenuElement
,MenuGroup
,Submenu
public class DefaultSubMenu extends Object implements Submenu, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultSubMenu.Builder
-
Constructor Summary
Constructors Constructor Description DefaultSubMenu()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultSubMenu.Builder
builder()
String
getClientId()
List<MenuElement>
getElements()
String
getIcon()
String
getId()
Allows access the id property which is managed and auto-assigned by callers like menu model implementations and used to identify the element.String
getLabel()
Object
getParent()
String
getStyle()
String
getStyleClass()
boolean
isDisabled()
boolean
isExpanded()
boolean
isRendered()
void
setDisabled(boolean disabled)
void
setElements(List<MenuElement> elements)
void
setExpanded(boolean expanded)
void
setIcon(String icon)
void
setId(String id)
Sets the id property which is described inMenuElement.getId()
.void
setLabel(String label)
void
setRendered(boolean rendered)
void
setStyle(String style)
void
setStyleClass(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:MenuElement
Allows 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 theid
attribute in the generated XHTML.- Specified by:
getId
in interfaceMenuElement
- Returns:
- the id property
-
setId
public void setId(String id)
Description copied from interface:MenuElement
Sets 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 theid
attribute in the generated XHTML.- Specified by:
setId
in interfaceMenuElement
- Parameters:
id
- the id value
-
setStyle
public void setStyle(String style)
-
getStyleClass
public String getStyleClass()
- Specified by:
getStyleClass
in interfaceSubmenu
-
setStyleClass
public void setStyleClass(String styleClass)
-
setIcon
public void setIcon(String icon)
-
setLabel
public void setLabel(String label)
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabled
in interfaceSubmenu
-
setDisabled
public void setDisabled(boolean disabled)
-
getElements
public List<MenuElement> getElements()
- Specified by:
getElements
in interfaceMenuGroup
-
setElements
public void setElements(List<MenuElement> elements)
-
isRendered
public boolean isRendered()
- Specified by:
isRendered
in interfaceMenuElement
-
setRendered
public void setRendered(boolean rendered)
-
isExpanded
public boolean isExpanded()
- Specified by:
isExpanded
in interfaceSubmenu
-
setExpanded
public void setExpanded(boolean expanded)
-
getClientId
public String getClientId()
- Specified by:
getClientId
in interfaceSubmenu
-
builder
public static DefaultSubMenu.Builder builder()
-
-