Exemple #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);
  }
Exemple #2
0
 /* (non-Javadoc)
  * @see de.jwic.base.Control#destroy()
  */
 public void destroy() {
   // remove the listener from all actions
   for (Iterator<IAction> it = actionMap.values().iterator(); it.hasNext(); ) {
     IAction action = it.next();
     action.removePropertyChangeListener(actionListener);
   }
   super.destroy();
 }
Exemple #3
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);
 }