TextPrint text = new TextPrint("text");
text.setAlign(SWT.RIGHT);
grid.add(SWT.RIGHT, text);
Hope this helps,
Matthew
There are a couple ways to solve this, each with their own challenges:
1) Add methods to GridPrint e.g. setAllowColumnSplit(boolean) or
setAllowColumnOverlap or something, and refactor GridPrint to break
columns across pages.
2) Add a class for specifically wrapping GridPrint e.g. BigGridPrint,
that is aware of how GridPrint lays out columns and divides them
sensibly across pages.
Solution 1 has the benefit of ensuring that a super-wide column will be
confined to one page wide instead of being split across several pages.
However it makes the GridIterator code extremely complex (it actually
completely changes the column size distribution strategy) and makes
assumptions about the surrounding document--namely, that subsequent
pages will have the exact same area in which to lay out the next
columns. Take a look at the documentation for BigPrint for an
explanation of what happens when these conditions are not satisfied.
Solution 2 is simpler and more modular but then you lose the ability to
confine any one column to a single page. So a column that would
normally have word wrap applied sensibly could suddenly be tens of pages
wide with all text on a single line.
Please note that I am in the midst of migrating the PaperClips projects
to http://www.eclipse.org/nebula/ and that there are breaking changes
happening in the transition.
Matthew