Example usage for com.google.gwt.user.client.ui StackLayoutPanel getWidgetCount

List of usage examples for com.google.gwt.user.client.ui StackLayoutPanel getWidgetCount

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui StackLayoutPanel getWidgetCount.

Prototype

public int getWidgetCount() 

Source Link

Usage

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());
}