示例#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);
   }
 }