Skip to content
Snippets Groups Projects
Commit 1a8766bf authored by pkupczyk's avatar pkupczyk
Browse files

SP-241 / BIS-122 : Embedded grids need to persist display settings - don't...

SP-241 / BIS-122 : Embedded grids need to persist display settings - don't show the header when the text is not specified

SVN: 26409
parent d0c869bf
No related branches found
No related tags found
No related merge requests found
...@@ -77,10 +77,6 @@ public class AggregationServicePanel extends ContentPanel ...@@ -77,10 +77,6 @@ public class AggregationServicePanel extends ContentPanel
public void execute(final IDisposableComponent reportComponent) public void execute(final IDisposableComponent reportComponent)
{ {
layoutContainer.removeAll(); layoutContainer.removeAll();
if (layoutContainer.getGridHeaderText() != null)
{
layoutContainer.setHeading(layoutContainer.getGridHeaderText());
}
layoutContainer.add(reportComponent.getComponent()); layoutContainer.add(reportComponent.getComponent());
layoutContainer.layout(); layoutContainer.layout();
} }
...@@ -111,6 +107,14 @@ public class AggregationServicePanel extends ContentPanel ...@@ -111,6 +107,14 @@ public class AggregationServicePanel extends ContentPanel
gridSettingsId = viewLocator.getParameters().get(GRID_SETTINGS_ID_PARAM); gridSettingsId = viewLocator.getParameters().get(GRID_SETTINGS_ID_PARAM);
gridHeaderText = viewLocator.getParameters().get(GRID_HEADER_TEXT_PARAM); gridHeaderText = viewLocator.getParameters().get(GRID_HEADER_TEXT_PARAM);
if (getGridHeaderText() != null)
{
setHeading(getGridHeaderText());
} else
{
setHeaderVisible(false);
}
if (areRequiredParametersSpecified()) if (areRequiredParametersSpecified())
{ {
// All ivars must be initialized before the aggregation service is called // All ivars must be initialized before the aggregation service is called
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment