/** * Resizes the grid. * * @param rows the number of rows * @param columns the number of columns * @throws IndexOutOfBoundsException */ public void resize(int rows, int columns) { resizeColumns(columns); resizeRows(rows); }
/** {@inheritDoc} */ @Override public void clear() { notifications.clear(); nGrid.clear(); nGrid.resizeRows(0); } }
/** * Resizes the grid. * * @param rows the number of rows * @param columns the number of columns * @throws IndexOutOfBoundsException */ public void resize(int rows, int columns) { resizeColumns(columns); resizeRows(rows); }
/** * Resizes the grid. * * @param rows the number of rows * @param columns the number of columns * @throws IndexOutOfBoundsException */ public void resize(int rows, int columns) { resizeColumns(columns); resizeRows(rows); }
/** * Show notification in container. * * @param notification notification that need to show */ 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); }