/** * Removes the ScrollablePopupMenuItem from the item list and from the * parent. Fires the event 'itemsWereRemoved' on the parent pop up menu * * @param item * The item to remove * @param details * The details for the 'itemsWereRemoved' event */ protected void removeItem(ScrollablePopupMenuItem item, String details) { int oldSize = items.size(); items.remove(item); parent.remove(item, oldSize, items.size()); parent.fireItemsWereRemoved (new ScrollablePopupMenuEvent(parent, ScrollablePopupMenuEvent.ITEMS_REMOVED, 1, details)); }
/** * Removes the ScrollablePopupMenuItem from the item list and from the * parent. Fires the event 'itemsWereRemoved' on the parent pop up menu * * @param item * The item to remove * @param details * The details for the 'itemsWereRemoved' event */ protected void removeItem(ScrollablePopupMenuItem item, String details) { int oldSize = items.size(); items.remove(item); parent.remove(item, oldSize, items.size()); parent.fireItemsWereRemoved (new ScrollablePopupMenuEvent(parent, ScrollablePopupMenuEvent.ITEMS_REMOVED, 1, details)); }