Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Make Datagrid configuration immutable #45

Merged
merged 1 commit into from
Feb 6, 2016
Merged

Make Datagrid configuration immutable #45

merged 1 commit into from
Feb 6, 2016

Conversation

sstok
Copy link
Contributor

@sstok sstok commented Feb 6, 2016

Q A
Bug Fix? no
New Feature? no
BC Breaks? ye
Deprecations? no
Fixed Tickets

This is the last refactoring pull-request (for now), the datagrid system is
trimmed down immensely to make integration easier, execution faster.
And code complexity lower.

In the end the datagrid has a clear focus on what it does, and can be used for.
Input data processing is no longer a part of the Datagrid, but should be done before
the Datagrid is populated with data (which will be possible with integration adapters).

With this pr the following changed:

  • The (default) Datagrid no longer allows to change the columns (you can only set them in the constructor),
    adding/removing or replacing columns on a datagrid is no longer possible.
  • Setting data is only possible once now, calling setData twice will result in
    an exception.
  • The event-dispatcher for updating the DatagridView is replaced with a
    single view-builder callable (use decoration to chain them).

UPGRADE instructions needs to be updated before this pr can be merged 馃槆

To reduce the size the Datagrid interface, and keep things simple,
changing the columns on a datagrid is no longer possible and
the event-dispatcher for updating a DatagridView is replaced by
a single viewBuilder callable.

Setting the data on a datagrid is now possible only once!
As there should not be a need to change this after the view is created.
@sstok sstok added the BC Break label Feb 6, 2016
@sstok sstok merged commit c051ca5 into rollerworks-graveyard:master Feb 6, 2016
sstok added a commit that referenced this pull request Feb 6, 2016
This PR was merged into the master branch.

Discussion
----------

|Q            |A  |
|---          |---|
|Bug Fix?     |no |
|New Feature? |no |
|BC Breaks?   |ye |
|Deprecations?|no |
|Fixed Tickets|   |

This is the last refactoring pull-request (for now), the datagrid system is
trimmed down immensely to make integration easier, execution faster.
And code complexity lower.

In the end the datagrid has a clear focus on what it does, and can be used for.
Input data processing is no longer a part of the Datagrid, but should be done before
the Datagrid is populated with data (which will be possible with integration adapters).

With this pr the following changed:

 * The (default) Datagrid no longer allows to change the columns (you can only set them in the constructor),
   adding/removing or replacing columns on a datagrid is no longer possible.

 * Setting data is only possible once now, calling `setData` twice will result in
   an exception.

 * The event-dispatcher for updating the DatagridView is replaced with a
   single view-builder callable (use decoration to chain them).

~~*UPGRADE instructions needs to be updated before this pr can be merged 馃槆*~~

Commits
-------

c051ca5 Make Datagrid configuration immutable
@sstok sstok deleted the immutable-datagrid branch February 6, 2016 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant