Ejemplo n.º 1
0
    @Override
    public ComponentContainer getLayout() {
      String title =
          (user.getUsername() == null)
              ? AppContext.getMessage(UserI18nEnum.VIEW_NEW_USER)
              : user.getDisplayName();
      final AddViewLayout formAddLayout = new AddViewLayout(title, FontAwesome.USER);

      formAddLayout.addHeaderRight(createButtonControls());

      userInformationLayout = new UserInformationLayout();

      formAddLayout.addBody(userInformationLayout.getLayout());

      return formAddLayout;
    }
Ejemplo n.º 2
0
 @Override
 public void attachField(Object propertyId, Field<?> field) {
   userInformationLayout.attachField(propertyId, field);
 }