本文整理了Java中javax.swing.JPopupMenu.removePopupMenuListener()
方法的一些代码示例,展示了JPopupMenu.removePopupMenuListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JPopupMenu.removePopupMenuListener()
方法的具体详情如下:
包路径:javax.swing.JPopupMenu
类名称:JPopupMenu
方法名:removePopupMenuListener
暂无
代码示例来源:origin: org.netbeans.api/org-openide-awt
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 );
}
}
代码示例来源:origin: org.netbeans.api/org-openide-awt
@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 );
}
}
}
代码示例来源:origin: org.netbeans.api/org-openide-awt
@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;
}
}
}
代码示例来源:origin: org.netbeans.api/org-openide-awt
@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;
}
}
}
代码示例来源:origin: JetBrains/jediterm
private void disposePopupListener() {
if (myActivePopup != null) {
myActivePopup.removePopupMenuListener(myPopupListener);
myActivePopup = null;
}
}
代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15
/**
* Uninstall the fix. Usually this is unnecessary since letting the combo
* box go out of scope is sufficient.
*/
public void uninstall() {
popupMenu.removePopupMenuListener(listener);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
lastPopup.removePopupMenuListener(this);
lastPopup = null; // clear the status and stop listening
}
}
代码示例来源:origin: com.haulmont.thirdparty/glazedlists
/**
* Uninstall the fix. Usually this is unnecessary since letting the combo
* box go out of scope is sufficient.
*/
public void uninstall() {
popupMenu.removePopupMenuListener(listener);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
lastPopup.removePopupMenuListener(this);
lastPopup = null; // clear the status and stop listening
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
filled = false; // clear the status and stop listening
popup.removePopupMenuListener(this);
}
public void popupMenuCanceled(PopupMenuEvent e) {}
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
if(cmpt!=null && l!=null ){
cmpt.removePopupMenuListener(l);
cmpt = null;
l = null;
}
}
};
代码示例来源:origin: org.swinglabs.swingx/swingx-all
/**
* Uninstall the fix. Usually this is unnecessary since letting the combo
* box go out of scope is sufficient.
*/
public void uninstall() {
popupMenu.removePopupMenuListener(listener);
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
@Override
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
popup.removePopupMenuListener(this);
outline.requestFocus();
}
@Override
代码示例来源:origin: org.netbeans.api/org-openide-explorer
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
popup.removePopupMenuListener(this);
table.requestFocus();
}
public void popupMenuCanceled(PopupMenuEvent e) {
代码示例来源:origin: org.apache.jmeter/jorphan
/**
* 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;
}
}
代码示例来源:origin: org.jvnet.hudson.plugins.hudsontrayapp/client-jdk16
public void setJPopuMenu(JPopupMenu menu) {
if (this.menu != null) {
this.menu.removePopupMenuListener(popupListener);
}
this.menu = menu;
menu.addPopupMenuListener(popupListener);
}
代码示例来源:origin: org.gephi/desktop-datalab
@Override
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
popup.removePopupMenuListener(this);
table.requestFocus();
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
protected void uninstallListeners() {
this.popupMenu.removeContainerListener(this.substanceContainerListener);
this.substanceContainerListener = null;
this.popupMenu.removePopupMenuListener(this.substancePopupMenuListener);
this.substancePopupMenuListener = null;
super.uninstallListeners();
}
}
代码示例来源:origin: xyz.cofe/docking-frames-common
private void closing(){
closed = true;
menu.removePopupMenuListener( listener );
menu.removeAll();
fireClosed();
}
}
代码示例来源:origin: org.java.net.substance/substance
@Override
protected void uninstallListeners() {
this.popupMenu.removeContainerListener(this.substanceContainerListener);
this.substanceContainerListener = null;
this.popupMenu.removePopupMenuListener(this.substancePopupMenuListener);
this.substancePopupMenuListener = null;
super.uninstallListeners();
}
}
内容来源于网络,如有侵权,请联系作者删除!