Beispiel #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);
    }
  }
Beispiel #2
0
 public static void showChildren(IEntity e) {
   for (int i = 0; i < e.getChildCount(); i++) {
     e.getChildByIndex(i).setVisible(true);
   }
 }
Beispiel #3
0
 public static void hideChildren(IEntity e) {
   for (int i = 0; i < e.getChildCount(); i++) {
     e.getChildByIndex(i).setVisible(false);
   }
 }