示例#1
0
  // documentation inherited
  protected void wasRemoved() {
    super.wasRemoved();

    // call wasRemoved() on all of our children
    applyOperation(
        new ChildOp() {
          public void apply(BComponent child) {
            child.wasRemoved();
          }
        });
  }
示例#2
0
  // documentation inherited
  protected void wasAdded() {
    super.wasAdded();

    // call wasAdded() on all of our existing children; if they are
    // added later (after we are added), they will automatically have
    // wasAdded() called on them at that time
    applyOperation(
        new ChildOp() {
          public void apply(BComponent child) {
            child.wasAdded();
          }
        });
  }
示例#3
0
  // documentation inherited
  public void validate() {
    if (!_valid) {
      // lay ourselves out
      layout();

      // now validate our children
      applyOperation(
          new ChildOp() {
            public void apply(BComponent child) {
              child.validate();
            }
          });

      // finally mark ourselves as valid
      _valid = true;
    }
  }