@Portable public class NavItemImpl extends Object implements NavItem
NavItem.Type| Constructor and Description |
|---|
NavItemImpl() |
NavItemImpl(String id,
String name,
String description,
NavGroup parent,
boolean modifiable,
String context) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(NavItemVisitor visitor)
Entry point for visitor interfaces
|
NavItem |
cloneItem()
Creates a brand new copy of this item
|
boolean |
equals(Object obj) |
String |
getContext()
An optional string that can be used to attach contextual information, like an external reference for instance.
|
String |
getDescription()
A brief description of the item (optional, if not provided the name is used instead)
|
String |
getId()
A unique id within the same
NavTree |
String |
getName()
The item's name
|
NavGroup |
getParent()
Get the parent of this item (if any)
|
NavItem.Type |
getType()
The item's
NavItem.Type |
boolean |
isModifiable()
Flag indicating if the item can be modified from a tree once added
|
void |
setContext(String context)
Change the item's context attribute
|
void |
setDescription(String description)
Change the item's description
|
void |
setId(String id)
Change the item's id
|
void |
setModifiable(boolean modifiable)
Change the item's modifiable flag
|
void |
setName(String name)
Change the item's name
|
void |
setParent(NavGroup parent)
Change the item's parent
|
String |
toString() |
String |
toString(String type) |
public String getId()
NavItemNavTreepublic void setName(String name)
NavItempublic String getDescription()
NavItemgetDescription in interface NavItempublic void setDescription(String description)
NavItemsetDescription in interface NavItempublic NavItem.Type getType()
NavItemNavItem.Typepublic NavGroup getParent()
NavItempublic void setParent(NavGroup parent)
NavItempublic boolean isModifiable()
NavItemisModifiable in interface NavItempublic void setModifiable(boolean modifiable)
NavItemsetModifiable in interface NavItempublic void accept(NavItemVisitor visitor)
NavItempublic String getContext()
NavItemgetContext in interface NavItempublic void setContext(String context)
NavItemsetContext in interface NavItempublic NavItem cloneItem()
NavItemCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.