Hi Everybody,
I repeat my post from yesterday because my messages were confusing
because I made some error in my postings - sorry :) Now the correct
post - I'll delete the originating post:
Hi all!
I've the following problem with my own Composite-Class using a
FlexTable as Widget:
--------------
@Override
public void onModuleLoad() {
DockLayoutPanel dockLayoutPanel = new
DockLayoutPanel(Unit.PX);
dockLayoutPanel.add(new DetailsWidget());
RootLayoutPanel r = RootLayoutPanel.get();
r.add(dockLayoutPanel);
}
private class DetailsWidget extends Composite {
public DetailsWidget() {
DockLayoutPanel dockLayoutPanel = new
DockLayoutPanel(Unit.PX);
initWidget(dockLayoutPanel);
dockLayoutPanel.add(new AppArea());
}
}
private class AppArea extends Composite {
public AppArea() {
FlowPanel g = new FlowPanel();
initWidget(g);
UIFlexTable outerTable = new UIFlexTable();
outerTable.setWidget(0, 0, new Label("0|0"));
outerTable.setWidget(0, 1, new Label("0|1"));
outerTable.setWidget(1, 0, new Label("1|1 --
long"));
outerTable.setColspan(1, 0, 2);
g.add(outerTable);
}
}
private class UIFlexTable extends Composite {
private FlexTable table;
public UIFlexTable() {
table = new FlexTable();
initWidget(table);
}
public void setWidget(int row, int column, Widget w)
{
table.setWidget(row, column, w);
}
public void setColspan(int row, int column, int
colspan) {
table.getFlexCellFormatter().setColSpan(row,
colspan, colspan);
}
}
--------------
I excpect a Table with two rows:
The first with two columns and the second with one column, like this:
| 0|0 | 0|1 |
| 1|0 --long |
But I get the following result:
| 0,0 | 0,1 |
| 1,0 --long | | |
So he adds an empty column to the last row. This column has the
desired
colspan=2 Attribute, when I have a look with the development plugin
from the IE8.
What do i wrong?
Regards!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.