Revision d8b1c9ce
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/vaadin/ui/navigation/NavigationManagerBean.java | ||
---|---|---|
39 | 39 |
|
40 | 40 |
private final static Logger logger = Logger.getLogger(NavigationManagerBean.class); |
41 | 41 |
|
42 |
@Autowired |
|
42 |
// injecting the viewDisplay as spring bean causes problems with older cdm vaadin code |
|
43 |
// SingleComponentContainerViewDisplay for example can't be used |
|
44 |
// the viewDisplay should be configurable per UI therefore it seems more elegant to |
|
45 |
// let the UI pass the viewDisplay to the Navigator |
|
46 |
// @Autowired |
|
43 | 47 |
private ViewDisplay viewDisplay; |
44 | 48 |
|
45 | 49 |
@Autowired |
... | ... | |
252 | 256 |
public void setDefaultViewName(String defaultViewName) { |
253 | 257 |
this.defaultViewName = defaultViewName; |
254 | 258 |
} |
259 |
|
|
260 |
public void setViewDisplay(ViewDisplay viewDisplay){ |
|
261 |
this.viewDisplay = viewDisplay; |
|
262 |
} |
|
255 | 263 |
} |
Also available in: Unified diff
flexible choosing of the viewDisplay per UI