| 68 | } |
| 69 | |
| 70 | bool TableView::initWithViewSize(Size size, Node* container /* = nullptr*/) |
| 71 | { |
| 72 | if (ScrollView::initWithViewSize(size, container)) |
| 73 | { |
| 74 | AX_SAFE_DELETE(_indices); |
| 75 | _indices = new std::set<ssize_t>(); |
| 76 | _vordering = VerticalFillOrder::BOTTOM_UP; |
| 77 | this->setDirection(Direction::VERTICAL); |
| 78 | |
| 79 | ScrollView::setDelegate(this); |
| 80 | return true; |
| 81 | } |
| 82 | return false; |
| 83 | } |
| 84 | |
| 85 | TableView::TableView() |
| 86 | : _touchedCell(nullptr) |