如何获得SplitLayoutPanel的Central Widget?

时间:2013-10-10 04:16:12

标签: gwt gwtp

看看这段代码;

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

然后

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

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

有谁知道如何获取添加到SplitLayoutPanel中心的Widget?

1 个答案:

答案 0 :(得分:1)