List of usage examples for com.google.gwt.user.client.ui StackLayoutPanel getWidgetCount
public int getWidgetCount()
From source file:com.mashery.examples.api.client.Examples.java
License:Open Source License
private void addExample(Example example, StackLayoutPanel headerPanel) { examples.add(example);//from w w w . j a v a2 s .co m int i = headerPanel.getWidgetCount(); exampleIndex.put(example.getId(), i); headerPanel.add(example.createHeaderContent(), example.getHeaderTitle(), 32d); contentPanel.add(example.createContent()); }