Class TFireGridTableView

Unit

Declaration

type TFireGridTableView = class(TFireGridViewBase)

Description

No description available, ancestor TFireGridViewBase description follows

Hierarchy

Overview

Nested Classes and Records

Protected ColumnLayoutItem = record

Nested Types

Public TFireGridColumnSet = TDictionary<TFireGridTableColumn, Integer>;

Fields

Protected FColumnVisualIndexies: TFireGridColumns;
Protected FVisibleColumnCount: Integer;
Protected FChangedColumnVisualIndex: Integer;

Methods

Public function AddColumn(const modelColumnName: String; const caption: String = ''): TFireGridTableColumn; overload;
Public function AddColumn(modelColumn: Integer; const caption: String = ''): TFireGridTableColumn; overload;
Public procedure EditorRepositoryChanged(Repository: TFireGridEditorRepositoryAbstract); override;
Public procedure ColumnsChanged; override;
Public procedure TextAlignmentChanged(ColumnBase: TFireGridColumnBase); override;
Public procedure FilterChanged; override;
Public function CreateNativeDragDropObject(const Pos: TPoint): TFireNativeDragObject; override;
Public function IsLayoutLoading: Boolean;
Public procedure NavigatePageUp(Modifiers: TShiftState = []); virtual;
Public procedure NavigatePageDown(Modifiers: TShiftState = []); virtual;
Public procedure NavigateUp(Modifiers: TShiftState = []); virtual;
Public procedure NavigateDown(Modifiers: TShiftState = []); virtual;
Public procedure NavigateLeft(Modifiers: TShiftState = []); virtual;
Public procedure NavigateRight(Modifiers: TShiftState = []); virtual;
Public procedure NavigateTab(Modifiers: TShiftState = []); virtual;
Public procedure NavigateBacktab(Modifiers: TShiftState = []); virtual;
Public function GetFirstColumn: TFireGridTableColumn; virtual;
Public function GetLastColumn: TFireGridTableColumn; virtual;
Public function GetNextColumn(const Anchor: TFireGridTableColumn): TFireGridTableColumn; virtual;
Public function GetPrevColumn(const Anchor: TFireGridTableColumn): TFireGridTableColumn; virtual;
Public procedure SelectRow(RowIndex: Integer; const Operation: TFireGridSelectionOperation = [sopSelect]);
Public procedure SelectRowRange(FirstRowIndex: Integer; LastRowIndex: Integer; const Operation: TFireGridSelectionOperation = [sopSelect]);
Public procedure SelectRange(FirstRowIndex: Integer; LastRowIndex: Integer; FirstColumnIndex: Integer; LastColumnIndex: Integer; const Operation: TFireGridSelectionOperation = [sopSelect]);
Public procedure ScrollToRow(Row: PFireGridRow; TopPosition: Boolean = True);
Public procedure ScrollToIndex(const index: TModelIndex; topPosition: Boolean = true);
Public function IsRowShowing(Row: PFireGridRow): Boolean;
Public procedure SelectAll;
Public procedure DeselectAll;
Public function GetSelection: TFireGridSelection;
Public procedure ShowSummaryContextMenu(const Pos: TPoint);
Public constructor CreateInstance(Grid: TFireCustomDataGrid); override;
Public destructor Destroy; override;
Public function IsShowingOnView(Column: TFireGridTableColumnBase): Boolean;
Public function IsCellFocused(RowIndex: Integer; ColumnIndex: Integer): Boolean;
Protected procedure Initialize; override;
Protected procedure Finalize; override;
Protected function GetColumnGroupIndex(const Column: TFireGridColumnBase): Integer; override;
Protected procedure SetColumnGroupIndex(Column: TFireGridColumnBase; GroupIndex: Integer; caseSensitivity: Boolean; localeAware: Boolean); override;
Protected procedure SetColumnWidth(Column: TFireGridTableColumnBase; const NewWidth: Single);
Protected function CreateEditorRepository(const Column: TFireGridTableColumn): TFireGridEditorRepositoryAbstract;
Protected function GetVisualIndex(const ColumnBase: TFireGridTableColumnBase): Integer; virtual;
Protected procedure SetVisualIndex(const TableColumn: TFireGridTableColumnBase; VisualIndex: Integer); virtual;
Protected function GetColumnRowSpan(const Column: TFireGridTableColumn): Integer; virtual;
Protected procedure SetColumnRowSpan(const Column: TFireGridTableColumn; RowSpan: Integer); virtual;
Protected function GetColumnRowIndex(const Column: TFireGridTableColumn): Integer; virtual;
Protected function GetPrevious(const TableColumn: TFireGridTableColumnBase): TFireGridTableColumnBase;
Protected function GetNext(const TableColumn: TFireGridTableColumnBase): TFireGridTableColumnBase;
Protected function GetPreviousResizeColumn(const Column: TFireGridTableColumnBase): TFireGridTableColumnBase; virtual;
Protected function GetNextResizeColumn(const Column: TFireGridTableColumnBase): TFireGridTableColumnBase; virtual;
Protected function IsVerticalResizable(const ColumnBase: TFireGridTableColumnBase): Boolean; virtual;
Protected function IsHorizontalResizable(const ColumnBase: TFireGridTableColumnBase): Boolean; virtual;
Protected function GetColumnFixedKind(const columnBase: TFireGridTableColumnBase): TFireGridColumnFixedKind; virtual;
Protected procedure SetColumnFixedKind(const ColumnBase: TFireGridTableColumnBase; Kind: TFireGridColumnFixedKind); virtual;
Protected procedure GetColumnLine(const Column: TFireGridColumnBase; var RetVal: TFireGridColumns); virtual;
Protected function GetMaximumVisualIndex(const Anchor: TFireGridTableColumnBase): Integer; virtual;
Protected procedure ColumnWidthChanged(const Column: TFireGridColumnBase); override;
Protected function GetColumnViewWidth(const Column: TFireGridTableColumnBase): Integer; virtual;
Protected function CalculateMinWidth(const ColumnBase: TFireGridColumnBase): Single; virtual;
Protected function CalculateMaxWidth(const ColumnBase: TFireGridColumnBase): Single; virtual;
Protected procedure SetColumnVisible(ColumnBase: TFireGridColumnBase; Visible: Boolean); override;
Protected function CreateOptions: TFireGridViewOptions; override;
Protected procedure UpdateViewFixedMask; virtual;
Protected procedure UpdateViewFixedMaskEx(LeftIndent: Integer; RightIndent: Integer);
Protected function GetQuickButtonIndent: Integer; virtual;
Protected procedure GetFixedColumns(var Left: TFireGridTableColumnBase; var Right: TFireGridTableColumnBase); virtual;
Protected function CheckRemove(const ColumnBase: TFireGridColumnBase): Boolean; override;
Protected function CheckMove(const ColumnBase: TFireGridColumnBase): Boolean; override;
Protected function CheckHorSizing(const ColumnBase: TFireGridColumnBase): Boolean; override;
Protected function CheckGrouping(const ColumnBase: TFireGridColumnBase): Boolean; override;
Protected function GetColumnHeight(const ColumnBase: TFireGridColumnBase): Integer; virtual;
Protected function ActualWidth: Integer;
Protected procedure ResetModelHeight(); override;
Protected procedure CalculateScrollViewHeight;
Protected function GetModelHeight: Integer;
Protected function GetRowLeftIndent(gridRow: PFireGridRow): Integer;
Protected function GetColumnHeaderTop: Integer;
Protected function GetColumnHeaderWidth: Integer;
Protected function GetColumnHeaderHeight: Integer;
Protected procedure UpdateRowsOld(ForceUpdate: Boolean = False); override;
Protected procedure CreateSummaryActions(SummaryActions: TDictionary<TFireGridSummaryType, TFireAction>; Cell: TFireGridTableSummaryCellGraphic);
Protected procedure SelectColumnRange(FirstRow: PFireGridRow; LastRow: PFireGridRow; const Columns: TList<TFireGridTableColumn>; Operation: TFireGridSelectionOperation);
Protected function RowsLayoutEngine: TFireGridVirtualRowsLayout;
Protected function GetComponentName: String; override;
Protected function CreateColumn(const ModelColumn: Integer; const Caption: String): TFireGridColumnBase; override;
Protected function CreateLayout: TFireGridViewGraphic; override;
Protected function StretchColumns(const cols: TFireGridColumns; visualIndex: Integer; Width: Integer): Boolean;
Protected function HasGroupingIndent(const Column: TFireGridTableColumnBase): Boolean; virtual;
Protected function GetColumnLineCount(): Integer; virtual;
Protected function GetAutoHeightRowCount(var rowCount: Integer): Boolean;
Protected procedure CalculateGridRowAutoHeight(GridRow: PFireGridRow; Heights: PAutoHeightData);
Protected procedure UpdateAutoHeight;
Protected procedure EditorChanging(const column: TFireGridTableColumn; reset: Boolean);
Protected function BuildColumnFilters: Boolean; override;
Protected procedure DestroyColumnFilters; override;
Protected procedure ShowRowOnScreen(OldRowIndex: Integer; NewRowIndex: Integer); override;
Protected procedure ShowColumnOnScreen(OldColumnIndex: Integer; ColumnIndex: Integer); override;
Protected procedure UpdateFocusedGP; override;
Protected function SaveLayoutToXML(Node: IXMLNode): Boolean; override;
Protected function LoadLayoutFromXML(Node: IXMLNode): Boolean; override;
Protected function LoadColumnBaseLayout(Column: TFireGridTableColumnBase; Node: IXMLNode): Boolean;
Protected function SaveColumnBaseLayout(const Column: TFireGridTableColumnBase; Node: IXMLNode): Boolean;
Protected function SaveTableColumnLayout(const Column: TFireGridTableColumn; Node: IXMLNode): Boolean; virtual;
Protected function LoadTableColumnLayout(Column: TFireGridTableColumn; Node: IXMLNode): Boolean; virtual;

Description

Nested Types

Public TFireGridColumnSet = TDictionary<TFireGridTableColumn, Integer>;
 

Fields

Protected FColumnVisualIndexies: TFireGridColumns;
 
Protected FVisibleColumnCount: Integer;
 
Protected FChangedColumnVisualIndex: Integer;
 

Methods

Public function AddColumn(const modelColumnName: String; const caption: String = ''): TFireGridTableColumn; overload;
 
Public function AddColumn(modelColumn: Integer; const caption: String = ''): TFireGridTableColumn; overload;
 
Public procedure EditorRepositoryChanged(Repository: TFireGridEditorRepositoryAbstract); override;
 
Public procedure ColumnsChanged; override;
 
Public procedure TextAlignmentChanged(ColumnBase: TFireGridColumnBase); override;
 
Public procedure FilterChanged; override;
 
Public function CreateNativeDragDropObject(const Pos: TPoint): TFireNativeDragObject; override;
 
Public function IsLayoutLoading: Boolean;
 
Public procedure NavigatePageUp(Modifiers: TShiftState = []); virtual;
 
Public procedure NavigatePageDown(Modifiers: TShiftState = []); virtual;
 
Public procedure NavigateUp(Modifiers: TShiftState = []); virtual;
 
Public procedure NavigateDown(Modifiers: TShiftState = []); virtual;
 
Public procedure NavigateLeft(Modifiers: TShiftState = []); virtual;
 
Public procedure NavigateRight(Modifiers: TShiftState = []); virtual;
 
Public procedure NavigateTab(Modifiers: TShiftState = []); virtual;
 
Public procedure NavigateBacktab(Modifiers: TShiftState = []); virtual;
 
Public function GetFirstColumn: TFireGridTableColumn; virtual;
 
Public function GetLastColumn: TFireGridTableColumn; virtual;
 
Public function GetNextColumn(const Anchor: TFireGridTableColumn): TFireGridTableColumn; virtual;
 
Public function GetPrevColumn(const Anchor: TFireGridTableColumn): TFireGridTableColumn; virtual;
 
Public procedure SelectRow(RowIndex: Integer; const Operation: TFireGridSelectionOperation = [sopSelect]);
 
Public procedure SelectRowRange(FirstRowIndex: Integer; LastRowIndex: Integer; const Operation: TFireGridSelectionOperation = [sopSelect]);
 
Public procedure SelectRange(FirstRowIndex: Integer; LastRowIndex: Integer; FirstColumnIndex: Integer; LastColumnIndex: Integer; const Operation: TFireGridSelectionOperation = [sopSelect]);
 
Public procedure ScrollToRow(Row: PFireGridRow; TopPosition: Boolean = True);
 
Public procedure ScrollToIndex(const index: TModelIndex; topPosition: Boolean = true);
 
Public function IsRowShowing(Row: PFireGridRow): Boolean;
 
Public procedure SelectAll;
 
Public procedure DeselectAll;
 
Public function GetSelection: TFireGridSelection;
 
Public procedure ShowSummaryContextMenu(const Pos: TPoint);
 
Public constructor CreateInstance(Grid: TFireCustomDataGrid); override;
 
Public destructor Destroy; override;
 
Public function IsShowingOnView(Column: TFireGridTableColumnBase): Boolean;
 
Public function IsCellFocused(RowIndex: Integer; ColumnIndex: Integer): Boolean;
 
Protected procedure Initialize; override;
 
Protected procedure Finalize; override;
 
Protected function GetColumnGroupIndex(const Column: TFireGridColumnBase): Integer; override;
 
Protected procedure SetColumnGroupIndex(Column: TFireGridColumnBase; GroupIndex: Integer; caseSensitivity: Boolean; localeAware: Boolean); override;
 
Protected procedure SetColumnWidth(Column: TFireGridTableColumnBase; const NewWidth: Single);
 
Protected function CreateEditorRepository(const Column: TFireGridTableColumn): TFireGridEditorRepositoryAbstract;
 
Protected function GetVisualIndex(const ColumnBase: TFireGridTableColumnBase): Integer; virtual;
 
Protected procedure SetVisualIndex(const TableColumn: TFireGridTableColumnBase; VisualIndex: Integer); virtual;
 
Protected function GetColumnRowSpan(const Column: TFireGridTableColumn): Integer; virtual;
 
Protected procedure SetColumnRowSpan(const Column: TFireGridTableColumn; RowSpan: Integer); virtual;
 
Protected function GetColumnRowIndex(const Column: TFireGridTableColumn): Integer; virtual;
 
Protected function GetPrevious(const TableColumn: TFireGridTableColumnBase): TFireGridTableColumnBase;
 
Protected function GetNext(const TableColumn: TFireGridTableColumnBase): TFireGridTableColumnBase;
 
Protected function GetPreviousResizeColumn(const Column: TFireGridTableColumnBase): TFireGridTableColumnBase; virtual;
 
Protected function GetNextResizeColumn(const Column: TFireGridTableColumnBase): TFireGridTableColumnBase; virtual;
 
Protected function IsVerticalResizable(const ColumnBase: TFireGridTableColumnBase): Boolean; virtual;
 
Protected function IsHorizontalResizable(const ColumnBase: TFireGridTableColumnBase): Boolean; virtual;
 
Protected function GetColumnFixedKind(const columnBase: TFireGridTableColumnBase): TFireGridColumnFixedKind; virtual;
 
Protected procedure SetColumnFixedKind(const ColumnBase: TFireGridTableColumnBase; Kind: TFireGridColumnFixedKind); virtual;
 
Protected procedure GetColumnLine(const Column: TFireGridColumnBase; var RetVal: TFireGridColumns); virtual;
 
Protected function GetMaximumVisualIndex(const Anchor: TFireGridTableColumnBase): Integer; virtual;
 
Protected procedure ColumnWidthChanged(const Column: TFireGridColumnBase); override;
 
Protected function GetColumnViewWidth(const Column: TFireGridTableColumnBase): Integer; virtual;
 
Protected function CalculateMinWidth(const ColumnBase: TFireGridColumnBase): Single; virtual;
 
Protected function CalculateMaxWidth(const ColumnBase: TFireGridColumnBase): Single; virtual;
 
Protected procedure SetColumnVisible(ColumnBase: TFireGridColumnBase; Visible: Boolean); override;
 
Protected function CreateOptions: TFireGridViewOptions; override;
 
Protected procedure UpdateViewFixedMask; virtual;
 
Protected procedure UpdateViewFixedMaskEx(LeftIndent: Integer; RightIndent: Integer);
 
Protected function GetQuickButtonIndent: Integer; virtual;
 
Protected procedure GetFixedColumns(var Left: TFireGridTableColumnBase; var Right: TFireGridTableColumnBase); virtual;
 
Protected function CheckRemove(const ColumnBase: TFireGridColumnBase): Boolean; override;
 
Protected function CheckMove(const ColumnBase: TFireGridColumnBase): Boolean; override;
 
Protected function CheckHorSizing(const ColumnBase: TFireGridColumnBase): Boolean; override;
 
Protected function CheckGrouping(const ColumnBase: TFireGridColumnBase): Boolean; override;
 
Protected function GetColumnHeight(const ColumnBase: TFireGridColumnBase): Integer; virtual;
 
Protected function ActualWidth: Integer;
 
Protected procedure ResetModelHeight(); override;
 
Protected procedure CalculateScrollViewHeight;
 
Protected function GetModelHeight: Integer;
 
Protected function GetRowLeftIndent(gridRow: PFireGridRow): Integer;
 
Protected function GetColumnHeaderTop: Integer;
 
Protected function GetColumnHeaderWidth: Integer;
 
Protected function GetColumnHeaderHeight: Integer;
 
Protected procedure UpdateRowsOld(ForceUpdate: Boolean = False); override;
 
Protected procedure CreateSummaryActions(SummaryActions: TDictionary<TFireGridSummaryType, TFireAction>; Cell: TFireGridTableSummaryCellGraphic);
 
Protected procedure SelectColumnRange(FirstRow: PFireGridRow; LastRow: PFireGridRow; const Columns: TList<TFireGridTableColumn>; Operation: TFireGridSelectionOperation);
 
Protected function RowsLayoutEngine: TFireGridVirtualRowsLayout;
 
Protected function GetComponentName: String; override;
 
Protected function CreateColumn(const ModelColumn: Integer; const Caption: String): TFireGridColumnBase; override;
 
Protected function CreateLayout: TFireGridViewGraphic; override;
 
Protected function StretchColumns(const cols: TFireGridColumns; visualIndex: Integer; Width: Integer): Boolean;
 
Protected function HasGroupingIndent(const Column: TFireGridTableColumnBase): Boolean; virtual;
 
Protected function GetColumnLineCount(): Integer; virtual;
 
Protected function GetAutoHeightRowCount(var rowCount: Integer): Boolean;
 
Protected procedure CalculateGridRowAutoHeight(GridRow: PFireGridRow; Heights: PAutoHeightData);
 
Protected procedure UpdateAutoHeight;
 
Protected procedure EditorChanging(const column: TFireGridTableColumn; reset: Boolean);
 
Protected function BuildColumnFilters: Boolean; override;
 
Protected procedure DestroyColumnFilters; override;
 
Protected procedure ShowRowOnScreen(OldRowIndex: Integer; NewRowIndex: Integer); override;
 
Protected procedure ShowColumnOnScreen(OldColumnIndex: Integer; ColumnIndex: Integer); override;
 
Protected procedure UpdateFocusedGP; override;
 
Protected function SaveLayoutToXML(Node: IXMLNode): Boolean; override;
 
Protected function LoadLayoutFromXML(Node: IXMLNode): Boolean; override;
 
Protected function LoadColumnBaseLayout(Column: TFireGridTableColumnBase; Node: IXMLNode): Boolean;
 
Protected function SaveColumnBaseLayout(const Column: TFireGridTableColumnBase; Node: IXMLNode): Boolean;
 
Protected function SaveTableColumnLayout(const Column: TFireGridTableColumn; Node: IXMLNode): Boolean; virtual;
 
Protected function LoadTableColumnLayout(Column: TFireGridTableColumn; Node: IXMLNode): Boolean; virtual;
 

Generated by PasDoc 0.15.0.