/** * 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)); }
/** * Adds the ScrollablePopupMenuItem to the item list and to the parent. * Fires the event 'itemsWereAdded' on the parent pop up menu * * @param item * The item to add * @param details * The details for the 'itemsWereAdded' event */ protected void addItem(ScrollablePopupMenuItem item, String details) { int oldSize = items.size(); items.add(0, item); parent.add(item, 0, oldSize, items.size()); parent.fireItemsWereAdded (new ScrollablePopupMenuEvent(parent, ScrollablePopupMenuEvent.ITEMS_ADDED, 1, details)); }
/** * Adds the ScrollablePopupMenuItem to the item list and to the parent. * Fires the event 'itemsWereAdded' on the parent pop up menu * * @param item * The item to add * @param details * The details for the 'itemsWereAdded' event */ protected void addItem(ScrollablePopupMenuItem item, String details) { int oldSize = items.size(); items.add(0, item); parent.add(item, 0, oldSize, items.size()); parent.fireItemsWereAdded (new ScrollablePopupMenuEvent(parent, ScrollablePopupMenuEvent.ITEMS_ADDED, 1, details)); }
/** * Creates the ScrollablePopupMenuEvent. * * @param source * The source component * @param type * The event type * @param itemNumber * The item number * @param details * The event details */ public ScrollablePopupMenuEvent(Object source, int type, int itemNumber, String details) { super(source); initEvent(type, itemNumber, details); }
/** * Creates the ScrollablePopupMenuEvent. * * @param source * The source component * @param type * The event type * @param itemNumber * The item number * @param details * The event details */ public ScrollablePopupMenuEvent(Object source, int type, int itemNumber, String details) { super(source); initEvent(type, itemNumber, details); }
public void itemsWereAdded(ScrollablePopupMenuEvent ev) { updateMainButtonTooltip(ev.getDetails()); }
public void itemsWereAdded(ScrollablePopupMenuEvent ev) { updateMainButtonTooltip(ev.getDetails()); }
public void itemsWereRemoved(ScrollablePopupMenuEvent ev) { updateMainButtonTooltip(ev.getDetails()); } });
public void itemsWereRemoved(ScrollablePopupMenuEvent ev) { updateMainButtonTooltip(ev.getDetails()); } });