Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom column formatting #20

Open
mjfryc opened this issue Mar 9, 2023 · 0 comments
Open

Custom column formatting #20

mjfryc opened this issue Mar 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mjfryc
Copy link
Owner

mjfryc commented Mar 9, 2023

Currently all fields are treated as text with toString() method.
There should be possibility to assign custom column formatters.

E.g:

interface ICellFormatter<T> {
    String format(T what);
}

class DefaultFormatter implements ICellFormatter<Object> {
    
    @Override
    String format(Object what) {
        return what.toString();
    }
}
@mjfryc mjfryc self-assigned this Mar 9, 2023
@mjfryc mjfryc added the enhancement New feature or request label Mar 9, 2023
mjfryc pushed a commit that referenced this issue Apr 7, 2023
ITableSource is not backward compatible.
It provides iteration of Object cells instead of String cells.
mjfryc pushed a commit that referenced this issue Jul 26, 2023
mjfryc pushed a commit that referenced this issue Oct 10, 2023
* Column formatting by field class.
mjfryc pushed a commit that referenced this issue Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant