@Override public void processLowLevelEvent(String name, String... values) { if (name.endsWith("_panel")) { if ("ok".equals(values[0])) okFinalEvents = true; else if ("cancel".equals(values[0])) cancelFinalEvents = true; } else if (name.endsWith("_ed") && editorComponent instanceof LowLevelEventListener) { LowLevelEventListener lowLevelEventListener = (LowLevelEventListener) editorComponent; lowLevelEventListener.processLowLevelEvent(name, values); } SForm.addArmedComponent(this); }
@Override public void processLowLevelEvent(String action, String... values) { processKeyEvents(values); if (action.endsWith("_keystroke")) return; if (isEditing() && action.contains("_e_") && cellEditorComponent != null) { cellEditorComponent.processLowLevelEvent(action, values); } else { if (this.lastReceivedLowLevelEvents == null) { this.lastReceivedLowLevelEvents = values; } else if (values != null && values.length > 0) { // more than one parameter targets the table. collecting parameter values String[] joinedParameters = new String[this.lastReceivedLowLevelEvents.length + values.length]; System.arraycopy(this.lastReceivedLowLevelEvents, 0, joinedParameters, 0, this.lastReceivedLowLevelEvents.length); System.arraycopy(values, 0, joinedParameters, this.lastReceivedLowLevelEvents.length, values.length); this.lastReceivedLowLevelEvents = joinedParameters; } } SForm.addArmedComponent(this); }
gl.getClass() + '(' + gl.getLowLevelEventId() + ')'); gl.processLowLevelEvent(name, values); result = true;