equal
deleted
inserted
replaced
521 * Returns true if the component has heavyweight children. |
521 * Returns true if the component has heavyweight children. |
522 * |
522 * |
523 * @param comp component to check for hw children |
523 * @param comp component to check for hw children |
524 * @return true if Component has heavyweight children |
524 * @return true if Component has heavyweight children |
525 */ |
525 */ |
|
526 @SuppressWarnings("deprecation") |
526 private static boolean hasHWChildren(Component comp) { |
527 private static boolean hasHWChildren(Component comp) { |
527 if (comp instanceof Container) { |
528 if (comp instanceof Container) { |
528 for (Component c : ((Container)comp).getComponents()) { |
529 for (Component c : ((Container)comp).getComponents()) { |
529 if (c.getPeer() instanceof WComponentPeer || hasHWChildren(c)) { |
530 if (c.getPeer() instanceof WComponentPeer || hasHWChildren(c)) { |
530 return true; |
531 return true; |