/[classpath]/classpath/java/awt/Component.java
ViewVC logotype

Diff of /classpath/java/awt/Component.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.38.2.15 by gnu_andrew, Sat Sep 10 15:31:39 2005 UTC revision 1.38.2.16 by gnu_andrew, Tue Sep 20 18:46:25 2005 UTC
# Line 720  public abstract class Component Line 720  public abstract class Component
720    
721    /**    /**
722     * Tests if the component is displayable. It must be connected to a native     * Tests if the component is displayable. It must be connected to a native
723     * screen resource, and all its ancestors must be displayable. A containment     * screen resource.  This reduces to checking that peer is not null.  A
724     * hierarchy is made displayable when a window is packed or made visible.     * containment  hierarchy is made displayable when a window is packed or
725       * made visible.
726     *     *
727     * @return true if the component is displayable     * @return true if the component is displayable
728     * @see Container#add(Component)     * @see Container#add(Component)
# Line 733  public abstract class Component Line 734  public abstract class Component
734     */     */
735    public boolean isDisplayable()    public boolean isDisplayable()
736    {    {
737      if (parent != null)      return peer != null;
       return parent.isDisplayable();  
     return false;  
738    }    }
739    
740    /**    /**
# Line 4242  public abstract class Component Line 4241  public abstract class Component
4241      if (isDoubleBuffered())      if (isDoubleBuffered())
4242        param.append(",doublebuffered");        param.append(",doublebuffered");
4243      if (parent == null)      if (parent == null)
4244        param.append(",parent==null");        param.append(",parent=null");
4245      else      else
4246        param.append(",parent==").append(parent.getName());        param.append(",parent=").append(parent.getName());
4247      return param.toString();      return param.toString();
4248    }    }
4249    

Legend:
Removed from v.1.38.2.15  
changed lines
  Added in v.1.38.2.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26