      /**
       * The constants used in this Content Widget.
       */
      public static interface CwConstants extends Constants,
          ContentWidget.CwConstants {
        String cwTabPanelDescription();

        String cwTabPanelName();

        String cwTabPanelTab0();

        String cwTabPanelTab2();

        String[] cwTabPanelTabs();
      }

      /**
       * An instance of the constants.
       */
      private CwConstants constants;

      /**
       * Initialize this example.
       */
      @Override
      public Widget onInitialize() {
        // Create a tab panel
        DecoratedTabPanel tabPanel = new DecoratedTabPanel();
        tabPanel.setWidth("400px");
        tabPanel.setAnimationEnabled(true);

        // Add a home tab
        String[] tabTitles = constants.cwTabPanelTabs();
        HTML homeText = new HTML(constants.cwTabPanelTab0());
        tabPanel.add(homeText, tabTitles[0]);

        // Add a tab with an image
        VerticalPanel vPanel = new VerticalPanel();
        vPanel.add(new Image(Showcase.images.gwtLogo()));
        tabPanel.add(vPanel, tabTitles[1]);

        // Add a tab
        HTML moreInfo = new HTML(constants.cwTabPanelTab2());
        tabPanel.add(moreInfo, tabTitles[2]);

        // Return the content
        tabPanel.selectTab(0);
        tabPanel.ensureDebugId("cwTabPanel");
        return tabPanel;
      }