/** * Adds the item to this component at the specified location. * * @param menuItem * the item to add */ public void add(ScrollablePopupMenuItem menuItem, int index, int oldSize, int newSize) { menuPanel.add((Component) menuItem, index); if (oldSize == 0) { this.setEnabled(true); } }
/** * Adds the item to this component at the specified location. * * @param menuItem * the item to add */ public void add(ScrollablePopupMenuItem menuItem, int index, int oldSize, int newSize) { menuPanel.add((Component) menuItem, index); if (oldSize == 0) { this.setEnabled(true); } }
/** * Removes the item from this component. * * @param menuItem * the item to remove */ public void remove(ScrollablePopupMenuItem menuItem, int oldSize, int newSize) { menuPanel.remove((Component) menuItem); if (newSize == 0) { this.setEnabled(false); } }
if (popupMenu == null) { popupMenu = new ScrollablePopupMenu(this); popupMenu.setEnabled(false);
if (popupMenu == null) { popupMenu = new ScrollablePopupMenu(this); popupMenu.setEnabled(false);
/** * Removes the item from this component. * * @param menuItem * the item to remove */ public void remove(ScrollablePopupMenuItem menuItem, int oldSize, int newSize) { menuPanel.remove((Component) menuItem); if (newSize == 0) { this.setEnabled(false); } }
public void doCompoundEdit(HistoryBrowserEvent event) { if (parent.isEnabled()) { parent.setEnabled(false); } }
public void doCompoundEdit(HistoryBrowserEvent event) { if (parent.isEnabled()) { parent.setEnabled(false); } }
public void doCompoundEdit(HistoryBrowserEvent event) { if (!parent.isEnabled()) { parent.setEnabled(true); } }
public void doCompoundEdit(HistoryBrowserEvent event) { if (!parent.isEnabled()) { parent.setEnabled(true); } }