java.beans.Visibility Java Examples

The following examples show how to use java.beans.Visibility. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BeanContextSupport.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator<Object> i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #2
Source File: BeanContextSupport.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #3
Source File: BeanContextSupport.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #4
Source File: BeanContextSupport.java    From jdk-1.7-annotated with Apache License 2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #5
Source File: BeanContextSupport.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #6
Source File: BeanContextSupport.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #7
Source File: BeanContextSupport.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #8
Source File: BeanContextSupport.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #9
Source File: BeanContextSupport.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #10
Source File: BeanContextSupport.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #11
Source File: BeanContextSupport.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #12
Source File: BeanContextSupport.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #13
Source File: BeanContextSupport.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #14
Source File: BeanContextSupport.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #15
Source File: BeanContextSupport.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #16
Source File: BeanContextSupport.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #17
Source File: BeanContextSupport.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator<Object> i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #18
Source File: BeanContextSupport.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #19
Source File: BeanContextSupport.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator<Object> i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #20
Source File: BeanContextSupport.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator<Object> i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #21
Source File: BeanContextSupport.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #22
Source File: BeanContextSupport.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #23
Source File: BeanContextSupport.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #24
Source File: BeanContextSupport.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #25
Source File: BeanContextSupport.java    From Java8CN with Apache License 2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #26
Source File: BeanContextSupport.java    From Java8CN with Apache License 2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #27
Source File: BeanContextSupport.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #28
Source File: BeanContextSupport.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}
 
Example #29
Source File: BeanContextSupport.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Notify this instance that it may now render a GUI
 */

public synchronized void okToUseGui() {
    if (!okToUseGui) {
        okToUseGui = true;

        // lets also tell the Children that can that they may use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.okToUseGui();
            }
        }
    }
}
 
Example #30
Source File: BeanContextSupport.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * notify this instance that it may no longer render a GUI.
 */

public synchronized void dontUseGui() {
    if (okToUseGui) {
        okToUseGui = false;

        // lets also tell the Children that can that they may not use their GUI's
        synchronized(children) {
            for (Iterator i = children.keySet().iterator(); i.hasNext();) {
                Visibility v = getChildVisibility(i.next());

                if (v != null) v.dontUseGui();
           }
        }
    }
}