当前位置: 首页>>代码示例>>Java>>正文


Java IdentityArrayList类代码示例

本文整理汇总了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;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:Window.java

示例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;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:Window.java

示例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;

}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:36,代码来源:Dialog.java

示例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();
}
 
开发者ID:jgaltidor,项目名称:VarJ,代码行数:14,代码来源:Dialog.java

示例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;

}
 
开发者ID:ZhaoX,项目名称:jdk-1.7-annotated,代码行数:36,代码来源:Dialog.java


注:本文中的sun.awt.util.IdentityArrayList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。