Class TCastleTableView

Unit

Declaration

type TCastleTableView = class(TCastleScrollView)

Description

Warning: this symbol is deprecated: use instead TCastleVerticalGroup with children as TCastleHorizontalGroup to create a table layout

TableView control to show lists in GUI. The usage is similar as in iOS TableView or Android ListView - you have to pass a data source (implement ICastleTableViewDataSource interface), and TableView control takes care of the rest. TableView control descends from TCastleScrollView, so it shows the scrollbar when needed.

Hierarchy

Overview

Fields

Public nested const DefaultCellHeight = 50;

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure ReloadData;
Public procedure SetDataSource(ADataSource: ICastleTableViewDataSource);
Public function Press(const Event: TInputPressRelease): boolean; override;
Public function Release(const Event: TInputPressRelease): boolean; override;
Public function Motion(const Event: TInputMotion): boolean; override;
Public procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override;

Properties

Public property DataSource: ICastleTableViewDatasource read FDataSource write SetDataSource;
Public property OnSelectCell: TTableViewDidSelectCellEvent read FOnDidSelectCell write FOnDidSelectCell;
Public property CellHeight: Integer read FCellHeight write FCellHeight default DefaultCellHeight;

Description

Fields

Public nested const DefaultCellHeight = 50;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure ReloadData;
 
Public procedure SetDataSource(ADataSource: ICastleTableViewDataSource);
 
Public function Press(const Event: TInputPressRelease): boolean; override;
 
Public function Release(const Event: TInputPressRelease): boolean; override;
 
Public function Motion(const Event: TInputMotion): boolean; override;
 
Public procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override;
 

Properties

Public property DataSource: ICastleTableViewDatasource read FDataSource write SetDataSource;

TableView needs data source set in order to show some contents.

Public property OnSelectCell: TTableViewDidSelectCellEvent read FOnDidSelectCell write FOnDidSelectCell;

Event called when cell was selected by user.

Public property CellHeight: Integer read FCellHeight write FCellHeight default DefaultCellHeight;

Height of all cells.


Generated by PasDoc 0.16.0.