public static GridLabelFormat fromConfig(final GridParam param) {
        if (param.labelFormat != null) {
            return new GridLabelFormat.Simple(param.labelFormat);
        } else if (param.valueFormat != null) {
            return new GridLabelFormat.Detailed(
                    param.valueFormat, param.unitFormat,
                    param.formatDecimalSeparator, param.formatGroupingSeparator);
        }
        return null;
    }
public static GridLabelFormat fromConfig ( final GridParam param ) { if ( param . labelFormat != null ) { return new GridLabelFormat . Simple ( param . labelFormat ) ; } else if ( param . valueFormat != null ) { return new GridLabelFormat . Detailed ( param . valueFormat , param . unitFormat , param . formatDecimalSeparator , param . formatGroupingSeparator ) ; } return null ; }
Create an instance from the given config.

@param param Grid param from the request.