本文整理匯總了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");
}