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

improve SummaryPluginConfig #949

Closed

Conversation

FrankHossfeld
Copy link
Contributor

Add a new constructor:

  public SummaryPluginConfig(boolean removeOnEmptyData) {
    this.removeOnEmptyData = removeOnEmptyData;
  }

This new constructor will save a few lines of code. Instead of writing:

    SummaryPlugin<AngebotPositionListCompositeComponent, AngebotSummaryModel> pluginSummary = new SummaryPlugin<>();
    SummaryPluginConfig config = new SummaryPluginConfig();
    config.setRemoveOnEmptyData(true);
    pluginSummary.setConfig(config);

you can use:

    SummaryPlugin<AngebotPositionListCompositeComponent, AngebotSummaryModel> pluginSummary = new SummaryPlugin<>();
    pluginSummary.setConfig(new SummaryPluginConfig(true));

@FrankHossfeld
Copy link
Contributor Author

Closed ... already in progress.

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.

1 participant