/** * 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); }
/* (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(); }
/** * 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); }