FdcGridColumn<T> class abstract

Base metadata shared by every grid column type.

Implementers

Constructors

FdcGridColumn({String? id, String? groupId, required String fieldName, String? label, String? hint, bool visible = true, bool exportable = true, bool enabled = true, bool readOnly = false, int? focusOrder, bool tabStop = true, double? width, double minWidth = 0, double maxWidth = 0, FdcGridColumnAutoSizeMode autoSizeMode = FdcGridColumnAutoSizeMode.none, bool allowSort = true, FdcColumnFilterConfig? filterConfig, bool allowResize = true, FdcGridHorizontalAlignment? horizontalAlignment, bool showIndicator = true, FdcColumnValueChanging<T>? onValueChanging, FdcGridLookup<T>? onLookup, IconData lookupIcon = Icons.more_horiz, FdcKeyboardShortcut? lookupShortcut = FdcKeyboardShortcut.f4, FdcColumnValueChanged<T>? onValueChanged, FdcGridCellStyle? cellStyle, FdcGridColumnPin pin = FdcGridColumnPin.none, FdcColumnSummary summary = const FdcColumnSummary(), FdcGridMenuBuilder? menuBuilder})
Creates a FdcGridColumn.
const

Properties

allowResize bool
Whether allow resize.
final
allowSort bool
Whether allow sort.
final
autoSizeMode FdcGridColumnAutoSizeMode
Automatic width behavior used when the grid viewport changes size.
final
cellStyle FdcGridCellStyle?
Optional visual overrides applied to body cells in this column.
final
dataType FdcDataType
Dataset value type represented by this column.
no setter
effectiveEditor FdcEditorType
Built-in editor mode used when this column enters edit state.
no setter
enabled bool
Enables grid-managed filtering for this column.
final
exportable bool
Whether this field-bound column participates in grid-driven exports.
final
fieldName String
Dataset field name associated with this object.
final
filterConfig FdcColumnFilterConfig?
Optional per-column header filter configuration.
final
filterEnabled bool
Whether grid-managed filtering is enabled for this column.
no setter
focusOrder int?
Optional explicit keyboard focus order among focusable grid columns.
final
groupId String?
Optional id of the visual column group this column belongs to.
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
Optional tooltip or contextual hint associated with this column.
final
horizontalAlignment FdcGridHorizontalAlignment?
Optional horizontal alignment for the entire column.
final
id String?
Stable developer-defined column identity.
final
isDataBound bool
Whether this column is backed by a dataset field.
no setter
isEffectivelyReadOnly bool
True when grid editing is disabled by configuration or column semantics.
no setter
isInherentlyReadOnly bool
True when the column type itself cannot support grid editing.
no setter
label String?
Display label shown to the user.
final
lookupIcon IconData
Icon used by the focused-cell lookup button.
final
lookupShortcut FdcKeyboardShortcut?
Keyboard shortcut that invokes onLookup for the focused cell.
final
maxWidth double
Maximum width allowed during layout and resize; zero means no explicit maximum.
final
Optional body-cell context menu override for this column.
final
minWidth double
Minimum width allowed during layout and interactive resize.
final
onLookup FdcGridLookup<T>?
Optional asynchronous lookup invoked by the focused-cell lookup button.
final
onValueChanged FdcColumnValueChanged<T>?
Optional column-level notification invoked after a value was successfully written for this column.
final
onValueChanging FdcColumnValueChanging<T>?
Optional column-level interceptor invoked before values are written into the dataset. Useful for cell-level validation and transformations such as barcode-to-article-code lookup.
final
pin FdcGridColumnPin
Initial horizontal pinning mode for this column.
final
readOnly bool
Prevents editing through this column while keeping the field visible.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showIndicator bool
Controls whether this column renders the active-cell indicator overlay.
final
summary FdcColumnSummary
Per-column summary row behavior and style.
final
tabStop bool
Whether Tab navigation may stop on this column.
final
visible bool
Whether the column participates in the current grid layout.
final
width double?
Optional initial column width; grid defaults are used when omitted.
final

Methods

applyValueChanged({required FdcDataSet dataSet, required FdcGridRowContext row, required int rowIndex, required int? columnIndex, required String fieldName, required Object? oldValue, required Object? value}) → void
Invokes onValueChanged using this column's concrete generic value type.
applyValueChanging({required FdcDataSet dataSet, required FdcGridRowContext row, required int rowIndex, required int columnIndex, required String fieldName, required Object? oldValue, required Object? newValue}) FdcFieldValueChangeResult<T>?
Invokes onValueChanging using this column's concrete generic value type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited