Revision 5eece89f
Added by Patrick Plitzner over 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/HorizontalToolbar.java | ||
---|---|---|
36 | 36 |
|
37 | 37 |
private final Button detailButton = new Button("Detail"); |
38 | 38 |
|
39 |
private final Button distributionSettingsButton = new Button("Distribution Settings"); |
|
40 |
|
|
39 | 41 |
private final Button settingsButton = new Button("Settings"); |
40 | 42 |
|
41 | 43 |
private final Button logoutButton= new Button("Logout"); |
... | ... | |
70 | 72 |
editButton.setIcon(new ThemeResource("icons/32/document-edit.png")); |
71 | 73 |
detailButton.setIcon(new ThemeResource("icons/32/document-txt.png")); |
72 | 74 |
settingsButton.setIcon(new ThemeResource("icons/32/settings_1.png")); |
75 |
distributionSettingsButton.setIcon(new ThemeResource("icons/32/settings_1.png")); |
|
73 | 76 |
logoutButton.setIcon(new ThemeResource("icons/32/cancel.png")); |
74 | 77 |
|
75 | 78 |
// SecurityContext context = (SecurityContext)VaadinService.getCurrentRequest().getWrappedSession().getAttribute("context"); |
... | ... | |
80 | 83 |
HorizontalLayout rightLayout = new HorizontalLayout(); |
81 | 84 |
Image image = new Image(null, new ThemeResource("icons/32/vseparator1.png")); |
82 | 85 |
rightLayout.addComponent(settingsButton); |
86 |
rightLayout.addComponent(distributionSettingsButton); |
|
83 | 87 |
rightLayout.addComponent(logoutButton); |
84 | 88 |
rightLayout.addComponent(image); |
85 | 89 |
rightLayout.addComponent(loginName); |
... | ... | |
109 | 113 |
public Button getSettingsButton(){ |
110 | 114 |
return settingsButton; |
111 | 115 |
} |
116 |
|
|
117 |
public Button getDistributionSettingsButton() { |
|
118 |
return distributionSettingsButton; |
|
119 |
} |
|
112 | 120 |
|
113 | 121 |
public Button getEditButton() { |
114 | 122 |
return editButton; |
Also available in: Unified diff
ref #5458 Split settings window into two