Search in sources :

Example 1 with ActionEvent

use of org.adempiere.webui.event.ActionEvent in project adempiere by adempiere.

the class WButtonEditor method onEvent.

public void onEvent(Event event) throws Exception {
    if (Events.ON_CLICK.equals(event.getName())) {
        ActionEvent actionEvent = new ActionEvent(this, getColumnName(), Events.ON_CLICK);
        ActionListener[] listeners = new ActionListener[0];
        listeners = actionListeners.toArray(listeners);
        for (ActionListener evtListener : listeners) {
            evtListener.actionPerformed(actionEvent);
        }
    }
}
Also used : ActionListener(org.adempiere.webui.event.ActionListener) ActionEvent(org.adempiere.webui.event.ActionEvent)

Aggregations

ActionEvent (org.adempiere.webui.event.ActionEvent)1 ActionListener (org.adempiere.webui.event.ActionListener)1