BestSolution.at public p2 repository
XGridColumn
at.bestsolution.framework.grid

Interface XGridColumn<R,C>

  • Type Parameters:
    R - the row type
    C - the column type
    All Known Implementing Classes:
    SWTCheckedGridColumn, SWTGridColumn


    public interface XGridColumn<R,C>
    Column of a grid
    Since:
    1.0
    • Method Detail

      • labelProperty

        @NonNull Property<java.lang.String> labelProperty()
        The label property
      • notPresentableValuePresentationProperty

        @NonNull Property<java.lang.String> notPresentableValuePresentationProperty()
        presentation of not presentable values.

        this may happen if values are not resolvable or cannot be applied to column text functions

        The default value is #N/A

      • iconProperty

        @NonNull Property<java.net.URI> iconProperty()
        The icon to display
      • autoWidthProperty

        @NonNull Property<java.lang.Boolean> autoWidthProperty()
        Calculate the width from the content

        Default is Boolean.FALSE

      • cellValueFunctionProperty

        @NonNull Property<java.util.function.Function<R,C>> cellValueFunctionProperty()
        The provider of the cell value
      • textFunctionProperty

        @NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> textFunctionProperty()
        The text provider who converts the cell value to a rendered text

        Default provider creates a Object.toString() representation of the value

        if the cell value is not resolvable (e.g. invalid format configuration), the value of notPresentableValuePresentationProperty() will be provided

      • iconFunctionProperty

        @NonNull Property<CellDataFunction<R,C,java.net.URI>> iconFunctionProperty()
        The icon provider who converts the cell value to a rendered icon

        Default provider returns null for the icon uri

      • autoFilterMatcherFunctionProperty

        @NonNull Property<CellValueMatcherFunction<R,C,java.lang.Object>> autoFilterMatcherFunctionProperty()
        The auto filter matcher used to match elements

        Default matcher use Object.equals(Object) of the cell value

      • autoFilterDataSupplierProperty

        @NonNull Property<java.util.function.Supplier<java.util.List<AutoFilterEntry<R,C,java.lang.Object>>>> autoFilterDataSupplierProperty()
        Provides predefined filter values

        Default supplier provides an empty list

      • autoFilterTextFunctionProperty

        @NonNull Property<CellDataFunction<R,C,java.lang.CharSequence>> autoFilterTextFunctionProperty()
        Converts cell values for presentation in the autofilter.

        Property value is initially null

        If property value is null the textFunctionProperty() is used.

      • indexProperty

        @NonNull Property<java.lang.Integer> indexProperty()
        Property for the column index
      • metaDataFunctionProperty

        @NonNull Property<CellMetaDataFunction<R,C>> metaDataFunctionProperty()
        Function consulted to retrieve cell meta data

        Property value is initialized with a default function who returns no meta data

      • requestUpdate

        void requestUpdate()
        request to update column cells
      • requestUpdate

        void requestUpdate(R element)
        request to update the cell for a given element
        Parameters:
        element - the element to update
      • dispose

        void dispose()
        dispose column
      • getExportValue

        java.lang.Object getExportValue(R element)
        get export value for the given element using exportValueFunctionProperty()
        Parameters:
        element - the element
        Returns:
        the export value