Class TDataItemDef

Unit

Declaration

type TDataItemDef = class(TCollectionItem)

Description

DataItemDefinition object - define titletext, recordtext and properties for one datasource used by TrDBTreeView

Hierarchy

  • TCollectionItem
  • TDataItemDef

Overview

Properties

Published property SubDataItemDefs: TDataItemDefs read FSubDataItemDefs write SetSubDataItemDefs;
Published property DataSource: TDataSource read FDataSource write SetDataSource;
Published property KeyFieldName: string read FKeyFieldName write FKeyFieldName;
Published property ParentKeyFieldName: string read FParentKeyFieldName write FParentKeyFieldName;
Published property EmptyDatasetText: string read FEmptyDatasetText write FEmptyDatasetText;
Published property ListAllRecords: boolean read FListAllRecords write SetListAllRecords default true;
Published property MultilevelMode: boolean read FMultilevelMode write FMultilevelMode default false;
Published property MultilevelTopLevelFilter: string read FMultilevelTopLevelFilter write FMultilevelTopLevelFilter;
Published property MaxRecords: integer read FMaxRecords write FMaxRecords default 0;
Published property ExpandNode: boolean read FExpandNode write SetExpandNode default true;
Published property ShowTitle: boolean read FShowTitle write SetShowTitle default true;
Published property TitleText: string read FTitleText write SetTitleText;
Published property TitleImageIndex: integer read FTitleImageIndex write SetTitleImageIndex default - 1;
Published property TitleBkColor: TColor read FTitleBkColor write SetTitleBkColor default clNone;
Published property TitleFontColor: TColor read FTitleFontColor write SetTitleFontColor default clNone;
Published property TitleStyle: TFontStyles read FTitleStyle write SetTitleStyle default[];
Published property RecordTextMask: string read FRecordTextMask write SetRecordTextMask;
Published property RecordImageIndex: integer read FRecordImageIndex write SetRecordImageIndex default - 1;
Published property RecordSelectedImageIndex: integer read FRecordSelectedImageIndex write FRecordSelectedImageIndex default - 1;
Published property RecordExpandedImageIndex: integer read FRecordExpandedImageIndex write FRecordExpandedImageIndex default - 1;
Published property RecordStateImageIndex: integer read FRecordStateImageIndex write FRecordStateImageIndex default - 1;
Published property RecordBkColor: TColor read FRecordBkColor write SetRecordBkColor default clNone;
Published property RecordFontColor: TColor read FRecordFontColor write SetRecordFontColor default clNone;
Published property RecordChangedFontColor: TColor read FRecordChangedFontColor write FRecordChangedFontColor default clNone;
Published property RecordStyle: TFontStyles read FRecordStyle write SetRecordStyle default[];
Published property FillLeftBorder: integer read FFillLeftBorder write SetFillLeftBorder default 0;
Published property FillRightBorder: integer read FFillRightBorder write SetFillRightBorder default 0;
Published property CanEditText: boolean read FCanEditText write FCanEditText default false;
Published property DragDropMode: TDragDropItemOptions read FDragDropMode write FDragDropMode default[];

Description

Properties

Published property SubDataItemDefs: TDataItemDefs read FSubDataItemDefs write SetSubDataItemDefs;

list of child DataItemDefinition - is shown as child treenode

Published property DataSource: TDataSource read FDataSource write SetDataSource;

datasource used for data fields

Published property KeyFieldName: string read FKeyFieldName write FKeyFieldName;

KeyField is used for saving of KeyValue for each node

Published property ParentKeyFieldName: string read FParentKeyFieldName write FParentKeyFieldName;

ParentKeyFieldName define field which contains id of parent node (used for multilevel mode)

Published property EmptyDatasetText: string read FEmptyDatasetText write FEmptyDatasetText;

text used for empty dataset node

Published property ListAllRecords: boolean read FListAllRecords write SetListAllRecords default true;

define that all records will be loaded and displayed in treeview

Published property MultilevelMode: boolean read FMultilevelMode write FMultilevelMode default false;

define that sublevels will be created too for the same dataset - ParentKeyFieldName is used to find child records

Published property MultilevelTopLevelFilter: string read FMultilevelTopLevelFilter write FMultilevelTopLevelFilter;

define filter string for first level for multilevel - usually ParentID=0 or ParentID=null

Published property MaxRecords: integer read FMaxRecords write FMaxRecords default 0;

define maximum number of records in one node, last node contain ...

Published property ExpandNode: boolean read FExpandNode write SetExpandNode default true;

define whether node is expanded after loading

Published property ShowTitle: boolean read FShowTitle write SetShowTitle default true;

define whether extra node with title is used

Published property TitleText: string read FTitleText write SetTitleText;

define title text, can contain mask for loadind of field value - <<FieldName>>

Published property TitleImageIndex: integer read FTitleImageIndex write SetTitleImageIndex default - 1;

define image index for title node

Published property TitleBkColor: TColor read FTitleBkColor write SetTitleBkColor default clNone;

define background color for title node

Published property TitleFontColor: TColor read FTitleFontColor write SetTitleFontColor default clNone;

define font color for title node

Published property TitleStyle: TFontStyles read FTitleStyle write SetTitleStyle default[];

define font style for title node

Published property RecordTextMask: string read FRecordTextMask write SetRecordTextMask;

define text for each record, can contain mask for loadind of field value - <<FieldName>>

Published property RecordImageIndex: integer read FRecordImageIndex write SetRecordImageIndex default - 1;

define image index for each record node

Published property RecordSelectedImageIndex: integer read FRecordSelectedImageIndex write FRecordSelectedImageIndex default - 1;

define image index for each record node

Published property RecordExpandedImageIndex: integer read FRecordExpandedImageIndex write FRecordExpandedImageIndex default - 1;

define image index for each record node

Published property RecordStateImageIndex: integer read FRecordStateImageIndex write FRecordStateImageIndex default - 1;

define image index for each record node

Published property RecordBkColor: TColor read FRecordBkColor write SetRecordBkColor default clNone;

define background color for each record node

Published property RecordFontColor: TColor read FRecordFontColor write SetRecordFontColor default clNone;

define font color for each record node

Published property RecordChangedFontColor: TColor read FRecordChangedFontColor write FRecordChangedFontColor default clNone;

define font color for chnaged record node

Published property RecordStyle: TFontStyles read FRecordStyle write SetRecordStyle default[];

define font style for each record node

Published property FillLeftBorder: integer read FFillLeftBorder write SetFillLeftBorder default 0;

define left border for background and underline

Published property FillRightBorder: integer read FFillRightBorder write SetFillRightBorder default 0;

define right border for background and underline

Published property CanEditText: boolean read FCanEditText write FCanEditText default false;

define whether items can be edited

Published property DragDropMode: TDragDropItemOptions read FDragDropMode write FDragDropMode default[];

define whether and how items can be moved


Generated by PasDoc 0.15.0.