public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { // If inside the button let the button's mouse listener // deal with the state. The popup menu will be hidden and // we should not show it again. if( getModel() instanceof Model ) { ((Model)getModel())._release(); } JPopupMenu menu = getPopupMenu(); if( null != menu ) { menu.removePopupMenuListener( this ); } }
@Override public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { // If inside the button let the button's mouse listener // deal with the state. The popup menu will be hidden and // we should not show it again. if ( !mouseInButton ) { if( getModel() instanceof Model ) { ((Model)getModel())._release(); } JPopupMenu menu = getPopupMenu(); if( null != menu ) { menu.removePopupMenuListener( this ); } } }
@Override public void mousePressed( MouseEvent e ) { popupMenuOperation = false; JPopupMenu menu = getPopupMenu(); if ( menu != null && getModel() instanceof Model ) { Model model = (Model) getModel(); if ( !model._isPressed() ) { if( isInArrowArea( e.getPoint() ) && menu.getComponentCount() > 0 ) { model._press(); menu.addPopupMenuListener( getMenuListener() ); menu.show( DropDownButton.this, 0, getHeight() ); popupMenuOperation = true; } } else { model._release(); menu.removePopupMenuListener( getMenuListener() ); popupMenuOperation = true; } } }
@Override public void mousePressed( MouseEvent e ) { popupMenuOperation = false; JPopupMenu menu = getPopupMenu(); if ( menu != null && getModel() instanceof Model ) { Model model = (Model) getModel(); if ( !model._isPressed() ) { if( isInArrowArea( e.getPoint() ) && menu.getComponentCount() > 0 ) { model._press(); menu.addPopupMenuListener( getMenuListener() ); menu.show( DropDownToggleButton.this, 0, getHeight() ); popupMenuOperation = true; } } else { model._release(); menu.removePopupMenuListener( getMenuListener() ); popupMenuOperation = true; } } }
private void disposePopupListener() { if (myActivePopup != null) { myActivePopup.removePopupMenuListener(myPopupListener); myActivePopup = null; } }
/** * Uninstall the fix. Usually this is unnecessary since letting the combo * box go out of scope is sufficient. */ public void uninstall() { popupMenu.removePopupMenuListener(listener); }
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { lastPopup.removePopupMenuListener(this); lastPopup = null; // clear the status and stop listening } }
/** * Uninstall the fix. Usually this is unnecessary since letting the combo * box go out of scope is sufficient. */ public void uninstall() { popupMenu.removePopupMenuListener(listener); }
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { lastPopup.removePopupMenuListener(this); lastPopup = null; // clear the status and stop listening } }
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { filled = false; // clear the status and stop listening popup.removePopupMenuListener(this); } public void popupMenuCanceled(PopupMenuEvent e) {}
@Override public void close() throws IOException { if(cmpt!=null && l!=null ){ cmpt.removePopupMenuListener(l); cmpt = null; l = null; } } };
/** * Uninstall the fix. Usually this is unnecessary since letting the combo * box go out of scope is sufficient. */ public void uninstall() { popupMenu.removePopupMenuListener(listener); }
@Override public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { popup.removePopupMenuListener(this); outline.requestFocus(); } @Override
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { popup.removePopupMenuListener(this); table.requestFocus(); } public void popupMenuCanceled(PopupMenuEvent e) {
/** * Removes this MenuScroller from the associated menu and restores the * default behavior of the menu. */ public void dispose() { if (menu != null) { menu.removePopupMenuListener(menuListener); menu.removeMouseWheelListener(mouseWheelListener); menu = null; } }
public void setJPopuMenu(JPopupMenu menu) { if (this.menu != null) { this.menu.removePopupMenuListener(popupListener); } this.menu = menu; menu.addPopupMenuListener(popupListener); }
@Override public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { popup.removePopupMenuListener(this); table.requestFocus(); }
@Override protected void uninstallListeners() { this.popupMenu.removeContainerListener(this.substanceContainerListener); this.substanceContainerListener = null; this.popupMenu.removePopupMenuListener(this.substancePopupMenuListener); this.substancePopupMenuListener = null; super.uninstallListeners(); } }
private void closing(){ closed = true; menu.removePopupMenuListener( listener ); menu.removeAll(); fireClosed(); } }
@Override protected void uninstallListeners() { this.popupMenu.removeContainerListener(this.substanceContainerListener); this.substanceContainerListener = null; this.popupMenu.removePopupMenuListener(this.substancePopupMenuListener); this.substancePopupMenuListener = null; super.uninstallListeners(); } }