BrightSide Workbench Full Report + Source Code
org.turro.students.menu.StudentsMenu Class Reference
Inheritance diagram for org.turro.students.menu.StudentsMenu:
Collaboration diagram for org.turro.students.menu.StudentsMenu:

Public Member Functions

void addToMenu (ElephantMenuBar bar)
 
- Public Member Functions inherited from org.turro.menu.ElephantMenu
 ElephantMenu ()
 
 ElephantMenu (String label)
 
 ElephantMenu (String label, String image)
 
ElephantMenuBar getMenuBar ()
 
ElephantMenu getParentMenu ()
 
ElephantSubmenu getParentSubmenu ()
 
ElephantSubmenu addSubmenu ()
 
int compareTo (ElephantMenu o)
 

Static Public Member Functions

static void showChallenge (Challenge challenge)
 
static void showChallenge (Long id)
 
- Static Public Member Functions inherited from org.turro.menu.ElephantMenu
static String makeInclude (String include)
 
static void showEntity (Object id, String attribute, String label, String include)
 
static void showEntity (Object id, String attribute, String label, String include, Map< String, Object > dynProps)
 
static void showZulFile (String label, String include)
 
static void showZulFile (String label, String include, Map< String, Object > dynProps)
 
static void showModalZulFile (String label, String source, Command command)
 
static void showModalZulFile (String label, String include, Map args, Command command)
 
static void showPopupZulFile (String label, String include)
 
static void showPopupZulFile (String label, String include, Map args)
 
static void showEntityModal (Object id, String attribute, String include, Command command)
 

Additional Inherited Members

- Protected Member Functions inherited from org.turro.menu.ElephantMenu
void addToSessionMenu (ElephantSubmenu submenu)
 
void addToToolsMenu (ElephantSubmenu submenu)
 

Detailed Description

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

Definition at line 34 of file StudentsMenu.java.

Member Function Documentation

◆ addToMenu()

void org.turro.students.menu.StudentsMenu.addToMenu ( ElephantMenuBar  bar)

Reimplemented from org.turro.menu.ElephantMenu.

Definition at line 37 of file StudentsMenu.java.

37  {
38  bar.addMenu("Students", Permission.from("challenge"))
39  .addSubmenu()
40  .addMenuitem("Talent categories", "/students/categories.zul", false, Permission.from("challenge:new"))
41  .addMenuitem("Challenges", "challenge", "/students/challenges.zul", true, Permission.from("challenge:new"));
42  }
Here is the call graph for this function:

◆ showChallenge() [1/2]

static void org.turro.students.menu.StudentsMenu.showChallenge ( Challenge  challenge)
static

Definition at line 44 of file StudentsMenu.java.

44  {
45  HashMap<String, Object> map = new HashMap<String, Object>();
46  map.put("challengeGenerated", challenge);
47  showEntity(challenge.getId(), "challengeId", "Challenge", "/students/challenge.zul", map);
48  }
static void showEntity(Object id, String attribute, String label, String include)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ showChallenge() [2/2]

static void org.turro.students.menu.StudentsMenu.showChallenge ( Long  id)
static

Definition at line 50 of file StudentsMenu.java.

50  {
51  showEntity(id, "challengeId", "Challenge", "/students/challenge.zul");
52  }
Here is the call graph for this function:

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