public interface NavItem
NavTree
structure
that can be used to provide navigation services across the different assets referenced by the tags in the tree.Modifier and Type | Interface and Description |
---|---|
static class |
NavItem.Type |
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
|
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 ctx)
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
|
void setId(String id)
String getName()
void setName(String name)
String getDescription()
void setDescription(String description)
NavItem.Type getType()
NavItem.Type
NavGroup getParent()
void setParent(NavGroup parent)
boolean isModifiable()
void setModifiable(boolean modifiable)
String getContext()
void setContext(String ctx)
void accept(NavItemVisitor visitor)
NavItem cloneItem()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.