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

Public Member Functions

 ElephantMenuBar (ElephantToolbar toolbar)
 
ElephantMenu addMenu (String label)
 
ElephantMenu addMenu (String label, String src)
 
ElephantMenu addMenu (String label, Permission permission)
 
ElephantMenu addMenu (String label, String src, Permission permission)
 
ElephantToolbar getToolbar ()
 
ElephantMenuBar addExternalsToMenu (Collection< ElephantMenu > externals)
 

Detailed Description

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

Definition at line 40 of file ElephantMenuBar.java.

Constructor & Destructor Documentation

◆ ElephantMenuBar()

org.turro.menu.ElephantMenuBar.ElephantMenuBar ( ElephantToolbar  toolbar)

Definition at line 44 of file ElephantMenuBar.java.

44  {
45  super();
46  initComponents(toolbar);
47  addMenus();
48  }

Member Function Documentation

◆ addExternalsToMenu()

ElephantMenuBar org.turro.menu.ElephantMenuBar.addExternalsToMenu ( Collection< ElephantMenu externals)

Definition at line 73 of file ElephantMenuBar.java.

73  {
74  externals.forEach((esm) -> {
75  esm.addToMenu(this);
76  });
77  return this;
78  }

◆ addMenu() [1/4]

ElephantMenu org.turro.menu.ElephantMenuBar.addMenu ( String  label)

Definition at line 50 of file ElephantMenuBar.java.

50  {
51  return addMenu(label, null, null);
52  }
ElephantMenu addMenu(String label)
Here is the caller graph for this function:

◆ addMenu() [2/4]

ElephantMenu org.turro.menu.ElephantMenuBar.addMenu ( String  label,
Permission  permission 
)

Definition at line 58 of file ElephantMenuBar.java.

58  {
59  return addMenu(label, null, permission);
60  }
Here is the call graph for this function:

◆ addMenu() [3/4]

ElephantMenu org.turro.menu.ElephantMenuBar.addMenu ( String  label,
String  src 
)

Definition at line 54 of file ElephantMenuBar.java.

54  {
55  return addMenu(label, src, null);
56  }
Here is the call graph for this function:

◆ addMenu() [4/4]

ElephantMenu org.turro.menu.ElephantMenuBar.addMenu ( String  label,
String  src,
Permission  permission 
)

Definition at line 62 of file ElephantMenuBar.java.

62  {
63  ElephantMenu m = src == null ? new ElephantMenu(label) : new ElephantMenu(label, src);
64  appendChild(m);
65  if(permission != null) m.setVisible(permission.check());
66  return m;
67  }
Here is the call graph for this function:

◆ getToolbar()

ElephantToolbar org.turro.menu.ElephantMenuBar.getToolbar ( )

Definition at line 69 of file ElephantMenuBar.java.

69  {
70  return toolbar;
71  }

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