public NavigatorBreadcrumbs(final Mode mode) {
   initWidget(breadcrumbs);
   if (mode != null) {
     switch (mode) {
       case HEADER:
         breadcrumbs.removeStyleName(Constants.BREADCRUMB);
         breadcrumbs.setStyleName(NavigatorResources.INSTANCE.css().breadcrumb());
         break;
       case SECOND_LEVEL:
         breadcrumbs.addStyleName(NavigatorResources.INSTANCE.css().breadcrumb2ndLevel());
         break;
     }
   }
 }
  public void build(final Dropdown... headers) {
    breadcrumbs.clear();

    for (int i = 0; i < headers.length; i++) {
      final Dropdown header = headers[i];
      header.addStyleName(NavigatorResources.INSTANCE.css().breadcrumbHeader());
      if (i + 1 == headers.length) {
        header.setRightDropdown(true);
      }
      breadcrumbs.add(header);
    }
  }