/** * Updates the selection state of a row. * * @param row A row. */ protected void _updateSelected(Row row) { if (row.isSelected()) { selected.add(row); if (selectable != Selectable.MULTIPLE) { unselect(selectable == Selectable.NO ? null : row); } } else { selected.remove(row); } }
/** * if the added child row is selected, add it to the set. * * @see org.fujion.component.BaseComponent#afterAddChild(org.fujion.component.BaseComponent) */ @Override protected void afterAddChild(BaseComponent child) { super.afterAddChild(child); Row row = (Row) child; if (row.isSelected()) { _updateSelected(row); } } }
if (getShowDetailPane() && row.isSelected()) { rowSelected(row); if (!getShowDetailPane() && row.isSelected()) { rowSelected(row);