/**
     * Create the object.
     *
     * @exception IOException if something fails
     */
    public void create() throws IOException {
      RADMenuItemComponent newMenuComp;

      if ((RADMenuItemComponent.recognizeType(item) & MASK_CONTAINER) == 0) {
        newMenuComp = new RADMenuItemComponent();
      } else {
        newMenuComp = new RADMenuComponent();
      }

      newMenuComp.initialize(RADMenuComponent.this.getFormManager());
      newMenuComp.setComponent(item);
      if (newMenuComp instanceof RADMenuComponent) {
        ((RADMenuComponent) newMenuComp).initSubComponents(new RADComponent[0]);
      }
      RADMenuComponent.this
          .getFormManager()
          .addNonVisualComponent(newMenuComp, RADMenuComponent.this);

      // for some components, we initialize their properties with some non-default values
      // e.g. a label on buttons, checkboxes
      FormEditor.defaultMenuInit(newMenuComp);
      addVisualMenu(newMenuComp);

      RADMenuComponent.this.getFormManager().selectComponent(newMenuComp, false);
    }
 /**
  * Display name for the creation action. This should be presented as an item in a menu.
  *
  * @return the name of the action
  */
 public String getName() {
   String s = item.getName();
   if (FormEditor.getFormSettings().getShortBeanNames()) {
     int index = s.lastIndexOf('.');
     if (index != -1) return s.substring(index + 1);
   }
   return s;
 }
 /**
  * Display name for the creation action. This should be presented as an item in a menu.
  *
  * @return the name of the action
  */
 public String getName() {
   return FormEditor.getFormBundle().getString("CTL_separator");
 }