Skip to content

Commit

Permalink
tracker 10451 - call isSplitTypePreventInhibited on fill context
Browse files Browse the repository at this point in the history
  • Loading branch information
dadza committed Jul 17, 2018
1 parent f80f073 commit 263d245
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 2 deletions.
Expand Up @@ -140,4 +140,11 @@ protected void finalizeElementPositions()
moveBandBottomElements();
}
}

@Override
public boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
{
//FIXME implement logic
return false;
}
}
Expand Up @@ -36,4 +36,6 @@ public interface FillContainerContext

boolean isCurrentOverflowAllowed();

boolean isSplitTypePreventInhibited(boolean isTopLevelCall);

}
Expand Up @@ -113,7 +113,7 @@ public boolean isPageBreakInhibited()
@Override
public boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
{
return parentElement.getBand().isSplitTypePreventInhibited(isTopLevelCall);
return parentElement.isSplitTypePreventInhibited(isTopLevelCall);
}

@Override
Expand Down
Expand Up @@ -612,7 +612,8 @@ protected boolean isSplitTypePreventInhibited()
return isSplitTypePreventInhibited(true);
}

protected boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
@Override
public boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
{
boolean isSplitTypePreventInhibited = false;

Expand Down
Expand Up @@ -798,4 +798,11 @@ protected void addHtmlClass(String className)
setPrintProperty(HtmlExporter.PROPERTY_HTML_CLASS, newClasses);
}

@Override
public boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
{
//FIXME implement logic
return false;
}

}
Expand Up @@ -511,6 +511,13 @@ protected int getActualContainerHeight()

return containerHeight;
}

@Override
public boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
{
//not actually called because fillContainerContext in the children is actually the band
return JRFillFrame.this.fillContainerContext.isSplitTypePreventInhibited(isTopLevelCall);
}
}

}
Expand Up @@ -1241,4 +1241,9 @@ protected String getReportName()
{
return getReport().getName();
}

protected boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
{
return fillContainerContext.isSplitTypePreventInhibited(isTopLevelCall);
}
}

0 comments on commit 263d245

Please sign in to comment.