Revision 3f1ceae0
Added by Andreas Kohlbecker about 7 years ago
src/main/java/eu/etaxonomy/vaadin/ui/MainMenu.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.vaadin.ui; |
2 | 2 |
|
3 | 3 |
import com.vaadin.server.Resource; |
4 |
import com.vaadin.ui.Component; |
|
4 | 5 |
|
5 | 6 |
/** |
6 | 7 |
* MainMenu acts as bean interface for components that appear as application |
7 | 8 |
* main menu. Which main menu implementation will be shown is decided on runtime |
8 | 9 |
* by dependency injection. |
9 |
*
|
|
10 |
* |
|
10 | 11 |
* @author Peter / Vaadin |
11 | 12 |
* |
12 | 13 |
*/ |
... | ... | |
14 | 15 |
|
15 | 16 |
/** |
16 | 17 |
* Adds new menu item with given caption and icon to the menu. |
17 |
*
|
|
18 |
* |
|
18 | 19 |
* @param caption |
19 | 20 |
* @param icon |
20 | 21 |
* @param navigationResource |
... | ... | |
22 | 23 |
*/ |
23 | 24 |
MainMenuItem addMenuItem(String caption, Resource icon, String navigationResource); |
24 | 25 |
|
26 |
public void addMenuComponent(Component component); |
|
27 |
|
|
25 | 28 |
public interface MainMenuItem { |
26 | 29 |
String getCaption(); |
27 | 30 |
|
Also available in: Unified diff
ref #6169 more views for starting registrations and basic branding