本文整理汇总了Java中sun.awt.util.IdentityArrayList类的典型用法代码示例。如果您正苦于以下问题:Java IdentityArrayList类的具体用法?Java IdentityArrayList怎么用?Java IdentityArrayList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IdentityArrayList类属于sun.awt.util包,在下文中一共展示了IdentityArrayList类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAllWindows
import sun.awt.util.IdentityArrayList; //导入依赖的package包/类
static IdentityArrayList<Window> getAllWindows() {
synchronized (allWindows) {
IdentityArrayList<Window> v = new IdentityArrayList<Window>();
v.addAll(allWindows);
return v;
}
}
示例2: getAllUnblockedWindows
import sun.awt.util.IdentityArrayList; //导入依赖的package包/类
static IdentityArrayList<Window> getAllUnblockedWindows() {
synchronized (allWindows) {
IdentityArrayList<Window> unblocked = new IdentityArrayList<Window>();
for (int i = 0; i < allWindows.size(); i++) {
Window w = allWindows.get(i);
if (!w.isModalBlocked()) {
unblocked.add(w);
}
}
return unblocked;
}
}
示例3: readObject
import sun.awt.util.IdentityArrayList; //导入依赖的package包/类
private void readObject(ObjectInputStream s)
throws ClassNotFoundException, IOException, HeadlessException
{
GraphicsEnvironment.checkHeadless();
java.io.ObjectInputStream.GetField fields =
s.readFields();
ModalityType localModalityType = (ModalityType)fields.get("modalityType", null);
try {
checkModalityPermission(localModalityType);
} catch (AccessControlException ace) {
localModalityType = DEFAULT_MODALITY_TYPE;
}
// in 1.5 or earlier modalityType was absent, so use "modal" instead
if (localModalityType == null) {
this.modal = fields.get("modal", false);
setModal(modal);
} else {
this.modalityType = localModalityType;
}
this.resizable = fields.get("resizable", true);
this.undecorated = fields.get("undecorated", false);
this.title = (String)fields.get("title", "");
blockedWindows = new IdentityArrayList<>();
SunToolkit.checkAndSetPolicy(this);
initialized = true;
}
示例4: readObject
import sun.awt.util.IdentityArrayList; //导入依赖的package包/类
private void readObject(ObjectInputStream s)
throws ClassNotFoundException, IOException, HeadlessException
{
GraphicsEnvironment.checkHeadless();
s.defaultReadObject();
// in 1.5 or earlier modalityType was absent, so use "modal" instead
if (modalityType == null) {
setModal(modal);
}
blockedWindows = new IdentityArrayList();
}
示例5: readObject
import sun.awt.util.IdentityArrayList; //导入依赖的package包/类
private void readObject(ObjectInputStream s)
throws ClassNotFoundException, IOException, HeadlessException
{
GraphicsEnvironment.checkHeadless();
java.io.ObjectInputStream.GetField fields =
s.readFields();
ModalityType localModalityType = (ModalityType)fields.get("modalityType", null);
try {
checkModalityPermission(localModalityType);
} catch (AccessControlException ace) {
localModalityType = DEFAULT_MODALITY_TYPE;
}
// in 1.5 or earlier modalityType was absent, so use "modal" instead
if (localModalityType == null) {
this.modal = fields.get("modal", false);
setModal(modal);
} else {
this.modalityType = localModalityType;
}
this.resizable = fields.get("resizable", true);
this.undecorated = fields.get("undecorated", false);
this.title = (String)fields.get("title", "");
blockedWindows = new IdentityArrayList();
SunToolkit.checkAndSetPolicy(this);
initialized = true;
}