Class ttreelistitem
Unit
Declaration
type ttreelistitem = class(tlistitem)
Description
No description available, ancestor tlistitem description follows
No description available, ancestor tnullinterfacedobject description follows
Hierarchy
- tobject
- tnullinterfacedobject
- tlistitem
- ttreelistitem
Overview
Fields
fparent: ttreelistitem; |
|
fparentindex: integer; |
|
fitems: treelistitemarty; |
|
fcount: integer; |
|
ftreelevel: integer; |
Methods
procedure setexpanded(const Value: boolean) virtual; |
|
procedure statechangedvirtual; |
|
procedure aftermovevirtual; |
|
procedure checksort; virtual; |
|
procedure setcaption(const avalue: msestring); override; |
|
procedure setowner(const aowner: tcustomitemlist); override; |
|
procedure setchecked(const avalue: boolean); override; |
|
procedure checkindex(const aindex: integer); |
|
procedure settreelevel(const value: integer); |
|
procedure countchange(const atreeheightbefore: integer; const notifyowner: boolean); |
|
procedure objectevent(const sender: tobject; const event: objecteventty); override; |
|
function createsubnode: ttreelistitem; virtual; |
|
procedure internalswap(const a,b: integer); |
|
procedure internalmove(const source,dest: integer); |
|
procedure statreadsubnode(const reader: tstatreader; var anode: ttreelistitem); virtual; |
|
procedure internalexpandall; |
|
procedure internalcollapseall; |
|
procedure internalgetnodes(var aresult: treelistitemarty; var acount: integer; const must: nodestatesty; const mustnot: nodestatesty; const amode: getnodemodety; const addself: boolean); |
|
function customcompare(const l,r: ttreelistitem): integer; virtual; |
|
function comparecasesens(const l: ttreelistitem; const r: ttreelistitem): integer; |
|
function comparecaseinsens(const l: ttreelistitem; const r: ttreelistitem): integer; |
|
procedure doupdateparentnotcheckedstate(const aset: boolean); |
|
constructor create(const aowner: tcustomitemlist = nil; const aparent: ttreelistitem = nil); reintroduce; virtual; |
|
destructor destroy; override; |
|
class procedure calcitemlayout(const asize: sizety; const ainnerframe: framety; const list: tcustomitemlist; var info: listitemlayoutinfoty); override; |
|
procedure releaseowner; override; |
|
procedure releasechildren(); |
|
procedure dostatread(const reader: tstatreader); override; |
|
procedure dostatwrite(const writer: tstatwriter); override; |
|
procedure updatechildcheckedstate(); |
|
procedure updatechildcheckedtree(); |
|
procedure updatechildnotcheckedtree(); |
|
procedure updatechildnotcheckedstate(); |
|
procedure updateparentnotcheckedstate(); |
|
procedure updateparentnotcheckedtree(); |
|
function parentorself: ttreelistitem; |
|
function parentindex: integer; |
|
function levelshift: integer; |
|
function treeheight: integer; |
|
function rowheight: integer; |
|
function isroot: boolean; |
|
function issinglerootrow: boolean; |
|
function islastnode: boolean; |
|
function findsibling(const asibling: ttreelistitem): ttreelistitem; |
|
function nextnode: ttreelistitem; |
|
function nextnodeparent: ttreelistitem; |
|
function checkdescendent(node: ttreelistitem): boolean; |
|
function checkancestor(node: ttreelistitem): boolean; |
|
function isstatechanged: boolean; |
|
function candrag: boolean; virtual; |
|
function candrop(const source: ttreelistitem): boolean; virtual; |
|
function finditembycaption(const acaption: msestring; var dest: ttreelistitem): boolean; overload; |
|
function finditembycaption(const acaption: msestring; const acasesensitive: boolean = false; const aexpand: boolean = false): ttreelistitem; overload; |
|
function finditembycaption(const acaption: lmsestringty; const aexpand: boolean = false): ttreelistitem; overload; |
|
function finditembycaption(const acaptions: msestringarty; const acasesensitive: boolean = false; const aexpand: boolean = false; const apartial: boolean = false): ttreelistitem; overload; |
|
function rootnode: ttreelistitem; |
|
function rootpath: treelistitemarty; |
|
function rootcaptions: msestringarty; overload; |
|
function rootcaptions(const aowner: tcustomitemlist): msestringarty; overload; |
|
procedure checkitems(const checkdelete: checktreelistitemprocty); |
|
procedure updatecellzone(const pos: pointty; var zone: cellzonety); override; |
|
procedure mouseevent(var info: mouseeventinfoty); override; |
|
procedure drawimage(const acanvas: tcanvas; var alayoutinfo: listitemlayoutinfoty) override; |
|
procedure addchildren(const aitem: ttreelistitem); |
|
function add(const aitem: ttreelistitem): integer; overload; |
|
procedure add(const aitems: treelistitemarty); overload; |
|
function add(const itemclass: treelistitemclassty = nil): ttreelistitem; overload; |
|
procedure add(const acount: integer; const itemclass: treelistitemclassty = nil; const defaultstate: nodestatesty = []); overload; |
|
procedure insert(aindex: integer; const aitem: ttreelistitem); |
|
procedure insert(const aitem: ttreelistitem; aindex: integer); deprecated; |
|
procedure move(const source,dest: integer); |
|
procedure swap(const a,b: integer); |
|
procedure clear; virtual; |
|
function getnodes(const must: nodestatesty; const mustnot: nodestatesty; const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty; |
|
function getselectednodes(const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty; |
|
function getcheckednodes(const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty; |
|
procedure expandall; |
|
procedure collapseall; |
|
procedure expandtoroot(const afocusrow: boolean = true); |
|
procedure collapsetoroot; |
|
function remove(const aindex: integer): ttreelistitem; |
|
procedure sort(const casesensitive: boolean; const recursive: boolean = false); overload; |
|
procedure sort(const sortfunc: arraysortcomparety; const recursive: boolean = false); overload; |
|
procedure setupeditor(const editor: tinplaceedit; const font: tfont; const notext: boolean); override; |
|
function treechecked: boolean; |
Properties
property parent: ttreelistitem read fparent; |
|
property treelevel: integer read ftreelevel; |
|
property subitems: boolean read getsubitems write setsubitems; |
|
property count: integer read fcount; |
|
property rootexpanded: boolean read getrootexpanded write setrootexpanded; |
|
property expanded: boolean read getexpanded write setexpanded; |
|
property items[constaindex:integer]: ttreelistitem read getitems; |
Description
Fields
fparent: ttreelistitem; |
|
fparentindex: integer; |
|
fitems: treelistitemarty; |
|
fcount: integer; |
|
ftreelevel: integer; |
|
Methods
procedure setexpanded(const Value: boolean) virtual; |
|
procedure statechangedvirtual; |
|
procedure aftermovevirtual; |
|
procedure checksort; virtual; |
|
procedure setcaption(const avalue: msestring); override; |
|
procedure setowner(const aowner: tcustomitemlist); override; |
|
procedure setchecked(const avalue: boolean); override; |
|
procedure checkindex(const aindex: integer); |
|
procedure settreelevel(const value: integer); |
|
procedure countchange(const atreeheightbefore: integer; const notifyowner: boolean); |
|
procedure objectevent(const sender: tobject; const event: objecteventty); override; |
|
function createsubnode: ttreelistitem; virtual; |
|
procedure internalswap(const a,b: integer); |
|
procedure internalmove(const source,dest: integer); |
|
procedure statreadsubnode(const reader: tstatreader; var anode: ttreelistitem); virtual; |
|
procedure internalexpandall; |
|
procedure internalcollapseall; |
|
procedure internalgetnodes(var aresult: treelistitemarty; var acount: integer; const must: nodestatesty; const mustnot: nodestatesty; const amode: getnodemodety; const addself: boolean); |
|
function customcompare(const l,r: ttreelistitem): integer; virtual; |
|
function comparecasesens(const l: ttreelistitem; const r: ttreelistitem): integer; |
|
function comparecaseinsens(const l: ttreelistitem; const r: ttreelistitem): integer; |
|
procedure doupdateparentnotcheckedstate(const aset: boolean); |
|
constructor create(const aowner: tcustomitemlist = nil; const aparent: ttreelistitem = nil); reintroduce; virtual; |
|
destructor destroy; override; |
|
class procedure calcitemlayout(const asize: sizety; const ainnerframe: framety; const list: tcustomitemlist; var info: listitemlayoutinfoty); override; |
|
procedure releaseowner; override; |
|
procedure releasechildren(); |
|
procedure dostatread(const reader: tstatreader); override; |
|
procedure dostatwrite(const writer: tstatwriter); override; |
|
procedure updatechildcheckedstate(); |
|
procedure updatechildcheckedtree(); |
|
procedure updatechildnotcheckedtree(); |
|
procedure updatechildnotcheckedstate(); |
|
procedure updateparentnotcheckedstate(); |
|
procedure updateparentnotcheckedtree(); |
|
function parentorself: ttreelistitem; |
|
function parentindex: integer; |
|
function levelshift: integer; |
|
function treeheight: integer; |
|
function rowheight: integer; |
|
function isroot: boolean; |
|
function issinglerootrow: boolean; |
|
function islastnode: boolean; |
|
function findsibling(const asibling: ttreelistitem): ttreelistitem; |
|
function nextnode: ttreelistitem; |
|
function nextnodeparent: ttreelistitem; |
|
function checkdescendent(node: ttreelistitem): boolean; |
|
function checkancestor(node: ttreelistitem): boolean; |
|
function isstatechanged: boolean; |
|
function candrag: boolean; virtual; |
|
function candrop(const source: ttreelistitem): boolean; virtual; |
|
function finditembycaption(const acaption: msestring; var dest: ttreelistitem): boolean; overload; |
|
function finditembycaption(const acaption: msestring; const acasesensitive: boolean = false; const aexpand: boolean = false): ttreelistitem; overload; |
|
function finditembycaption(const acaption: lmsestringty; const aexpand: boolean = false): ttreelistitem; overload; |
|
function finditembycaption(const acaptions: msestringarty; const acasesensitive: boolean = false; const aexpand: boolean = false; const apartial: boolean = false): ttreelistitem; overload; |
|
function rootnode: ttreelistitem; |
|
function rootpath: treelistitemarty; |
|
function rootcaptions: msestringarty; overload; |
|
function rootcaptions(const aowner: tcustomitemlist): msestringarty; overload; |
|
procedure checkitems(const checkdelete: checktreelistitemprocty); |
|
procedure updatecellzone(const pos: pointty; var zone: cellzonety); override; |
|
procedure mouseevent(var info: mouseeventinfoty); override; |
|
procedure drawimage(const acanvas: tcanvas; var alayoutinfo: listitemlayoutinfoty) override; |
|
procedure addchildren(const aitem: ttreelistitem); |
|
function add(const aitem: ttreelistitem): integer; overload; |
|
procedure add(const aitems: treelistitemarty); overload; |
|
function add(const itemclass: treelistitemclassty = nil): ttreelistitem; overload; |
|
procedure add(const acount: integer; const itemclass: treelistitemclassty = nil; const defaultstate: nodestatesty = []); overload; |
|
procedure insert(aindex: integer; const aitem: ttreelistitem); |
|
procedure insert(const aitem: ttreelistitem; aindex: integer); deprecated; |
|
Warning: this symbol is deprecated. |
procedure move(const source,dest: integer); |
|
procedure swap(const a,b: integer); |
|
procedure clear; virtual; |
|
function getnodes(const must: nodestatesty; const mustnot: nodestatesty; const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty; |
|
function getselectednodes(const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty; |
|
function getcheckednodes(const amode: getnodemodety = gno_matching; const addself: boolean = false): treelistitemarty; |
|
procedure expandall; |
|
procedure collapseall; |
|
procedure expandtoroot(const afocusrow: boolean = true); |
|
procedure collapsetoroot; |
|
function remove(const aindex: integer): ttreelistitem; |
|
procedure sort(const casesensitive: boolean; const recursive: boolean = false); overload; |
|
procedure sort(const sortfunc: arraysortcomparety; const recursive: boolean = false); overload; |
|
procedure setupeditor(const editor: tinplaceedit; const font: tfont; const notext: boolean); override; |
|
function treechecked: boolean; |
|
Properties
property parent: ttreelistitem read fparent; |
|
property treelevel: integer read ftreelevel; |
|
property subitems: boolean read getsubitems write setsubitems; |
|
property count: integer read fcount; |
|
property rootexpanded: boolean read getrootexpanded write setrootexpanded; |
|
property expanded: boolean read getexpanded write setexpanded; |
|
property items[constaindex:integer]: ttreelistitem read getitems; |
|
Generated by PasDoc 0.16.0.