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
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastleScrollViewCustom
- TCastleScrollView
- TCastleTableView
Overview
Fields
nested const DefaultCellHeight = 50; |
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure ReloadData; |
|
procedure SetDataSource(ADataSource: ICastleTableViewDataSource); |
|
function Press(const Event: TInputPressRelease): boolean; override; |
|
function Release(const Event: TInputPressRelease): boolean; override; |
|
function Motion(const Event: TInputMotion): boolean; override; |
|
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
Properties
property DataSource: ICastleTableViewDatasource read FDataSource write SetDataSource; |
|
property OnSelectCell: TTableViewDidSelectCellEvent
read FOnDidSelectCell write FOnDidSelectCell; |
|
property CellHeight: Integer read FCellHeight write FCellHeight default DefaultCellHeight; |
Description
Fields
nested const DefaultCellHeight = 50; |
|
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure ReloadData; |
|
procedure SetDataSource(ADataSource: ICastleTableViewDataSource); |
|
function Press(const Event: TInputPressRelease): boolean; override; |
|
function Release(const Event: TInputPressRelease): boolean; override; |
|
function Motion(const Event: TInputMotion): boolean; override; |
|
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
|
Properties
property DataSource: ICastleTableViewDatasource read FDataSource write SetDataSource; |
|
TableView needs data source set in order to show some contents. |
property OnSelectCell: TTableViewDidSelectCellEvent
read FOnDidSelectCell write FOnDidSelectCell; |
|
Event called when cell was selected by user. |
property CellHeight: Integer read FCellHeight write FCellHeight default DefaultCellHeight; |
|
Height of all cells. |
Generated by PasDoc 0.16.0.