/** This is used when creating a new category */
    public CategoryEditor(final CategoryItem parent) {
      super.setTitle(getTitle(parent));
      this.parent = parent;

      addAttribute(Constants.INSTANCE.CategoryName(), name);

      Button ok = new Button(Constants.INSTANCE.OK());
      ok.addClickHandler(
          new ClickHandler() {
            public void onClick(ClickEvent event) {
              ok();
            }
          });
      addAttribute("", ok);
    }