Java 类sun.awt.util.IdentityArrayList 实例源码

项目:OpenJSharp    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:OpenJSharp    文件:Window.java   
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;
    }
}
项目:OpenJSharp    文件:Dialog.java   
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;

}
项目:jdk8u-jdk    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:jdk8u-jdk    文件:Window.java   
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;
    }
}
项目:jdk8u-jdk    文件:Dialog.java   
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;

}
项目:openjdk-jdk10    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:openjdk-jdk10    文件:Window.java   
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;
    }
}
项目:openjdk-jdk10    文件:Dialog.java   
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;

}
项目:openjdk9    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:openjdk9    文件:Window.java   
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;
    }
}
项目:openjdk9    文件:Dialog.java   
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;

}
项目:Java8CN    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:Java8CN    文件:Window.java   
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;
    }
}
项目:Java8CN    文件:Dialog.java   
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;

}
项目:jdk8u_jdk    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:jdk8u_jdk    文件:Window.java   
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;
    }
}
项目:jdk8u_jdk    文件:Dialog.java   
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;

}
项目:lookaside_java-1.8.0-openjdk    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:Window.java   
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;
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:Dialog.java   
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;

}
项目:VarJ    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:VarJ    文件:Window.java   
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;
    }
}
项目:VarJ    文件:Dialog.java   
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();
}
项目:jdk-1.7-annotated    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:jdk-1.7-annotated    文件:Window.java   
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;
    }
}
项目:jdk-1.7-annotated    文件:Dialog.java   
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;

}
项目:infobip-open-jdk-8    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:infobip-open-jdk-8    文件:Window.java   
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;
    }
}
项目:infobip-open-jdk-8    文件:Dialog.java   
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;

}
项目:jdk8u-dev-jdk    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:jdk8u-dev-jdk    文件:Window.java   
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;
    }
}
项目:jdk8u-dev-jdk    文件:Dialog.java   
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;

}
项目:jdk7-jdk    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:jdk7-jdk    文件:Window.java   
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;
    }
}
项目:jdk7-jdk    文件:Dialog.java   
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();
}
项目:openjdk-source-code-learn    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}
项目:openjdk-source-code-learn    文件:Window.java   
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;
    }
}
项目:openjdk-source-code-learn    文件:Dialog.java   
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();
}
项目:OLD-OpenJDK8    文件:Window.java   
static IdentityArrayList<Window> getAllWindows() {
    synchronized (allWindows) {
        IdentityArrayList<Window> v = new IdentityArrayList<Window>();
        v.addAll(allWindows);
        return v;
    }
}