Exemplo n.º 1
0
  public void setInstance(FormInstance instance) {
    if (instance.getFormId() != -1 && getID() != instance.getFormId()) {
      System.err.println(
          "Warning: assigning incompatible instance (type "
              + instance.getFormId()
              + ") to a formdef (type "
              + getID()
              + ")");
    }

    instance.setFormId(getID());
    this.instance = instance;
    attachControlsToInstanceData();
  }