public void addNotification(@NotNull Notification notification){
  notifications.add(notification);
  NotificationContainerItem item=new NotificationContainerItem(notification,resources);
  item.setDelegate(this);
  int index=nGrid.getRowCount();
  nGrid.resizeRows(index + 1);
  nGrid.setWidget(index,0,item);
}

public void addNotification ( @ NotNull Notification notification ) { notifications . add ( notification ) ; NotificationContainerItem item = new NotificationContainerItem ( notification , resources ) ; item . setDelegate ( this ) ; int index = nGrid . getRowCount ( ) ; nGrid . resizeRows ( index + 1 ) ; nGrid . setWidget ( index , 0 , item ) ; }
show notification in container .
