BrightSide Workbench Full Report + Source Code
org.turro.elephant.impl.navigation.ContextNavigatorItem Class Reference
Inheritance diagram for org.turro.elephant.impl.navigation.ContextNavigatorItem:
Collaboration diagram for org.turro.elephant.impl.navigation.ContextNavigatorItem:

Public Member Functions

 ContextNavigatorItem (ElContext context, ElContext current)
 
Collection< NavigatorItemgetChildren ()
 
boolean getInPath ()
 
boolean getInRole ()
 
- Public Member Functions inherited from org.turro.elephant.impl.navigation.DefaultNavigatorItem
 DefaultNavigatorItem (String name, String url, String target)
 
 DefaultNavigatorItem (String name, String url, String target, boolean active)
 
String getName ()
 
String getUrl ()
 
String getTarget ()
 
boolean isActive ()
 
String getDescription ()
 
void setDescription (String description)
 
void addChild (NavigatorItem item)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file ContextNavigatorItem.java.

Constructor & Destructor Documentation

◆ ContextNavigatorItem()

org.turro.elephant.impl.navigation.ContextNavigatorItem.ContextNavigatorItem ( ElContext  context,
ElContext  current 
)

Definition at line 33 of file ContextNavigatorItem.java.

33  {
34  super(context.getName(), context.getWebPath(), context.getTarget(), context.equals(current));
35  this.elContext = context;
36  this.elCurrent = current;
37  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ getChildren()

Collection<NavigatorItem> org.turro.elephant.impl.navigation.ContextNavigatorItem.getChildren ( )

Reimplemented from org.turro.elephant.impl.navigation.DefaultNavigatorItem.

Definition at line 40 of file ContextNavigatorItem.java.

40  {
41  ArrayList<NavigatorItem> list = new ArrayList<>();
42  for(ElContext ctx : elContext.getChildren()) {
43  if (ctx.canDisplay()) {
44  list.add(new ContextNavigatorItem(ctx, elCurrent));
45  }
46  }
47  return list;
48  }
ContextNavigatorItem(ElContext context, ElContext current)
TreeSet< ElContext > getChildren()
Definition: ElContext.java:196
Here is the call graph for this function:

◆ getInPath()

boolean org.turro.elephant.impl.navigation.ContextNavigatorItem.getInPath ( )

Reimplemented from org.turro.elephant.impl.navigation.DefaultNavigatorItem.

Definition at line 51 of file ContextNavigatorItem.java.

51  {
52  return elContext.inPath(elCurrent);
53  }
boolean inPath(ElContext context)
Definition: ElContext.java:122
Here is the call graph for this function:

◆ getInRole()

boolean org.turro.elephant.impl.navigation.ContextNavigatorItem.getInRole ( )

Reimplemented from org.turro.elephant.impl.navigation.DefaultNavigatorItem.

Definition at line 56 of file ContextNavigatorItem.java.

56  {
57  return elContext.isInRole();
58  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: