Skip to main content



      Home
Home » Eclipse Projects » JFace » TableWrapLayout: position element at the beginning of a new row?
TableWrapLayout: position element at the beginning of a new row? [message #21554] Tue, 14 July 2009 16:55
Eclipse UserFriend
Hello!

Currently i'm creating a GUI with eclipse forms using the TableWrapLayout
with layout.numColumns = 4.

Is it possible to position an element at the beginnin of a new row even if
there would be enough space in the current row?

I want to do something like this in a more elegant and dynamic way:

toolkit.createLabel(parent, "#1");
layoutData = new TableWrapData();
label.setLayoutData(layoutData);

toolkit.createLabel(parent, "#1");
layoutData = new TableWrapData();
//This element is in column 2, so it must have the length of 3 columns to
let the next element begin a new row.
layoutData.colspan = 3;
label.setLayoutData(layoutData);

toolkit.createLabel(parent, "#1");
layoutData = new TableWrapData();
label.setLayoutData(layoutData);

Another similar question: is it possible to skip a "cell" without using
colspan or adding an unvisible lable?

Thanks,
Fabian
Previous Topic:[databinding] unable to dispose observable except from DataBindingContext validation realm
Next Topic:subclassing AbstractInformationControlManager
Goto Forum:
  


Current Time: Wed Jul 02 20:39:05 EDT 2025

Powered by FUDForum. Page generated in 0.04566 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top