Package org.dashbuilder.navigation
Interface NavItemContext
-
- All Known Implementing Classes:
NavItemContextImpl,NavWorkbenchCtx
public interface NavItemContextAn interface for manipulating aNavItem.getContext()as it was a collection of attribute/value pairs.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static NavItemContextcreate()static NavItemContextget(String ctx)static NavItemContextget(NavItem navItem)StringgetProperty(String id)Collection<String>getPropertyIds()booleanincludesPropertiesOf(NavItemContext cxt)Check if this context contains all property-value pairs of some other context.voidinit(String ctx)StringremoveProperty(String id)NavItemContextsetProperty(String id, String value)
-
-
-
Method Detail
-
create
static NavItemContext create()
-
get
static NavItemContext get(String ctx)
-
get
static NavItemContext get(NavItem navItem)
-
init
void init(String ctx)
-
getPropertyIds
Collection<String> getPropertyIds()
-
setProperty
NavItemContext setProperty(String id, String value)
-
includesPropertiesOf
boolean includesPropertiesOf(NavItemContext cxt)
Check if this context contains all property-value pairs of some other context.- Parameters:
cxt-- Returns:
- true iff all the properties of ctx are also present in this context and have the same value.
-
-