Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
e463005e
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e463005e
编写于
2月 05, 2013
作者:
M
malenkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8006790: Improve checking for windows
Reviewed-by: art, mschoene
上级
f1732ae0
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
29 addition
and
26 deletion
+29
-26
src/macosx/classes/sun/lwawt/LWWindowPeer.java
src/macosx/classes/sun/lwawt/LWWindowPeer.java
+3
-3
src/macosx/classes/sun/lwawt/macosx/CFileDialog.java
src/macosx/classes/sun/lwawt/macosx/CFileDialog.java
+2
-2
src/macosx/classes/sun/lwawt/macosx/CPrinterDialogPeer.java
src/macosx/classes/sun/lwawt/macosx/CPrinterDialogPeer.java
+2
-2
src/share/classes/java/awt/Window.java
src/share/classes/java/awt/Window.java
+2
-2
src/share/classes/java/awt/peer/WindowPeer.java
src/share/classes/java/awt/peer/WindowPeer.java
+6
-7
src/share/classes/sun/awt/EmbeddedFrame.java
src/share/classes/sun/awt/EmbeddedFrame.java
+2
-2
src/solaris/classes/sun/awt/X11/XWindowPeer.java
src/solaris/classes/sun/awt/X11/XWindowPeer.java
+3
-3
src/windows/classes/sun/awt/windows/WFileDialogPeer.java
src/windows/classes/sun/awt/windows/WFileDialogPeer.java
+2
-2
src/windows/classes/sun/awt/windows/WPrintDialogPeer.java
src/windows/classes/sun/awt/windows/WPrintDialogPeer.java
+2
-2
src/windows/classes/sun/awt/windows/WWindowPeer.java
src/windows/classes/sun/awt/windows/WWindowPeer.java
+5
-1
未找到文件。
src/macosx/classes/sun/lwawt/LWWindowPeer.java
浏览文件 @
e463005e
...
...
@@ -170,7 +170,7 @@ public class LWWindowPeer
setTitle
(((
Dialog
)
getTarget
()).
getTitle
());
}
setAlwaysOnTop
(
getTarget
().
isAlwaysOnTop
()
);
updateAlwaysOnTopState
(
);
updateMinimumSize
();
final
Shape
shape
=
getTarget
().
getShape
();
...
...
@@ -357,8 +357,8 @@ public class LWWindowPeer
}
@Override
public
void
setAlwaysOnTop
(
boolean
value
)
{
platformWindow
.
setAlwaysOnTop
(
value
);
public
void
updateAlwaysOnTopState
(
)
{
platformWindow
.
setAlwaysOnTop
(
getTarget
().
isAlwaysOnTop
()
);
}
@Override
...
...
src/macosx/classes/sun/lwawt/macosx/CFileDialog.java
浏览文件 @
e463005e
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -180,7 +180,7 @@ class CFileDialog implements FileDialogPeer {
}
@Override
public
void
setAlwaysOnTop
(
boolean
alwaysOnTop
)
{
public
void
updateAlwaysOnTopState
(
)
{
}
@Override
...
...
src/macosx/classes/sun/lwawt/macosx/CPrinterDialogPeer.java
浏览文件 @
e463005e
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011,
2013,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -87,7 +87,7 @@ public class CPrinterDialogPeer extends LWWindowPeer {
}
// 1.6 peer method
public
void
setAlwaysOnTop
(
boolean
value
)
{
public
void
updateAlwaysOnTopState
(
)
{
// no-op, since we just show the native print dialog
}
...
...
src/share/classes/java/awt/Window.java
浏览文件 @
e463005e
/*
* Copyright (c) 1995, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -2234,7 +2234,7 @@ public class Window extends Container implements Accessible {
WindowPeer
peer
=
(
WindowPeer
)
this
.
peer
;
synchronized
(
getTreeLock
())
{
if
(
peer
!=
null
)
{
peer
.
setAlwaysOnTop
(
alwaysOnTop
);
peer
.
updateAlwaysOnTopState
(
);
}
}
}
...
...
src/share/classes/java/awt/peer/WindowPeer.java
浏览文件 @
e463005e
/*
* Copyright (c) 1995, 20
09
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1995, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -53,15 +53,14 @@ public interface WindowPeer extends ContainerPeer {
void
toBack
();
/**
* Sets if the window should always stay on top of all other windows or
* not.
*
* @param alwaysOnTop if the window should always stay on top of all other
* windows or not
* Updates the window's always-on-top state.
* Sets if the window should always stay
* on top of all other windows or not.
*
* @see Window#getAlwaysOnTop()
* @see Window#setAlwaysOnTop(boolean)
*/
void
setAlwaysOnTop
(
boolean
alwaysOnTop
);
void
updateAlwaysOnTopState
(
);
/**
* Updates the window's focusable state.
...
...
src/share/classes/sun/awt/EmbeddedFrame.java
浏览文件 @
e463005e
/*
* Copyright (c) 1996, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -542,7 +542,7 @@ public abstract class EmbeddedFrame extends Frame
public
void
toBack
()
{}
public
void
updateFocusableWindowState
()
{}
public
void
updateAlwaysOnTop
()
{}
public
void
setAlwaysOnTop
(
boolean
alwaysOnTop
)
{}
public
void
updateAlwaysOnTopState
(
)
{}
public
Component
getGlobalHeavyweightFocusOwner
()
{
return
null
;
}
public
void
setBoundsPrivate
(
int
x
,
int
y
,
int
width
,
int
height
)
{
setBounds
(
x
,
y
,
width
,
height
,
SET_BOUNDS
);
...
...
src/solaris/classes/sun/awt/X11/XWindowPeer.java
浏览文件 @
e463005e
/*
* Copyright (c) 2002, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -993,8 +993,8 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
XLayerProtocol
.
LAYER_NORMAL
);
}
public
void
setAlwaysOnTop
(
boolean
alwaysOnTop
)
{
this
.
alwaysOnTop
=
alwaysOnTop
;
public
void
updateAlwaysOnTopState
(
)
{
this
.
alwaysOnTop
=
((
Window
)
this
.
target
).
isAlwaysOnTop
()
;
updateAlwaysOnTop
();
}
...
...
src/windows/classes/sun/awt/windows/WFileDialogPeer.java
浏览文件 @
e463005e
/*
* Copyright (c) 1996, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -237,7 +237,7 @@ public class WFileDialogPeer extends WWindowPeer implements FileDialogPeer {
// unused methods. Overridden to disable this functionality as
// it requires HWND which is not available for FileDialog
public
void
setAlwaysOnTop
(
boolean
value
)
{}
public
void
updateAlwaysOnTopState
(
)
{}
public
void
setDirectory
(
String
dir
)
{}
public
void
setFile
(
String
file
)
{}
public
void
setTitle
(
String
title
)
{}
...
...
src/windows/classes/sun/awt/windows/WPrintDialogPeer.java
浏览文件 @
e463005e
/*
* Copyright (c) 1999, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -117,7 +117,7 @@ public class WPrintDialogPeer extends WWindowPeer implements DialogPeer {
// unused methods. Overridden to disable this functionality as
// it requires HWND which is not available for FileDialog
void
initialize
()
{}
public
void
setAlwaysOnTop
(
boolean
b
)
{}
public
void
updateAlwaysOnTopState
(
)
{}
public
void
setResizable
(
boolean
resizable
)
{}
public
void
hide
()
{}
public
void
enable
()
{}
...
...
src/windows/classes/sun/awt/windows/WWindowPeer.java
浏览文件 @
e463005e
/*
* Copyright (c) 1996, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -132,6 +132,10 @@ public class WWindowPeer extends WPanelPeer implements WindowPeer,
}
}
public
void
updateAlwaysOnTopState
()
{
setAlwaysOnTop
(((
Window
)
target
).
isAlwaysOnTop
());
}
public
void
updateFocusableWindowState
()
{
setFocusableWindow
(((
Window
)
target
).
isFocusableWindow
());
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录