我试图添加到我的SelectionStack几个项目:
for(ListData datasListe : list){
/**
*
* Stack
*/
SectionStackSection sctnstcksctnTitelSo = new SectionStackSection(
"Täter : "+datasListe.getTaeter());
sctnstcksctnTitelSo.setExpanded(true);
sctnstcksctnTitelSo.setCanCollapse(true);
/**
* inStack
*
*/
WidgetCanvas widgetCanvas = new WidgetCanvas(new TexteComp());
widgetCanvas.setPadding(10);
sctnstcksctnTitelSo.addItem(widgetCanvas);
// widgetCanvas.moveTo(45, ypos);
sectionStack.addSection(sctnstcksctnTitelSo);
ypos = ypos + 165;
}
TextComp是一个Widget!
我真的不知道为什么我会收到错误:
java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list