Class tcustomdataedit

Unit

Declaration

type tcustomdataedit = class(tcustomedit, igridwidget, istatfile, idragcontroller, iassistiveclientgridwidget, iifidatalink)

Description

No description available, ancestor tcustomedit description follows
No description available, ancestor tpublishedwidget description follows
No description available, ancestor tpublishedwidgetnwr description follows
No description available, ancestor tactionpublishedwidgetnwr description follows
No description available, ancestor tactionwidget description follows
No description available, ancestor twidget description follows
No description available, ancestor tactcomponent description follows
No description available, ancestor tmsecomponent description follows

Hierarchy

Overview

Fields

Protected fgridintf: iwidgetgrid;
Protected fgriddatalink: pointer;
Protected fdatalist: tdatalist;
Protected fcontrollerintf: idataeditcontroller;
Protected fparentintf: igridwidget;
Protected fifilink: tifivaluelinkcomp;

Methods

Protected function getdefaultifilink: iificlient; override;
Protected function getifidatalinkintf: iifidatalink; override;
Protected function getoptionsedit: optionseditty; override;
Protected procedure dochange; override;
Protected function getifidatatype(): listdatatypety override;
Protected procedure ifisetvalue(var avalue; var accept: boolean);
Protected procedure getifivalue(var avalue) virtual;
Protected procedure setifivalue(const avalue) virtual;
Protected function getifilinkkind: ptypeinfo; virtual;
Protected procedure setifilink(const avalue: tifilinkcomp);
Protected procedure updateifigriddata(const sender: tobject; const alist: tdatalist); virtual;
Protected function getgriddata: tdatalist;
Protected function getvalueprop: ppropinfo;
Protected procedure updatedatalist; virtual;
Protected function geteditstate: dataeditstatesty;
Protected procedure seteditstate(const avalue: dataeditstatesty);
Protected function getgridintf: iwidgetgrid;
Protected procedure checkgrid;
Protected function checkgriddata: tdatalist; overload;
Protected function checkgriddata(var index: integer): tdatalist; overload;
Protected procedure internalgetgridvalue(index: integer; var value);
Protected procedure internalsetgridvalue(index: integer; const Value);
Protected procedure internalfillcol(const value);
Protected procedure internalassigncol(const value);
Protected function getinnerframe: framety; override;
Protected procedure valuechanged; virtual;
Protected procedure dotextchange; virtual;
Protected procedure modified; virtual;
Protected function gettext: msestring override;
Protected function getedittext(): msestring override;
Protected procedure checktext(var atext: msestring; var accept: boolean);
Protected procedure texttovalue(var accept: boolean; const quiet: boolean); virtual; abstract;
Protected procedure texttodata(const atext: msestring; var data); virtual;
Protected function datatotext(const data): msestring;
Protected function internaldatatotext(const data): msestring; virtual; abstract;
Protected procedure valuetotext;
Protected procedure setenabled(const avalue: boolean); override;
Protected procedure dodefocus; override;
Protected procedure dofocus; override;
Protected procedure formatchanged; override;
Protected procedure loaded; override;
Protected procedure fontchanged; override;
Protected procedure dofontheightdelta(var delta: integer); override;
Protected procedure sizechanged; override;
Protected function geteditfont: tfont; override;
Protected class function classskininfo: skininfoty; override;
Protected function setdropdowntext(const avalue: msestring; const docheckvalue: boolean; const canceled: boolean; const akey: keyty): boolean;
Protected procedure initeditfocus;
Protected procedure setifilink0(const avalue: tifilinkcomp);
Protected procedure mouseevent(var info: mouseeventinfoty); override;
Protected procedure dokeydown(var info: keyeventinfoty); override;
Protected procedure internalcreateframe; override;
Protected procedure updatereadonlystate; override;
Protected procedure editnotification(var info: editnotificationinfoty); override;
Protected procedure domousewheelevent(var info: mousewheeleventinfoty); override;
Protected function locatecount: integer; override;
Protected function locatecurrentindex: integer; override;
Protected procedure locatesetcurrentindex(const aindex: integer); override;
Protected function getkeystring(const aindex: integer): msestring; override;
Protected procedure setfirstclick(var ainfo: mouseeventinfoty); virtual;
Protected function createdatalist(const sender: twidgetcol): tdatalist; virtual; abstract;
Protected procedure datalistdestroyed; virtual;
Protected function getdatalistclass: datalistclassty; virtual; abstract;
Protected function getdefaultvalue: pointer; virtual;
Protected function getrowdatapo(const arow: integer): pointer; virtual;
Protected procedure setgridintf(const intf: iwidgetgrid); virtual;
Protected function getcellframe: framety; virtual;
Protected function needscellfocuspaint(): boolean;
Protected function getcellcursor(const arow: integer; const acellzone: cellzonety; const apos: pointty): cursorshapety; virtual;
Protected procedure updatecellzone(const row: integer; const apos: pointty; var result: cellzonety); virtual;
Protected function getnulltext: msestring; virtual;
Protected function getcelltext(const datapo: pointer; out empty: boolean): msestring;
Protected function getiassistiveclient(): iassistiveclient override;
Protected function getassistivecelltext(const arow: int32): msestring;
Protected function getassistiveflags(): assistiveflagsty override;
Protected function getassistivetext(): msestring; override;
Protected function getassistivecolumncaption(): msestring virtual;
Protected procedure drawcell(const canvas: tcanvas); virtual;
Protected procedure updateautocellsize(const canvas: tcanvas); virtual;
Protected procedure beforecelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual;
Protected procedure aftercelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual;
Protected procedure valuetogrid(row: integer); virtual; abstract;
Protected procedure gridtovalue(row: integer); virtual;
Protected procedure setvaluedata(const source); virtual; abstract;
Protected procedure getvaluedata(out dest); virtual; abstract;
Protected procedure docellevent(const ownedcol: boolean; var info: celleventinfoty); virtual;
Protected function sortfunc(const l,r): integer; virtual;
Protected procedure gridvaluechanged(const index: integer); virtual;
Protected procedure updatecoloptions(const aoptions: coloptionsty);
Protected procedure updatecoloptions1(const aoptions: coloptions1ty);
Protected procedure setoptionsedit(const avalue: optionseditty); override;
Protected procedure setoptionsedit1(const avalue: optionsedit1ty); override;
Protected procedure statdataread; virtual;
Protected procedure griddatasourcechanged; virtual;
Protected function getifilink: tifilinkcomp;
Protected procedure setparentgridwidget(const intf: igridwidget);
Protected procedure childdataentered(const sender: igridwidget); virtual;
Protected procedure childfocused(const sender: igridwidget); virtual;
Protected procedure formaterror(const quiet: boolean);
Protected procedure rangeerror(const min,max; const quiet: boolean);
Protected procedure notnullerror(const quiet: boolean);
Protected procedure doafterpaint(const canvas: tcanvas); override;
Protected function needsfocuspaint: boolean; override;
Protected procedure dostatread(const reader: tstatreader); virtual;
Protected procedure dostatwrite(const writer: tstatwriter); virtual;
Protected procedure statreading;
Protected procedure statread;
Protected function getstatvarname: msestring;
Protected function getstatpriority: integer;
Protected procedure readstatvalue(const reader: tstatreader); virtual;
Protected procedure readstatstate(const reader: tstatreader); virtual;
Protected procedure readstatoptions(const reader: tstatreader); virtual;
Protected procedure writestatvalue(const writer: tstatwriter); virtual;
Protected procedure writestatstate(const writer: tstatwriter); virtual;
Protected procedure writestatoptions(const writer: tstatwriter); virtual;
Protected function cangridcopy: boolean; override;
Protected function isempty(const atext: msestring): boolean; virtual;
Protected procedure nullvalueset;
Protected procedure setnullvalue; virtual;
Protected function nullcheckneeded(const newfocus: twidget): boolean; virtual;
Protected function textcellcopy: boolean; virtual;
Protected function getedited: boolean; override;
Protected procedure setedited(const avalue: boolean); virtual;
Public procedure initnewwidget(const ascale: real); override;
Public procedure initgridwidget; virtual;
Public procedure paint(const canvas: tcanvas); override;
Public procedure synctofontheight; override;
Public function actualcolor: colorty; override;
Public function actualcursor(const apos: pointty): cursorshapety; override;
Public function widgetcol: twidgetcol;
Public function grid: tcustomwidgetgrid;
Public function gridrowhigh: int32;
Public function griddatarowhigh: int32;
Public function gridcol: integer;
Public function griddata: tdatalist;
Public function textclipped(const arow: integer; out acellrect: rectty): boolean; virtual;
Public function textclipped(const arow: integer): boolean;
Public function checkvalue(const quiet: boolean = false): boolean; virtual;
Public function canclose(const newfocus: twidget): boolean; override;
Public function emptytext: boolean;
Public function seteditfocus: boolean;
Public function isnull: boolean; virtual;

Properties

Public property gridrow: integer read getgridrow write setgridrow;
Public property gridintf: iwidgetgrid read fgridintf;
Public property edited: boolean read getedited write setedited;
Public property disptext: msestring read getdisptext;
Public property dataeditstate: dataeditstatesty read fstate;
Public property statfile: tstatfile read fstatfile write setstatfile;
Public property statvarname: msestring read getstatvarname write fstatvarname;
Public property statpriority: integer read fstatpriority write fstatpriority default 0;
Public property oncheckvalue: checkvalueeventty read foncheckvalue write foncheckvalue;
Public property ondataentered: notifyeventty read fondataentered write fondataentered;
Public property ongettext: gettexteventty read fongettext write fongettext;
Public property onsettext: settexteventty read fonsettext write fonsettext;
Public property ontextchange: textchangeeventty read fontextchange write fontextchange;

Description

Fields

Protected fgridintf: iwidgetgrid;
 
Protected fgriddatalink: pointer;
 
Protected fdatalist: tdatalist;
 
Protected fcontrollerintf: idataeditcontroller;
 
Protected fparentintf: igridwidget;
 
Protected fifilink: tifivaluelinkcomp;
 

Methods

Protected function getdefaultifilink: iificlient; override;
 
Protected function getifidatalinkintf: iifidatalink; override;
 
Protected function getoptionsedit: optionseditty; override;
 
Protected procedure dochange; override;
 
Protected function getifidatatype(): listdatatypety override;
 
Protected procedure ifisetvalue(var avalue; var accept: boolean);
 
Protected procedure getifivalue(var avalue) virtual;
 
Protected procedure setifivalue(const avalue) virtual;
 
Protected function getifilinkkind: ptypeinfo; virtual;
 
Protected procedure setifilink(const avalue: tifilinkcomp);
 
Protected procedure updateifigriddata(const sender: tobject; const alist: tdatalist); virtual;
 
Protected function getgriddata: tdatalist;
 
Protected function getvalueprop: ppropinfo;
 
Protected procedure updatedatalist; virtual;
 
Protected function geteditstate: dataeditstatesty;
 
Protected procedure seteditstate(const avalue: dataeditstatesty);
 
Protected function getgridintf: iwidgetgrid;
 
Protected procedure checkgrid;
 
Protected function checkgriddata: tdatalist; overload;
 
Protected function checkgriddata(var index: integer): tdatalist; overload;
 
Protected procedure internalgetgridvalue(index: integer; var value);
 
Protected procedure internalsetgridvalue(index: integer; const Value);
 
Protected procedure internalfillcol(const value);
 
Protected procedure internalassigncol(const value);
 
Protected function getinnerframe: framety; override;
 
Protected procedure valuechanged; virtual;
 
Protected procedure dotextchange; virtual;
 
Protected procedure modified; virtual;
 
Protected function gettext: msestring override;
 
Protected function getedittext(): msestring override;
 
Protected procedure checktext(var atext: msestring; var accept: boolean);
 
Protected procedure texttovalue(var accept: boolean; const quiet: boolean); virtual; abstract;
 
Protected procedure texttodata(const atext: msestring; var data); virtual;
 
Protected function datatotext(const data): msestring;
 
Protected function internaldatatotext(const data): msestring; virtual; abstract;
 
Protected procedure valuetotext;
 
Protected procedure setenabled(const avalue: boolean); override;
 
Protected procedure dodefocus; override;
 
Protected procedure dofocus; override;
 
Protected procedure formatchanged; override;
 
Protected procedure loaded; override;
 
Protected procedure fontchanged; override;
 
Protected procedure dofontheightdelta(var delta: integer); override;
 
Protected procedure sizechanged; override;
 
Protected function geteditfont: tfont; override;
 
Protected class function classskininfo: skininfoty; override;
 
Protected function setdropdowntext(const avalue: msestring; const docheckvalue: boolean; const canceled: boolean; const akey: keyty): boolean;
 
Protected procedure initeditfocus;
 
Protected procedure setifilink0(const avalue: tifilinkcomp);
 
Protected procedure mouseevent(var info: mouseeventinfoty); override;
 
Protected procedure dokeydown(var info: keyeventinfoty); override;
 
Protected procedure internalcreateframe; override;
 
Protected procedure updatereadonlystate; override;
 
Protected procedure editnotification(var info: editnotificationinfoty); override;
 
Protected procedure domousewheelevent(var info: mousewheeleventinfoty); override;
 
Protected function locatecount: integer; override;
 
Protected function locatecurrentindex: integer; override;
 
Protected procedure locatesetcurrentindex(const aindex: integer); override;
 
Protected function getkeystring(const aindex: integer): msestring; override;
 
Protected procedure setfirstclick(var ainfo: mouseeventinfoty); virtual;
 
Protected function createdatalist(const sender: twidgetcol): tdatalist; virtual; abstract;
 
Protected procedure datalistdestroyed; virtual;
 
Protected function getdatalistclass: datalistclassty; virtual; abstract;
 
Protected function getdefaultvalue: pointer; virtual;
 
Protected function getrowdatapo(const arow: integer): pointer; virtual;
 
Protected procedure setgridintf(const intf: iwidgetgrid); virtual;
 
Protected function getcellframe: framety; virtual;
 
Protected function needscellfocuspaint(): boolean;
 
Protected function getcellcursor(const arow: integer; const acellzone: cellzonety; const apos: pointty): cursorshapety; virtual;
 
Protected procedure updatecellzone(const row: integer; const apos: pointty; var result: cellzonety); virtual;
 
Protected function getnulltext: msestring; virtual;
 
Protected function getcelltext(const datapo: pointer; out empty: boolean): msestring;
 
Protected function getiassistiveclient(): iassistiveclient override;
 
Protected function getassistivecelltext(const arow: int32): msestring;
 
Protected function getassistiveflags(): assistiveflagsty override;
 
Protected function getassistivetext(): msestring; override;
 
Protected function getassistivecolumncaption(): msestring virtual;
 
Protected procedure drawcell(const canvas: tcanvas); virtual;
 
Protected procedure updateautocellsize(const canvas: tcanvas); virtual;
 
Protected procedure beforecelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual;
 
Protected procedure aftercelldragevent(var ainfo: draginfoty; const arow: integer; var handled: boolean); virtual;
 
Protected procedure valuetogrid(row: integer); virtual; abstract;
 
Protected procedure gridtovalue(row: integer); virtual;
 
Protected procedure setvaluedata(const source); virtual; abstract;
 
Protected procedure getvaluedata(out dest); virtual; abstract;
 
Protected procedure docellevent(const ownedcol: boolean; var info: celleventinfoty); virtual;
 
Protected function sortfunc(const l,r): integer; virtual;
 
Protected procedure gridvaluechanged(const index: integer); virtual;
 
Protected procedure updatecoloptions(const aoptions: coloptionsty);
 
Protected procedure updatecoloptions1(const aoptions: coloptions1ty);
 
Protected procedure setoptionsedit(const avalue: optionseditty); override;
 
Protected procedure setoptionsedit1(const avalue: optionsedit1ty); override;
 
Protected procedure statdataread; virtual;
 
Protected procedure griddatasourcechanged; virtual;
 
Protected function getifilink: tifilinkcomp;
 
Protected procedure setparentgridwidget(const intf: igridwidget);
 
Protected procedure childdataentered(const sender: igridwidget); virtual;
 
Protected procedure childfocused(const sender: igridwidget); virtual;
 
Protected procedure formaterror(const quiet: boolean);
 
Protected procedure rangeerror(const min,max; const quiet: boolean);
 
Protected procedure notnullerror(const quiet: boolean);
 
Protected procedure doafterpaint(const canvas: tcanvas); override;
 
Protected function needsfocuspaint: boolean; override;
 
Protected procedure dostatread(const reader: tstatreader); virtual;
 
Protected procedure dostatwrite(const writer: tstatwriter); virtual;
 
Protected procedure statreading;
 
Protected procedure statread;
 
Protected function getstatvarname: msestring;
 
Protected function getstatpriority: integer;
 
Protected procedure readstatvalue(const reader: tstatreader); virtual;
 
Protected procedure readstatstate(const reader: tstatreader); virtual;
 
Protected procedure readstatoptions(const reader: tstatreader); virtual;
 
Protected procedure writestatvalue(const writer: tstatwriter); virtual;
 
Protected procedure writestatstate(const writer: tstatwriter); virtual;
 
Protected procedure writestatoptions(const writer: tstatwriter); virtual;
 
Protected function cangridcopy: boolean; override;
 
Protected function isempty(const atext: msestring): boolean; virtual;
 
Protected procedure nullvalueset;
 
Protected procedure setnullvalue; virtual;
 
Protected function nullcheckneeded(const newfocus: twidget): boolean; virtual;
 
Protected function textcellcopy: boolean; virtual;
 
Protected function getedited: boolean; override;
 
Protected procedure setedited(const avalue: boolean); virtual;
 
Public procedure initnewwidget(const ascale: real); override;
 
Public procedure initgridwidget; virtual;
 
Public procedure paint(const canvas: tcanvas); override;
 
Public procedure synctofontheight; override;
 
Public function actualcolor: colorty; override;
 
Public function actualcursor(const apos: pointty): cursorshapety; override;
 
Public function widgetcol: twidgetcol;
 
Public function grid: tcustomwidgetgrid;
 
Public function gridrowhigh: int32;
 
Public function griddatarowhigh: int32;
 
Public function gridcol: integer;
 
Public function griddata: tdatalist;
 
Public function textclipped(const arow: integer; out acellrect: rectty): boolean; virtual;
 
Public function textclipped(const arow: integer): boolean;
 
Public function checkvalue(const quiet: boolean = false): boolean; virtual;
 
Public function canclose(const newfocus: twidget): boolean; override;
 
Public function emptytext: boolean;
 
Public function seteditfocus: boolean;
 
Public function isnull: boolean; virtual;
 

Properties

Public property gridrow: integer read getgridrow write setgridrow;
 
Public property gridintf: iwidgetgrid read fgridintf;
 
Public property edited: boolean read getedited write setedited;
 
Public property disptext: msestring read getdisptext;
 
Public property dataeditstate: dataeditstatesty read fstate;
 
Public property statfile: tstatfile read fstatfile write setstatfile;
 
Public property statvarname: msestring read getstatvarname write fstatvarname;
 
Public property statpriority: integer read fstatpriority write fstatpriority default 0;
 
Public property oncheckvalue: checkvalueeventty read foncheckvalue write foncheckvalue;
 
Public property ondataentered: notifyeventty read fondataentered write fondataentered;
 
Public property ongettext: gettexteventty read fongettext write fongettext;
 
Public property onsettext: settexteventty read fonsettext write fonsettext;
 
Public property ontextchange: textchangeeventty read fontextchange write fontextchange;
 

Generated by PasDoc 0.16.0.