java.lang.SecurityManager.checkTopLevelWindow()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中java.lang.SecurityManager.checkTopLevelWindow()方法的一些代码示例,展示了SecurityManager.checkTopLevelWindow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SecurityManager.checkTopLevelWindow()方法的具体详情如下:
包路径:java.lang.SecurityManager
类名称:SecurityManager
方法名:checkTopLevelWindow

SecurityManager.checkTopLevelWindow介绍

暂无

代码示例

代码示例来源:origin: neo4j/neo4j

@Override
public boolean checkTopLevelWindow( Object window )
{
  return managerExists() ? securityManager.checkTopLevelWindow( window ) : super.checkTopLevelWindow( window );
}

代码示例来源:origin: com.github.stefanbirkner/system-rules

@Override
public boolean checkTopLevelWindow(Object window) {
  return (originalSecurityManager == null) ? super.checkTopLevelWindow(window)
    : originalSecurityManager.checkTopLevelWindow(window);
}

代码示例来源:origin: Nextdoor/bender

@Override
public boolean checkTopLevelWindow(Object window) {
  return (originalSecurityManager == null) ? super.checkTopLevelWindow(window)
    : originalSecurityManager.checkTopLevelWindow(window);
}

代码示例来源:origin: stefanbirkner/system-rules

@Override
public boolean checkTopLevelWindow(Object window) {
  return (originalSecurityManager == null) ? super.checkTopLevelWindow(window)
    : originalSecurityManager.checkTopLevelWindow(window);
}

代码示例来源:origin: poreid/poreid

@Override
public boolean checkTopLevelWindow(final Object window) {      
  if (null != securityManager) {
    return securityManager.checkTopLevelWindow(window);
  }
  
  return false;
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-bootstrap

public @Override boolean checkTopLevelWindow(Object window) {
  synchronized (delegates) {
    for (SecurityManager sm : delegates) {
      sm.checkTopLevelWindow(window);
    }
  }
  
  return super.checkTopLevelWindow(window);
}

代码示例来源:origin: org.eclipse/org.eclipse.ant.core

public boolean checkTopLevelWindow(Object window) {
  if (fSecurityManager != null) {
    return fSecurityManager.checkTopLevelWindow(window);
  }
  return super.checkTopLevelWindow(window);
}

代码示例来源:origin: pentaho/big-data-plugin

@Override
public boolean checkTopLevelWindow( Object window ) {
 if ( decorated != null ) {
  return decorated.checkTopLevelWindow( window );
 }
 return true; // Everything is allowed to put up top-level windows
}

代码示例来源:origin: org.fitnesse/fitnesse

@Override
public boolean checkTopLevelWindow(Object window) {
 if (delegate != null) {
  return delegate.checkTopLevelWindow(window);
 } else {
  return false;
 }
}

代码示例来源:origin: nokia/Avro-Schema-Generator

@Override
public boolean checkTopLevelWindow(Object window) {
  if (delegate != null) {
    return delegate.checkTopLevelWindow(window);
  } else {
    return super.checkTopLevelWindow(window);
  }
}

代码示例来源:origin: com.github.tcnh/fitnesse

@Override
public boolean checkTopLevelWindow(Object window) {
 if (delegate != null) {
  return delegate.checkTopLevelWindow(window);
 } else {
  return false;
 }
}

代码示例来源:origin: ikkisoft/blazer

@Override
public boolean checkTopLevelWindow(Object window) {
  return super.checkTopLevelWindow(window);
}

代码示例来源:origin: org.rythmengine/rythm-engine

@Override
public boolean checkTopLevelWindow(Object window) {
  checkRythm();
  if (null != csm) return csm.checkTopLevelWindow(window);
  else if (null != osm) return osm.checkTopLevelWindow(window);
  else return true;
}

代码示例来源:origin: rythmengine/rythmengine

@Override
public boolean checkTopLevelWindow(Object window) {
  checkRythm();
  if (null != csm) return csm.checkTopLevelWindow(window);
  else if (null != osm) return osm.checkTopLevelWindow(window);
  else return true;
}

代码示例来源:origin: net.sf.jstuff/jstuff-core

@Override
public boolean checkTopLevelWindow(final Object window) {
 if (wrapped == null)
   return super.checkTopLevelWindow(window);
 return wrapped.checkTopLevelWindow(window);
}

代码示例来源:origin: org.jvnet.hudson/netx

/**
 * Checks whether the window can be displayed without an applet
 * warning banner, and adds the window to the list of windows to
 * be disposed when the calling application exits.
 */
public boolean checkTopLevelWindow(Object window) {
  ApplicationInstance app = getApplication();
  // remember window -> application mapping for focus, close on exit 
  if (app != null && window instanceof Window) {
    Window w = (Window) window;
    if (JNLPRuntime.isDebug())
      System.err.println("SM: app: "+app.getTitle()+" is adding a window: "+window);
    weakWindows.add(window); // for mapping window -> app
    weakApplications.add(app);
    w.addWindowListener(contextListener); // for dynamic context classloader
    app.addWindow(w);
  }
  // change coffee cup to netx for default icon
  if (window instanceof Window)
    for (Window w = (Window)window; w != null; w = w.getOwner())
      if (window instanceof Frame)
        ((Frame)window).setIconImage(JNLPRuntime.getWindowIcon());
  // todo: set awt.appletWarning to custom message
  // todo: logo on with glass pane on JFrame/JWindow?
  
  return super.checkTopLevelWindow(window);
}

相关文章