Pregunta

Lokk at this code;

SplitLayoutPanel splitLayoutPanel=new SplitLayoutPanel();
splitLayoutPanel.addWest(new Label("west"), 200);
splitLayoutPanel.add(new Label("center"));

then

Label myWestLb= (Label)splitLayoutPanel.getWidget(0); //this code is ok, no problem

Label myCentralLb= (Label)splitLayoutPanel.getWidget(1); //this code got error

Does anyone know how to get the Widget that was added into the center of SplitLayoutPanel?

¿Fue útil?
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top