Using createContainer() to load a existing container a row in a list - when I do this the layout is all messed up, I cant even see the components on it, I really do not want to have to define my rows programatically as it takes a long time to make them look nice, if theyre complicated it can take all day.
So how do I use an existing container (or form???) made i n the gui builder as a row?
As a test im trying:
public Container createRowContainer()
{
Container rowContainer = parentSM.createContainer(parentSM.resources, "myrow");
return rowContainer;
}
and this gets called in my list class:
protected ListCellRenderer createListRenderer() {
// MultiButton sel = createRendererMultiButton();
// MultiButton unsel = createRendererMultiButton();
Container sel = createRowContainer();
Container unsel = createRowContainer();
_("createListRenderer");
_("sel:"+sel.getUIID());
_("unsel:"+unsel.getUIID());
return new GenericListCellRenderer(sel, unsel);
}
Unfortunately it doesnt display correctly, this this actually possible? If so it would be lovely to see an example that works! Thanks!