Ejemplo n.º 1
0
  private void cleanup(boolean initiator) {
    cleanedUp = true;

    active = false;

    if (children != null) {
      for (UIContainer c : children) {
        c.cleanup(false);
      }
      children.clear(); // Set to null later as it is checked in removeFromParent()
    }
    if (initiator) {
      removeFromParent();
    }
    if (displayNode != null) {
      displayNode.detachAllChildren();
      displayNode = null;
    }

    name = null;
    children = null;
    parentContainer = null;
    targetEventQueue = null;
    onClickEventType = null;
    blX = 0;
    blY = 0;
    proportionalPosition = false;
    percentageX = 0;
    percentageY = 0;
    width = 0;
    height = 0;
    zPos = 0;
    hovered = false;
  }