Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. @Override
  2. public void showRouterLayoutContent(HasElement content) {
  3.  
  4. if (this.accessControl.isAccessGranted(UI.getCurrent(), ((ContentView) content).getName()) && ((ContentView) content).getName().equals("contattaView") ) {
  5. setLayoutCall((com.vaadin.flow.component.Component) content);
  6. }
  7. else if (this.accessControl.isAccessGranted(UI.getCurrent(), ((ContentView) content).getName())) {
  8. setLayoutContent((com.vaadin.flow.component.Component) content);
  9.  
  10. }
  11.  
  12. }
  13.  
  14. private void setLayoutContent(com.vaadin.flow.component.Component content) {
  15.  
  16. split.addToPrimary(content);
  17.  
  18. }
  19. private void setLayoutCall(com.vaadin.flow.component.Component content) {
  20.  
  21. split.addToSecondary(content);
  22. split.setThemeName("visible-split");
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement