/** * Returns the group that this row belongs to, or null. * @since 3.5.0 */ public Group getGroup() { final Rows rows = (Rows) getParent(); return (rows != null) ? rows.getGroup(getIndex()) : null; }
public boolean setVisible(boolean visible) { if (isVisible() != visible) { final Rows rows = (Rows) getParent(); if (rows != null) { final Group g = rows.getGroup(getIndex()); if (g == null || g.isOpen()) rows.addVisibleItemCount(visible ? 1 : -1); } } return super.setVisible(visible); }