Skip to content
This repository was archived by the owner on Nov 15, 2020. It is now read-only.
This repository was archived by the owner on Nov 15, 2020. It is now read-only.

TableAdapter and CollectionAdapter are now open for sublclassing #6

@wow-such-amazing

Description

@wow-such-amazing

My suggestion is to add possibility to subclass TableAdapter or CollectionAdapter in order to create our own subclasses for specific cells and models. This way we will be able to separate this logic from the controller to different class and reuse this class everywhere. Of course, we can create a factory for often used adapters and return them from it. But it seems to be clearer and easier to subclass and then use it.
To make it kind of like this:

final class LoadingCellAdapter: TableAdapter<LoadingCellModel, LoadingCell> {
    ...
}

What do you think about this idea?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions