/**
* 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();
}
}
}
}
java类java.beans.Visibility的实例源码
BeanContextSupport.java 文件源码
项目:OpenJSharp
阅读 28
收藏 0
点赞 0
评论 0
BeanContextSupport.java 文件源码
项目:OpenJSharp
阅读 26
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk8u-jdk
阅读 80
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk8u-jdk
阅读 29
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:openjdk-jdk10
阅读 24
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:openjdk-jdk10
阅读 23
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:openjdk9
阅读 21
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:openjdk9
阅读 21
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:Java8CN
阅读 20
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:Java8CN
阅读 24
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk8u_jdk
阅读 31
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk8u_jdk
阅读 26
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:lookaside_java-1.8.0-openjdk
阅读 21
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:lookaside_java-1.8.0-openjdk
阅读 25
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:VarJ
阅读 24
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:VarJ
阅读 34
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:fiscevm
阅读 21
收藏 0
点赞 0
评论 0
/**
* Returns true if this context or its children needs GUI to work properly.
* <p>
* The implementation checks the peer and all the children that implement
* <code>Visibility</code> to see if any of their <code>needsGui()</code>
* returns true, and if any of the children extends
* <code>java.awt.Component</code>.</p>
*
* @see java.beans.Visibility#needsGui()
*/
public boolean needsGui() {
if (inNeedsGui) {
return false;
}
inNeedsGui = true;
try {
if (getBeanContextPeer() != this) {
if (getBeanContextPeer().needsGui()) {
return true;
}
}
Object childs[] = copyChildren();
for (int i = 0; i < childs.length; i++) {
Visibility v = getChildVisibility(childs[i]);
if (v != null && v.needsGui()) {
return true;
}
}
return false;
} finally {
inNeedsGui = false;
}
}
BeanContextSupport.java 文件源码
项目:jdk-1.7-annotated
阅读 26
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk-1.7-annotated
阅读 28
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:infobip-open-jdk-8
阅读 38
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:infobip-open-jdk-8
阅读 33
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk8u-dev-jdk
阅读 21
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk8u-dev-jdk
阅读 23
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk7-jdk
阅读 30
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:jdk7-jdk
阅读 34
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:openjdk-source-code-learn
阅读 23
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:openjdk-source-code-learn
阅读 19
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:OLD-OpenJDK8
阅读 23
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:OLD-OpenJDK8
阅读 44
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}
BeanContextSupport.java 文件源码
项目:openjdk-jdk7u-jdk
阅读 31
收藏 0
点赞 0
评论 0
/**
* 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();
}
}
}
}