下面列出了java.awt.event.WindowEvent#getOppositeWindow() 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
public void windowDeactivated(WindowEvent e) {
// proceed only if switching to external application
if (e.getOppositeWindow() == null) {
synchronized (rp) {
if (task != null) {
task.cancel();
} else {
task = rp.create(this);
}
LOG.fine("Window deactivated, preparing refresh task");
}
if (UILOG.isLoggable(Level.FINE)) {
LogRecord r = new LogRecord(Level.FINE, "LOG_WINDOW_DEACTIVATED"); // NOI18N
r.setResourceBundleName("org.netbeans.core.ui.warmup.Bundle"); // NOI18N
r.setResourceBundle(NbBundle.getBundle(MenuWarmUpTask.class)); // NOI18N
r.setLoggerName(UILOG.getName());
UILOG.log(r);
}
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwner();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
private void restoreFocus(WindowEvent we) {
Window realOppositeWindow = this.realOppositeWindowWR.get();
if (realOppositeWindow != null
&& restoreFocus(realOppositeWindow, null, false))
{
// do nothing, everything is done in restoreFocus()
} else if (we.getOppositeWindow() != null &&
restoreFocus(we.getOppositeWindow(), null, false))
{
// do nothing, everything is done in restoreFocus()
} else {
clearGlobalFocusOwnerPriv();
}
}
@Override
public void windowLostFocus(WindowEvent e) {
if (contentWindow != null && e.getOppositeWindow() == null) {
shutdown();
}
}
public void windowLostFocus(WindowEvent e) {
if (contentWindow != null && e.getOppositeWindow() == null) {
shutdown();
}
}
@Override
public void windowLostFocus(WindowEvent e) {
if (actionsWindow != null && e.getOppositeWindow() == null) {
shutdown();
}
}
public void windowLostFocus(WindowEvent e) {
if (contentWindow != null && e.getOppositeWindow() == null) {
shutdown();
}
}