本文整理了Java中javax.swing.JInternalFrame.removeInternalFrameListener()
方法的一些代码示例,展示了JInternalFrame.removeInternalFrameListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.removeInternalFrameListener()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:removeInternalFrameListener
暂无
代码示例来源:origin: chewiebug/GCViewer
@Override
public void internalFrameClosing(InternalFrameEvent e) {
JInternalFrame internalFrame = e.getInternalFrame();
internalFrame.removeInternalFrameListener(this);
internalFrame.getRootPane().remove(internalFrame);
if (internalFrame.getRootPane().getComponentCount() == 0) {
getActionMap(e).get(ActionCommands.ARRANGE.toString()).setEnabled(false);
}
// remove menuitem from menu and from button group
JMenu windowMenu = getMenuBar(e).getWindowMenu();
for (int i = 2; i < windowMenu.getItemCount(); i++) {
JMenuItem item = windowMenu.getItem(i);
if (((WindowMenuItemAction) item.getAction()).getInternalFrame() == internalFrame) {
getMenuBar(e).removeFromWindowMenuGroup(item);
break;
}
}
// if this internalFrame is the last to be open, update the menu state
// -> otherwise any settings done by the user are lost
if (getGCViewerGui(e).getDesktopPane().getComponentCount() == 1) {
updateMenuItemState(e);
// set same menustate, when the last is closed as is set for deactivated
internalFrameDeactivated(e);
}
// if some thread is still loading, it should stop now
getSelectedGCDocument(e).getGCResources().stream().forEach(gcResource -> gcResource.setIsReadCancelled(true));
}
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
if(cmpt!=null && l!=null ){
cmpt.removeInternalFrameListener(l);
cmpt = null;
l = null;
}
}
};
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
if(cmpt!=null && l!=null ){
cmpt.removeInternalFrameListener(l);
cmpt = null;
l = null;
}
}
};
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
if(cmpt!=null && l!=null ){
cmpt.removeInternalFrameListener(l);
cmpt = null;
l = null;
}
}
};
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
if(cmpt!=null && l!=null ){
cmpt.removeInternalFrameListener(l);
cmpt = null;
l = null;
}
}
};
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
if(cmpt!=null && l!=null ){
cmpt.removeInternalFrameListener(l);
cmpt = null;
l = null;
}
}
};
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
if(cmpt!=null && l!=null ){
cmpt.removeInternalFrameListener(l);
cmpt = null;
l = null;
}
}
};
代码示例来源:origin: xyz.cofe/gui.swing
@Override
public void close() throws IOException {
if(cmpt!=null && l!=null ){
cmpt.removeInternalFrameListener(l);
cmpt = null;
l = null;
}
}
};
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
public synchronized void removeFrame(JInternalFrame f) {
Iterator it = map.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
if (entry.getValue().equals(f)) {
map.remove(entry.getKey());
f.removeInternalFrameListener(listener);
return;
}
}
}
代码示例来源:origin: com.numdata/numdata-swing
/**
* Removes a window.
*
* @param window Window to remove.
*/
private void removeWindow( final JInternalFrame window )
{
_desktop.remove( window );
window.removeInternalFrameListener( _internalFrameListener );
}
代码示例来源:origin: bcdev/beam
/**
* Removes an internal frame listener from VISAT. Internal frame listeners are notified each time an internal frame
* within VISAT's desktop pane is activated, deactivated,opened or closed.
*
* @param listener the listener to be removed
*/
public void removeInternalFrameListener(final InternalFrameListener listener) {
internalFrameListeners.remove(listener);
JInternalFrame[] internalFrames = getAllInternalFrames();
for (JInternalFrame internalFrame : internalFrames) {
internalFrame.removeInternalFrameListener(listener);
}
}
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
@Override public void internalFrameClosing(InternalFrameEvent e) {
Object source = e.getSource();
if (source == classBrowser_Unused) {
((JInternalFrame) classBrowser_Unused).removeInternalFrameListener(this);
classBrowser_Unused = null;
} else if (source instanceof JInternalFrame) {
JInternalFrame window = (JInternalFrame) source;
window.removeInternalFrameListener(this);
Utility.forgetWindow(window);
window.dispose();
}
}
代码示例来源:origin: de.sciss/scisslib
public static void remove( AbstractWindow.Listener l, AbstractWindow w )
{
final JInternalFrame jif = (JInternalFrame) w.getWindow();
// final InternalFrameListenerWrapper iflw = (InternalFrameListenerWrapper) mapListeners.remove( w );
// jif.removeInternalFrameListener( iflw );
final InternalFrameListener[] coll = jif.getInternalFrameListeners();
InternalFrameListenerWrapper iflw;
for( int i = 0; i < coll.length; i++ ) {
if( coll[ i ] instanceof InternalFrameListenerWrapper ) {
iflw = (InternalFrameListenerWrapper) coll[ i ];
if( iflw.l == l ) {
jif.removeInternalFrameListener( iflw );
return;
}
}
}
throw new IllegalArgumentException( "Listener was not registered " + l );
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void run() {
BuMainPanel mp = getMainPanel();
mp.removeInternalFrame(_f);
_f.removeInternalFrameListener(l);
menusOrganisationFenetres();
}
};
代码示例来源:origin: org.japura/japura-gui
private void backupProperties(JInternalFrame frame) {
oldDefaultCloseOperation = frame.getDefaultCloseOperation();
frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
oldInternalFrameListeners = frame.getInternalFrameListeners();
for (InternalFrameListener listener : oldInternalFrameListeners) {
frame.removeInternalFrameListener(listener);
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void run() {
BuMainPanel mp = getMainPanel();
for (int i = _f.length - 1; i >= 0; i--) {
if (_f[i] != null) {
mp.removeInternalFrame(_f[i]);
_f[i].removeInternalFrameListener(l);
}
}
menusOrganisationFenetres();
}
};
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void run() {
_f.removeInternalFrameListener(l);
_f.addInternalFrameListener(l);
BuMainPanel mp = getMainPanel();
mp.addInternalFrame(_f);
menusOrganisationFenetres();
}
};
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
public void run() {
BuMainPanel mp = getMainPanel();
for (int i = _f.length - 1; i >= 0; i--) {
_f[i].removeInternalFrameListener(l);
_f[i].addInternalFrameListener(l);
mp.addInternalFrame(_f[i]);
}
menusOrganisationFenetres();
}
};
代码示例来源:origin: bcdev/beam
public void closeFrame(JInternalFrame internalFrame) {
internalFrame.removeInternalFrameListener(frameListener);
try {
internalFrame.setClosed(true);
} catch (PropertyVetoException e) {
internalFrame.dispose();
}
removeTabFor(internalFrame);
desktopPane.remove(internalFrame);
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@Override
public void unregisterEvents() {
super.unregisterEvents();
if (mHandlee != null) {
if (mHandlee instanceof Window) {
((Window) mHandlee).removeWindowListener(this);
((Window) mHandlee).removeWindowStateListener(this);
}
if (mHandlee instanceof JInternalFrame) {
((JInternalFrame) mHandlee).removeInternalFrameListener(this);
((JInternalFrame) mHandlee).removePropertyChangeListener(this);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!