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

Open DateFilterPopup for subclassing #100

Merged
merged 1 commit into from Jan 20, 2016
Merged

Open DateFilterPopup for subclassing #100

merged 1 commit into from Jan 20, 2016

Conversation

phauer
Copy link
Contributor

@phauer phauer commented Sep 30, 2015

Hi,
I really like your DateFilterPopup. We use it also in other cases beside the FilterTable.

However, DateFilterPopup is not opened for subclassing. It would be nice if we can hook into the building of the popup and access the components to add additional functionality.
Our concrete use cases: We like to change the value of the toField if the fromField has been changed. Therefore, we need to add a ValueChangeListener to the fromField in the subclass.

To achieve this (and similar use cases) I suppose to change the visibility of the DateFields, Buttons, the PopupButton and the method buildPopup() to protected. This way subclasses can overwrite buildPopup() and add additional logic using the components.

Best Regards
Philipp

tepi added a commit that referenced this pull request Jan 20, 2016
Open DateFilterPopup for subclassing
@tepi tepi merged commit 7f9f9e8 into tepi:master Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants