FdcBadgeColumn<T> class
Grid column that renders field values as compact badge labels.
Badge appearance can be derived from the cell value while the column keeps normal field binding, sorting, and filtering behavior.
- Inheritance
-
- Object
- FdcGridColumn<
T> - FdcBadgeColumn
Constructors
-
FdcBadgeColumn({required String fieldName, String? id, String? groupId, String? label, String? hint, bool visible = true, bool exportable = true, bool enabled = true, bool readOnly = true, 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, FdcColumnValueChanged<T> ? onValueChanged, FdcGridCellStyle? cellStyle, FdcGridColumnPin pin = FdcGridColumnPin.none, FdcColumnSummary summary = const FdcColumnSummary(), List<FdcOption< options = const [], String? badgeText, Color? badgeColor, FdcBadgeTextBuilder<T> >T> ? badgeTextBuilder, FdcBadgeColorBuilder<T> ? badgeColorBuilder, TextStyle? badgeTextStyle}) -
Creates a FdcBadgeColumn.
const
Properties
- allowResize → bool
-
Whether allow resize.
finalinherited
- allowSort → bool
-
Whether allow sort.
finalinherited
- autoSizeMode → FdcGridColumnAutoSizeMode
-
Automatic width behavior used when the grid viewport changes size.
finalinherited
- badgeColor → Color?
-
Static badge color used when badgeColorBuilder is not provided.
final
-
badgeColorBuilder
→ FdcBadgeColorBuilder<
T> ? -
Optional callback that derives badge color from the cell value.
final
- badgeColorBuilderSignatureToken → Object?
-
Internal identity token for badge color builder callbacks.
no setter
- badgeText → String?
-
Static badge text used when badgeTextBuilder is not provided.
final
-
badgeTextBuilder
→ FdcBadgeTextBuilder<
T> ? -
Optional callback that derives badge text from the cell value.
final
- badgeTextBuilderSignatureToken → Object?
-
Internal identity token for badge text builder callbacks.
no setter
- badgeTextStyle → TextStyle?
-
Optional text style applied to badge labels.
final
- cellStyle → FdcGridCellStyle?
-
Optional visual overrides applied to body cells in this column.
finalinherited
- dataType → FdcDataType
-
Dataset value type represented by this column.
no setteroverride
- effectiveEditor → FdcEditorType
-
Built-in editor mode used when this column enters edit state.
no setteroverride
- enabled → bool
-
Enables grid-managed filtering for this column.
finalinherited
- exportable → bool
-
Whether this field-bound column participates in grid-driven exports.
finalinherited
- fieldName → String
-
Dataset field name associated with this object.
finalinherited
- filterConfig → FdcColumnFilterConfig?
-
Optional per-column header filter configuration.
finalinherited
- filterEnabled → bool
-
Whether grid-managed filtering is enabled for this column.
no setterinherited
- focusOrder → int?
-
Optional explicit keyboard focus order among focusable grid columns.
finalinherited
- groupId → String?
-
Optional id of the visual column group this column belongs to.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String?
-
Optional tooltip or contextual hint associated with this column.
finalinherited
- horizontalAlignment → FdcGridHorizontalAlignment?
-
Optional horizontal alignment for the entire column.
finalinherited
- id → String?
-
Stable developer-defined column identity.
finalinherited
- isDataBound → bool
-
Whether this column is backed by a dataset field.
no setterinherited
- isEffectivelyReadOnly → bool
-
True when grid editing is disabled by configuration or column semantics.
no setterinherited
- isInherentlyReadOnly → bool
-
True when the column type itself cannot support grid editing.
no setteroverride
- label → String?
-
Display label shown to the user.
finalinherited
- lookupIcon → IconData
-
Icon used by the focused-cell lookup button.
finalinherited
- lookupShortcut → FdcKeyboardShortcut?
-
Keyboard shortcut that invokes onLookup for the focused cell.
finalinherited
- maxWidth → double
-
Maximum width allowed during layout and resize; zero means no explicit maximum.
finalinherited
-
Optional body-cell context menu override for this column.
finalinherited
- minWidth → double
-
Minimum width allowed during layout and interactive resize.
finalinherited
-
onLookup
→ FdcGridLookup<
T> ? -
Optional asynchronous lookup invoked by the focused-cell lookup button.
finalinherited
-
onValueChanged
→ FdcColumnValueChanged<
T> ? -
Optional column-level notification invoked after a value was successfully
written for this column.
finalinherited
-
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.
finalinherited
-
options
→ List<
FdcOption< T> > -
Options used by this configuration.
final
- pin → FdcGridColumnPin
-
Initial horizontal pinning mode for this column.
finalinherited
- readOnly → bool
-
Prevents editing through this column while keeping the field visible.
finalinherited
- 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.
finalinherited
- summary → FdcColumnSummary
-
Per-column summary row behavior and style.
finalinherited
- tabStop → bool
-
Whether Tab navigation may stop on this column.
finalinherited
- visible → bool
-
Whether the column participates in the current grid layout.
finalinherited
- width → double?
-
Optional initial column width; grid defaults are used when omitted.
finalinherited
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.
inherited
-
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.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateBinding(
FdcDataSet dataSet) → void - Validates this column's dataset field binding for the grid runtime.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited