List of usage examples for com.vaadin.ui Button setId
@Override public void setId(String id)
From source file:uk.q3c.krail.testapp.view.AccountsView.java
License:Apache License
@Override protected void doBuild() { super.doBuild(); Button shiroPermissionsFailButton = new Button("shiro permissions fail"); shiroPermissionsFailButton.addClickListener(event -> permissionCheckFail()); shiroPermissionsFailButton .setId(ID.getId(Optional.of("permissions-fail"), this, shiroPermissionsFailButton)); Button shiroPermissionsPassButton = new Button("shiro permissions pass"); shiroPermissionsPassButton.addClickListener(event -> permissionCheckPass()); shiroPermissionsPassButton// w w w.jav a2 s . co m .setId(ID.getId(Optional.of("permissions-pass"), this, shiroPermissionsPassButton)); Button shiroRoleFailButton = new Button("shiro role fail"); shiroRoleFailButton.addClickListener(event -> roleCheckFail()); shiroRoleFailButton.setId(ID.getId(Optional.of("role-fail"), this, shiroRoleFailButton)); Button shiroRolePassButton = new Button("shiro role pass"); shiroRolePassButton.addClickListener(event -> roleCheckPass()); shiroRolePassButton.setId(ID.getId(Optional.of("role-pass"), this, shiroRolePassButton)); Button shiroAuthenticationFailButton = new Button("shiro authentication"); shiroAuthenticationFailButton.addClickListener(event -> authenticationCheck()); shiroAuthenticationFailButton .setId(ID.getId(Optional.of("authentication"), this, shiroAuthenticationFailButton)); Button shiroGuestButton = new Button("shiro guest"); shiroGuestButton.addClickListener(event -> guestCheck()); shiroGuestButton.setId(ID.getId(Optional.of("guest"), this, shiroGuestButton)); setMiddleCentre(shiroPermissionsFailButton); setTopCentre(shiroAuthenticationFailButton); setTopRight(shiroGuestButton); setTopLeft(shiroPermissionsPassButton); setBottomCentre(shiroRolePassButton); setBottomRight(shiroRoleFailButton); }