Class ttreelistitem

Unit

Declaration

type ttreelistitem = class(tlistitem)

Description

No description available, ancestor tlistitem description follows
No description available, ancestor tnullinterfacedobject description follows

Hierarchy

Overview

Fields

Protected fparent: ttreelistitem;
Protected fparentindex: integer;
Protected fitems: treelistitemarty;
Protected fcount: integer;
Protected ftreelevel: integer;

Methods

Protected procedure setexpanded(const Value: boolean) virtual;
Protected procedure statechangedvirtual;
Protected procedure aftermovevirtual;
Protected procedure checksort; virtual;
Protected procedure setcaption(const avalue: msestring); override;
Protected procedure setowner(const aowner: tcustomitemlist); override;
Protected procedure setchecked(const avalue: boolean); override;
Protected procedure checkindex(const aindex: integer);
Protected procedure settreelevel(const value: integer);
Protected procedure countchange(const atreeheightbefore: integer; const notifyowner: boolean);
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
Protected function createsubnode: ttreelistitem; virtual;
Protected procedure internalswap(const a,b: integer);
Protected procedure internalmove(const source,dest: integer);
Protected procedure statreadsubnode(const reader: tstatreader; var anode: ttreelistitem); virtual;
Protected procedure internalexpandall;
Protected procedure internalcollapseall;
Protected procedure internalgetnodes(var aresult: treelistitemarty; var acount: integer; const must: nodestatesty; const mustnot: nodestatesty; const amode: getnodemodety; const addself: boolean);
Protected function customcompare(const l,r: ttreelistitem): integer; virtual;
Protected function comparecasesens(const l: ttreelistitem; const r: ttreelistitem): integer;
Protected function comparecaseinsens(const l: ttreelistitem; const r: ttreelistitem): integer;
Protected procedure doupdateparentnotcheckedstate(const aset: boolean);
Public constructor create(const aowner: tcustomitemlist = nil; const aparent: ttreelistitem = nil); reintroduce; virtual;
Public destructor destroy; override;
Public class procedure calcitemlayout(const asize: sizety; const ainnerframe: framety; const list: tcustomitemlist; var info: listitemlayoutinfoty); override;
Public procedure releaseowner; override;
Public procedure releasechildren();
Public procedure dostatread(const reader: tstatreader); override;
Public procedure dostatwrite(const writer: tstatwriter); override;
Public procedure updatechildcheckedstate();
Public procedure updatechildcheckedtree();
Public procedure updatechildnotcheckedtree();
Public procedure updatechildnotcheckedstate();
Public procedure updateparentnotcheckedstate();
Public procedure updateparentnotcheckedtree();
Public function parentorself: ttreelistitem;
Public function parentindex: integer;
Public function levelshift: integer;
Public function treeheight: integer;
Public function rowheight: integer;
Public function isroot: boolean;
Public function issinglerootrow: boolean;
Public function islastnode: boolean;
Public function findsibling(const asibling: ttreelistitem): ttreelistitem;
Public function nextnode: ttreelistitem;
Public function nextnodeparent: ttreelistitem;
Public function checkdescendent(node: ttreelistitem): boolean;
Public function checkancestor(node: ttreelistitem): boolean;
Public function isstatechanged: boolean;
Public function candrag: boolean; virtual;
Public function candrop(const source: ttreelistitem): boolean; virtual;
Public function finditembycaption(const acaption: msestring; var dest: ttreelistitem): boolean; overload;
Public function finditembycaption(const acaption: msestring; const acasesensitive: boolean = false; const aexpand: boolean = false): ttreelistitem; overload;
Public function finditembycaption(const acaption: lmsestringty; const aexpand: boolean = false): ttreelistitem; overload;
Public function finditembycaption(const acaptions: msestringarty; const acasesensitive: boolean = false; const aexpand: boolean = false; const apartial: boolean = false): ttreelistitem; overload;
Public function rootnode: ttreelistitem;
Public function rootpath: treelistitemarty;
Public function rootcaptions: msestringarty; overload;
Public function rootcaptions(const aowner: tcustomitemlist): msestringarty; overload;
Public procedure checkitems(const checkdelete: checktreelistitemprocty);
Public procedure updatecellzone(const pos: pointty; var zone: cellzonety); override;
Public procedure mouseevent(var info: mouseeventinfoty); override;
Public procedure drawimage(const acanvas: tcanvas; var alayoutinfo: listitemlayoutinfoty) override;
Public procedure addchildren(const aitem: ttreelistitem);
Public function add(const aitem: ttreelistitem): integer; overload;
Public procedure add(const aitems: treelistitemarty); overload;
Public function add(const itemclass: treelistitemclassty = nil): ttreelistitem; overload;
Public procedure add(const acount: integer; const itemclass: treelistitemclassty = nil; const defaultstate: nodestatesty = []); overload;
Public procedure insert(aindex: integer; const aitem: ttreelistitem);
Public procedure insert(const aitem: ttreelistitem; aindex: integer); deprecated;
Public procedure move(const source,dest: integer);
Public procedure swap(const a,b: integer);
Public procedure clear; virtual;
Public function getnodes(const must: nodestatesty; const mustnot: nodestatesty; const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty;
Public function getselectednodes(const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty;
Public function getcheckednodes(const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty;
Public procedure expandall;
Public procedure collapseall;
Public procedure expandtoroot(const afocusrow: boolean = true);
Public procedure collapsetoroot;
Public function remove(const aindex: integer): ttreelistitem;
Public procedure sort(const casesensitive: boolean; const recursive: boolean = false); overload;
Public procedure sort(const sortfunc: arraysortcomparety; const recursive: boolean = false); overload;
Public procedure setupeditor(const editor: tinplaceedit; const font: tfont; const notext: boolean); override;
Public function treechecked: boolean;

Properties

Public property parent: ttreelistitem read fparent;
Public property treelevel: integer read ftreelevel;
Public property subitems: boolean read getsubitems write setsubitems;
Public property count: integer read fcount;
Public property rootexpanded: boolean read getrootexpanded write setrootexpanded;
Public property expanded: boolean read getexpanded write setexpanded;
Public property items[constaindex:integer]: ttreelistitem read getitems;

Description

Fields

Protected fparent: ttreelistitem;
 
Protected fparentindex: integer;
 
Protected fitems: treelistitemarty;
 
Protected fcount: integer;
 
Protected ftreelevel: integer;
 

Methods

Protected procedure setexpanded(const Value: boolean) virtual;
 
Protected procedure statechangedvirtual;
 
Protected procedure aftermovevirtual;
 
Protected procedure checksort; virtual;
 
Protected procedure setcaption(const avalue: msestring); override;
 
Protected procedure setowner(const aowner: tcustomitemlist); override;
 
Protected procedure setchecked(const avalue: boolean); override;
 
Protected procedure checkindex(const aindex: integer);
 
Protected procedure settreelevel(const value: integer);
 
Protected procedure countchange(const atreeheightbefore: integer; const notifyowner: boolean);
 
Protected procedure objectevent(const sender: tobject; const event: objecteventty); override;
 
Protected function createsubnode: ttreelistitem; virtual;
 
Protected procedure internalswap(const a,b: integer);
 
Protected procedure internalmove(const source,dest: integer);
 
Protected procedure statreadsubnode(const reader: tstatreader; var anode: ttreelistitem); virtual;
 
Protected procedure internalexpandall;
 
Protected procedure internalcollapseall;
 
Protected procedure internalgetnodes(var aresult: treelistitemarty; var acount: integer; const must: nodestatesty; const mustnot: nodestatesty; const amode: getnodemodety; const addself: boolean);
 
Protected function customcompare(const l,r: ttreelistitem): integer; virtual;
 
Protected function comparecasesens(const l: ttreelistitem; const r: ttreelistitem): integer;
 
Protected function comparecaseinsens(const l: ttreelistitem; const r: ttreelistitem): integer;
 
Protected procedure doupdateparentnotcheckedstate(const aset: boolean);
 
Public constructor create(const aowner: tcustomitemlist = nil; const aparent: ttreelistitem = nil); reintroduce; virtual;
 
Public destructor destroy; override;
 
Public class procedure calcitemlayout(const asize: sizety; const ainnerframe: framety; const list: tcustomitemlist; var info: listitemlayoutinfoty); override;
 
Public procedure releaseowner; override;
 
Public procedure releasechildren();
 
Public procedure dostatread(const reader: tstatreader); override;
 
Public procedure dostatwrite(const writer: tstatwriter); override;
 
Public procedure updatechildcheckedstate();
 
Public procedure updatechildcheckedtree();
 
Public procedure updatechildnotcheckedtree();
 
Public procedure updatechildnotcheckedstate();
 
Public procedure updateparentnotcheckedstate();
 
Public procedure updateparentnotcheckedtree();
 
Public function parentorself: ttreelistitem;
 
Public function parentindex: integer;
 
Public function levelshift: integer;
 
Public function treeheight: integer;
 
Public function rowheight: integer;
 
Public function isroot: boolean;
 
Public function issinglerootrow: boolean;
 
Public function islastnode: boolean;
 
Public function findsibling(const asibling: ttreelistitem): ttreelistitem;
 
Public function nextnode: ttreelistitem;
 
Public function nextnodeparent: ttreelistitem;
 
Public function checkdescendent(node: ttreelistitem): boolean;
 
Public function checkancestor(node: ttreelistitem): boolean;
 
Public function isstatechanged: boolean;
 
Public function candrag: boolean; virtual;
 
Public function candrop(const source: ttreelistitem): boolean; virtual;
 
Public function finditembycaption(const acaption: msestring; var dest: ttreelistitem): boolean; overload;
 
Public function finditembycaption(const acaption: msestring; const acasesensitive: boolean = false; const aexpand: boolean = false): ttreelistitem; overload;
 
Public function finditembycaption(const acaption: lmsestringty; const aexpand: boolean = false): ttreelistitem; overload;
 
Public function finditembycaption(const acaptions: msestringarty; const acasesensitive: boolean = false; const aexpand: boolean = false; const apartial: boolean = false): ttreelistitem; overload;
 
Public function rootnode: ttreelistitem;
 
Public function rootpath: treelistitemarty;
 
Public function rootcaptions: msestringarty; overload;
 
Public function rootcaptions(const aowner: tcustomitemlist): msestringarty; overload;
 
Public procedure checkitems(const checkdelete: checktreelistitemprocty);
 
Public procedure updatecellzone(const pos: pointty; var zone: cellzonety); override;
 
Public procedure mouseevent(var info: mouseeventinfoty); override;
 
Public procedure drawimage(const acanvas: tcanvas; var alayoutinfo: listitemlayoutinfoty) override;
 
Public procedure addchildren(const aitem: ttreelistitem);
 
Public function add(const aitem: ttreelistitem): integer; overload;
 
Public procedure add(const aitems: treelistitemarty); overload;
 
Public function add(const itemclass: treelistitemclassty = nil): ttreelistitem; overload;
 
Public procedure add(const acount: integer; const itemclass: treelistitemclassty = nil; const defaultstate: nodestatesty = []); overload;
 
Public procedure insert(aindex: integer; const aitem: ttreelistitem);
 
Public procedure insert(const aitem: ttreelistitem; aindex: integer); deprecated;

Warning: this symbol is deprecated.

 
Public procedure move(const source,dest: integer);
 
Public procedure swap(const a,b: integer);
 
Public procedure clear; virtual;
 
Public function getnodes(const must: nodestatesty; const mustnot: nodestatesty; const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty;
 
Public function getselectednodes(const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty;
 
Public function getcheckednodes(const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty;
 
Public procedure expandall;
 
Public procedure collapseall;
 
Public procedure expandtoroot(const afocusrow: boolean = true);
 
Public procedure collapsetoroot;
 
Public function remove(const aindex: integer): ttreelistitem;
 
Public procedure sort(const casesensitive: boolean; const recursive: boolean = false); overload;
 
Public procedure sort(const sortfunc: arraysortcomparety; const recursive: boolean = false); overload;
 
Public procedure setupeditor(const editor: tinplaceedit; const font: tfont; const notext: boolean); override;
 
Public function treechecked: boolean;
 

Properties

Public property parent: ttreelistitem read fparent;
 
Public property treelevel: integer read ftreelevel;
 
Public property subitems: boolean read getsubitems write setsubitems;
 
Public property count: integer read fcount;
 
Public property rootexpanded: boolean read getrootexpanded write setrootexpanded;
 
Public property expanded: boolean read getexpanded write setexpanded;
 
Public property items[constaindex:integer]: ttreelistitem read getitems;
 

Generated by PasDoc 0.16.0.