org.zkoss.bind.GlobalCommandEvent Maven / Gradle / Ivy
The newest version!
/* GlobalCommandEvent.java
Purpose:
Description:
History:
2012/1/31 Created by Dennis Chen
Copyright (C) 2011 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.bind;
import java.util.Map;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
/**
* The global-command event
* @author dennis
* @since 6.0.1
*/
public class GlobalCommandEvent extends Event {
private static final long serialVersionUID = 201109091736L;
String _command;
Map _args;
Event _evt;
public GlobalCommandEvent(Component comp, String command, Map args) {
this(comp, command, args, null);
}
public GlobalCommandEvent(Component comp, String command, Map args, Event evt) {
super("onGlobalCommand", comp);
this._command = command;
this._args = args;
this._evt = evt;
}
/**
* Gets the global command name
*/
public String getCommand() {
return _command;
}
/**
* Gets the global-command args.
*/
public Map getArgs() {
return _args;
}
/**
* Gets the trigger event.
* @since 9.6.4
*/
public Event getTriggerEvent() {
return _evt;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy