示例#1
0
  /**
   * Simulate the update of a field. You must call updateDone() after all fields of the controls
   * have been set to invoke pending listeners.
   *
   * @param control
   * @param fieldName
   * @param value
   */
  protected void updateField(Control control, String fieldName, String value[]) {

    if (queue == null) {
      queue = new ValueChangedQueue();
    }
    ac.handleField(sc, queue, "fld_" + control.getControlID() + "." + fieldName, value);
  }
示例#2
0
 /**
  * Simulates a fireAction on the specified control.
  *
  * @param control
  * @param action
  * @param param
  */
 protected void sendAction(Control control, String action, String param) {
   if (queue != null) {
     throw new IllegalStateException("A queue is still open! Must call updateDone() first");
   }
   ac.handleAction(sc, control.getControlID(), action, param);
 }