@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()
NavItem
NavTree
public void setName(String name)
NavItem
public String getDescription()
NavItem
getDescription
in interface NavItem
public void setDescription(String description)
NavItem
setDescription
in interface NavItem
public NavItem.Type getType()
NavItem
NavItem.Type
public NavGroup getParent()
NavItem
public void setParent(NavGroup parent)
NavItem
public boolean isModifiable()
NavItem
isModifiable
in interface NavItem
public void setModifiable(boolean modifiable)
NavItem
setModifiable
in interface NavItem
public void accept(NavItemVisitor visitor)
NavItem
public String getContext()
NavItem
getContext
in interface NavItem
public void setContext(String context)
NavItem
setContext
in interface NavItem
public NavItem cloneItem()
NavItem
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.