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) |
734 |
*/ |
*/ |
735 |
public boolean isDisplayable() |
public boolean isDisplayable() |
736 |
{ |
{ |
737 |
if (parent != null) |
return peer != null; |
|
return parent.isDisplayable(); |
|
|
return false; |
|
738 |
} |
} |
739 |
|
|
740 |
/** |
/** |
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 |
|
|