Exemple #1
0
 /**
  * Add the parent group's menu items
  *
  * @param items menu items
  * @return the items
  */
 protected List addGroupMenuItems(List items) {
   if (displayGroup != null) {
     items.add(GuiUtils.MENU_SEPARATOR);
     items.add(
         GuiUtils.makeMenu(
             "Parent " + displayGroup.toString(),
             displayGroup.getPopupMenuItems(new ArrayList())));
   }
   return items;
 }
Exemple #2
0
 /**
  * Remove me
  *
  * @return was removed
  */
 public boolean removeDisplayComponent() {
   if (GuiUtils.askYesNo("Remove Display", "Are you sure you want to remove: " + toString())) {
     DisplayGroup displayGroup = getDisplayGroup();
     if (displayGroup != null) {
       displayGroup.removeDisplayComponent(this);
     }
     getDisplayControl().removeDisplayComponent(this);
     return true;
   } else {
     return false;
   }
 }