本文整理汇总了Java中org.zkoss.zk.ui.event.ForwardEvent类的典型用法代码示例。如果您正苦于以下问题:Java ForwardEvent类的具体用法?Java ForwardEvent怎么用?Java ForwardEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ForwardEvent类属于org.zkoss.zk.ui.event包,在下文中一共展示了ForwardEvent类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mappingEvent
import org.zkoss.zk.ui.event.ForwardEvent; //导入依赖的package包/类
/**
* Este método es el encargado de mapear la notificación relizada por el servidor
* para su despacho por el método correspondiente.
*
* @param object clase que implemta el listener
* @param evt evento
*
* @throws Exception
*/
public static void mappingEvent(Object object, Event evt) throws Exception {
final Object controller = object;
final Method mtd = ComponentsCtrl.getEventMethod(controller.getClass(), evt.getName());
if (mtd != null) {
if (mtd.getParameterTypes().length == 0) {
mtd.invoke(controller, null);
} else if (evt instanceof ForwardEvent) {
final Class paramcls = (Class) mtd.getParameterTypes()[0];
if (ForwardEvent.class.isAssignableFrom(paramcls)
|| Event.class.equals(paramcls)) {
mtd.invoke(controller, new Object[]{evt});
} else {
do {
evt = ((ForwardEvent) evt).getOrigin();
} while (evt instanceof ForwardEvent);
mtd.invoke(controller, new Object[]{evt});
}
} else {
mtd.invoke(controller, new Object[]{evt});
}
}
}
示例2: if
import org.zkoss.zk.ui.event.ForwardEvent; //导入依赖的package包/类
/**
* M�todo para On click$castellano de la clase PaginaPrincipalController.
*
* @param e
* Par�metro e
*/
public final void onClick$castellano(final Event e) {
final Event ev = ((ForwardEvent) e).getOrigin();
if (!(ev.getTarget() instanceof Span)) {
changeIdioma("es_ES");
}
}
示例3: mostrarPropiedadesElemento
import org.zkoss.zk.ui.event.ForwardEvent; //导入依赖的package包/类
/**
* Seleccion elemento en iframe.
*
* @param event
* Par�metro event
*/
public final void onSelect$iframeContenedorHTML(final Event event) {
final Event origin = ((ForwardEvent) event).getOrigin();
final String id = (String) origin.getData();
mostrarPropiedadesElemento(id) ;
}
示例4: onCellClicked
import org.zkoss.zk.ui.event.ForwardEvent; //导入依赖的package包/类
public void onCellClicked (ForwardEvent event) {
MouseEvent mouseEvent = (MouseEvent) event.getOrigin();
Listcell target = (Listcell) mouseEvent.getTarget();
Executions.getCurrent().sendRedirect("zul/"+target.getLabel().toLowerCase()+".zul");
}