Interface DerivedColumn<C extends DerivedColumn<C>>

All Superinterfaces:
Column<C>, Comparable<C>, Component<C>, Copyable<C>, CustomCssComponent<C>, Serializable
All Known Implementing Classes:
DefaultDerivedColumn

public interface DerivedColumn<C extends DerivedColumn<C>> extends Column<C>
Represents the metadata for a ColumnTypes.DERIVED column component. These columns derive their values from that of other fields on the entity. The default column type is ColumnTypes.STRING. The values will only be derived if undefined—not if the column has a value including null unless deriveIfNull() is true. This component does not perform any transformations, unlike DerivedField.
Author:
Nathan Moore (nathandmoore)
  • Method Details

    • source

      default C source(String source)
      The source field on the entity. Use $parent to reference a field on the parent entity.
    • columnType

      default C columnType(String type)
      Set the type of column to render such as STRING or INTEGER.
    • deriveIfNull

      default C deriveIfNull()
      If set to true, then null values are treated the same as undefined and the display value will be derived.
    • deriveIfNull

      default C deriveIfNull(boolean deriveIfNull)
    • removeSource

      default C removeSource()
    • removeColumnType

      default C removeColumnType()
    • removeDeriveIfNull

      default C removeDeriveIfNull()