Package java.beans

Examples of java.beans.Visibility


        // We may check it by trying to cast each child to Visibility
        // and see it needs GUI.
        // A child definitely needs GUI if it implements Component
        for (Iterator it = iterator(); it.hasNext();) {
            Object next = it.next();
            Visibility vis = getChildVisibility(next);

            if (vis != null) {
                if (vis.needsGui()) {
                    return true;
                }
            }

            if (next instanceof java.awt.Component) {
View Full Code Here


        // Notify this BeanContext and its children that it's OK now to use GUI
        this.okToUseGui = true;

        for (Iterator it = iterator(); it.hasNext();) {
            Object next = it.next();
            Visibility vis = getChildVisibility(next);

            if (vis != null) {
                vis.okToUseGui();
            }
        }
    }
View Full Code Here

            Object childs[] = copyChildren();
            for (int i = 0; i < childs.length; i++) {
                if (childs[i] instanceof Component) {
                    return true;
                }
                Visibility v = getChildVisibility(childs[i]);
                if (v != null && v.needsGui()) {
                    return true;
                }
            }
            return false;
        } finally {
View Full Code Here

              "associate itself with " +
              "this context.", e);
    }
      if (targetChild instanceof Visibility)
        {
    Visibility visibleChild = (Visibility) targetChild;
    if (okToUseGui)
      visibleChild.okToUseGui();
    else
      visibleChild.dontUseGui();
        }
      childJustAddedHook(targetChild, child);
    }
  fireChildrenAdded(new BeanContextMembershipEvent(this,
               new Object[]{ targetChild }));
View Full Code Here

TOP

Related Classes of java.beans.Visibility

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.