public virtual void TableCellTouched(CCTableView table, CCTableViewCell cell) { CCLog.Log("cell touched at index: {0}", cell.Index); }
protected void _moveCellOutOfSight(CCTableViewCell cell) { m_pCellsFreed.Add(cell); m_pCellsUsed.RemoveSortedObject(cell); m_pIndices.Remove(cell.Index); cell.Reset(); if (cell.Parent == Container) { Container.RemoveChild(cell, true); } }
protected void _setIndexForCell(int index, CCTableViewCell cell) { cell.AnchorPoint = CCPoint.Zero; cell.Position = _offsetFromIndex(index); cell.Index = index; }
protected void _addCellIfNecessary(CCTableViewCell cell) { if (cell.Parent != Container) { Container.AddChild(cell); } m_pCellsUsed.InsertSortedObject(cell); if (!m_pIndices.Contains(cell.Index)) m_pIndices.Add(cell.Index); }