Пример #1
0
  public static void setChildrenVisible(IEntity e, boolean pVisible) {
    for (int i = 0; i < e.getChildCount(); i++) {
      IEntity child = e.getChildByIndex(i);

      if (child.getChildCount() > 0) {
        setChildrenVisible(child, pVisible);
      }

      child.setVisible(pVisible);
    }
  }
Пример #2
0
 public static void showChildren(IEntity e) {
   for (int i = 0; i < e.getChildCount(); i++) {
     e.getChildByIndex(i).setVisible(true);
   }
 }
Пример #3
0
 public static void hideChildren(IEntity e) {
   for (int i = 0; i < e.getChildCount(); i++) {
     e.getChildByIndex(i).setVisible(false);
   }
 }