/** * Updates the rows and columns properties as these are added. * * @see org.fujion.component.BaseComponent#afterAddChild(org.fujion.component.BaseComponent) */ @Override protected void afterAddChild(BaseComponent child) { super.afterAddChild(child); if (child instanceof Rows) { rows = (Rows) child; } if (child instanceof Columns) { columns = (Columns) child; } }
/** * If the added column is marked as sorted, set it as the sort column. * * @see org.fujion.component.BaseComponent#afterAddChild(org.fujion.component.BaseComponent) */ @Override protected void afterAddChild(BaseComponent child) { super.afterAddChild(child); if (((Column) child).isSortColumn()) { setSortColumn((Column) child); } }
/** * 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); } } }