public class MenuEntryModel extends Object implements IMenuEntryModel
Modifier and Type | Class and Description |
---|---|
static class |
MenuEntryModel.Builder |
Modifier | Constructor and Description |
---|---|
protected |
MenuEntryModel() |
public String getText()
getText
in interface IMenuEntryModel
public String getDescription()
getDescription
in interface IMenuEntryModel
public List<IMenuEntryModel> getChildren()
getChildren
in interface IMenuEntryModel
public IMenuEntryModel addChild(IMenuEntryModel child)
addChild
in interface IMenuEntryModel
public IMenuEntryModel addChild(org.apache.commons.lang3.builder.Builder<IMenuEntryModel> child)
addChild
in interface IMenuEntryModel
public String getId()
getId
in interface IMenuEntryModel
public IGuiIcon getIcon()
getIcon
in interface IMenuEntryModel
null
.public String getHref()
getHref
in interface IMenuEntryModel
public String getHelpID()
getHelpID
in interface IMenuEntryModel
public boolean isRendered()
isRendered
in interface IMenuEntryModel
IMenuEntryModel.isAccessable()
by that user.public boolean isExternal()
isExternal
in interface IMenuEntryModel
public boolean isRenderedOnDash()
isRenderedOnDash
in interface IMenuEntryModel
public boolean isAccessable()
isAccessable
in interface IMenuEntryModel
public EAdminDashCategory getAdminDashCategory()
getAdminDashCategory
in interface IMenuEntryModel
null
, this item is not available on the sadmin dashboard. Otherwise, it is available under
that category.public boolean isLicensed()
isLicensed
in interface IMenuEntryModel
true
if the license allows this feature, false
otherwise.public void setText(String text)
public void setDescription(String description)
public void setId(String id)
public void setIcon(IGuiIcon icon)
public String getStyleClass()
public void setStyleClass(String styleClass)
public void setHref(String href)
public void setHelpID(String helpID)
public void setRendered(boolean rendered)
public void setRenderedOnDash(boolean renderedOnDash)
public void setAdminDashCategory(EAdminDashCategory adminDashCategory)
public void setExternal(boolean external)
public void setAccessable(boolean accessable)
public void setLicensed(boolean licensed)
public String getTarget()
getTarget
in interface IMenuEntryModel
public void setTarget(String target)
public IMenuEntryModel getParent()
getParent
in interface IMenuEntryModel
null
if it is a root entry.public void setParent(MenuEntryModel parent)
setParent
in interface IMenuEntryModel
parent
- The parent of this entry, or null
if it is a root entry.public boolean isHasRenderedChildren()
isHasRenderedChildren
in interface IMenuEntryModel
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.