当前位置: 首页>>代码示例>>Java>>正文


Java Window类代码示例

本文整理汇总了Java中org.zkoss.zul.Window的典型用法代码示例。如果您正苦于以下问题:Java Window类的具体用法?Java Window怎么用?Java Window使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Window类属于org.zkoss.zul包,在下文中一共展示了Window类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: if

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
  * Click boton editar procedimiento.
  */
 public final void onClick$btnEditaFormulario() {
 	final Map<String, Object> map = new HashMap<String, Object>();
     if (listFormularios.getSelectedIndex() == ConstantesZK.SINSELECCION) {
         mostrarMessageBox(Labels.getLabel("formularioReusable.noSeleccionado"),
                 Labels.getLabel(ConstantesWEB.WARNING), Messagebox.OK,
                 Messagebox.EXCLAMATION);
     } else {
     	// TODO VER TEMA PERMISOS
     	FormularioReusable formulario = (FormularioReusable) ((Listitem) listFormularios.getSelectedItem()
                 .clone()).getValue();
         map.put(ConstantesWEB.PARAM_MODO_ACCESO, TypeModoAcceso.EDICION);            
map.put(ConstantesWEB.PARAMETER_FORMULARIO_REUSABLE, formulario);            
         final Window ventana = (Window) creaComponente(
                 "/gestor/windows/ges-formularioReusable-win.zul", this.self, map);
         abreVentanaModal(ventana);
     }
 }
 
开发者ID:GovernIB,项目名称:sistra,代码行数:21,代码来源:OrganismoController.java

示例2: creaComponente

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
 * Click desbloquear.
 */
public final void onClick$btnExportar() {    	    	
	
	// TODO CONTROLAR CUANDO SE PUEDE EXPORTAR
	if (versionSeleccionada()) {
		final Listitem item = (Listitem) listVersiones.getSelectedItem()
        .clone();
		final TramiteVersion version = (TramiteVersion) item.getValue();
 	 final Map<String, Object> map = new HashMap<String, Object>();
      map.put(ConstantesWEB.PARAMETER_VERSION_TRAMITE, version);
      final Window ventana = (Window) creaComponente(
              "/gestor/windows/ges-exportarVersionTramite-win.zul", this.self,
              map);
      abreVentanaModal(ventana);
	}
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:19,代码来源:TramiteController.java

示例3: editaPago

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
 * Edita pago.
 */
private void editaPago() {
    final Map<String, Object> map = new HashMap<String, Object>();
    
    final Listitem item = (Listitem) listPagos.getItems().get(
            listPagos.getSelectedIndex());
    final Documento pago = (Documento) item
            .getValue();
    map.put(ConstantesWEB.PAGO, pago.getCodigo());
    
 // RAFA: Esto xq es asi?? REvisar modos... 
    if (modo.equals(TypeModoAcceso.ALTA)) {
        map.put(ConstantesWEB.PARAM_MODO_ACCESO, TypeModoAcceso.EDICION);
    } else {
        map.put(ConstantesWEB.PARAM_MODO_ACCESO, modo);
    }
    
   // RAFA: Esto xq es asi?? 
    map.put(ConstantesWEB.PADRE,
                Path.getComponent("/priWindow/contenedorPrincipal/verTramWindow/detalle/wPagarTasas"));
    
    final Window ventana = (Window) creaComponente(
            ConstantesWEB.ZUL_PAGO, null, map);
    
    abreVentanaModal(ventana);
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:29,代码来源:PasoPagarWModal.java

示例4: editaAnexo

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
 * Edita documento.
 */
private void editaAnexo() {
    final Map<String, Object> map = new HashMap<String, Object>();
    
    final Listitem item = (Listitem) listAnexos.getItems().get(
            listAnexos.getSelectedIndex());
    final Documento documento = (Documento) item
            .getValue();
    map.put(ConstantesWEB.ANEXO, documento.getCodigo());
    
 // RAFA: Esto xq es asi?? REvisar modos... 
    if (modo == TypeModoAcceso.ALTA) {
        map.put(ConstantesWEB.PARAM_MODO_ACCESO, TypeModoAcceso.EDICION);
    } else {
        map.put(ConstantesWEB.PARAM_MODO_ACCESO, modo);
    }
    
   // RAFA: Esto xq es asi?? 
    map.put(ConstantesWEB.PADRE,
                Path.getComponent("/priWindow/contenedorPrincipal/verTramWindow/detalle/wAnexarDocumentos"));
    
    final Window ventana = (Window) creaComponente(
            ConstantesWEB.ZUL_ANEXO, null, map);
    
    abreVentanaModal(ventana);
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:29,代码来源:PasoAnexarWModal.java

示例5: if

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
  * Click boton editar error.
  */
 public final void onClick$btnEditaError() {
 	final Map<String, Object> map = new HashMap<String, Object>();
     if (listErrores.getSelectedIndex() == ConstantesZK.SINSELECCION) {
         mostrarMessageBox(Labels.getLabel("alertaPlataforma.noSeleccionado"),
                 Labels.getLabel(ConstantesWEB.WARNING), Messagebox.OK,
                 Messagebox.EXCLAMATION);
     } else {
     	// TODO VER TEMA PERMISOS
     	AlertaPlataforma error = (AlertaPlataforma) ((Listitem) listErrores.getSelectedItem()
                 .clone()).getValue();
         map.put(ConstantesWEB.PARAM_MODO_ACCESO, TypeModoAcceso.EDICION);            
map.put(ConstantesWEB.ERROR_PLATAFORMA, error);            
         final Window ventana = (Window) creaComponente(
                 "/configuracion/windows/con-alertaPlataforma-win.zul", this.self, map);
         abreVentanaModal(ventana);
     }
 }
 
开发者ID:GovernIB,项目名称:sistra,代码行数:21,代码来源:ConfiguracionController.java

示例6: render

import org.zkoss.zul.Window; //导入依赖的package包/类
@Override
public void render(Row row, final Cost cost, int index) throws Exception {
	row.appendChild(new Label(cost.getDescription()));
	row.appendChild(new Label(DateHelper.getDate(cost.getDate())));
	row.appendChild(new Label(AmountHelper.formatDecimal(cost.getAmount())));
	row.appendChild(new Label(AmountHelper.formatDecimal(cost.getVat())));
	row.appendChild(new Label(cost.getCostType().getOmschrijving()));
	row.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
		public void onEvent(Event event) throws Exception {
			Map<String, Object> arguments = new HashMap<>();
			arguments.put("cost", cost);
			String template = "edit-cost.zul";
			Window window = (Window) Executions.createComponents(template, null, arguments);
			window.doModal();
		}
	});

}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:19,代码来源:CostRowRenderer.java

示例7: onDoubleClicked

import org.zkoss.zul.Window; //导入依赖的package包/类
@Command
public void onDoubleClicked() {
	Map<String, Object> arguments = new HashMap<>();
	arguments.put("cost", selected);
	String template = "edit-cost.zul";
	Window window = (Window) Executions.createComponents(template, null, arguments);
	window.doModal();
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:9,代码来源:AllCostsVM.java

示例8: showError

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 */
private void showError(String errorCode) {
    Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(ShutdownController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:ShutdownController.java

示例9: showError

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
 * Displays an error window for the error code provided.
 * @param errorCode error code for the message to be displayed.
 * @param exception exception to log
 */
private void showError(String errorCode, Exception exception) {
    if (exception != null) {
        Logger.getLogger(FileController.class.getName()).log(Level.SEVERE, "ERROR DISPATCHING JOB", exception);
    }
    Window errorWindow = (Window) this.getParent().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(FileController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:19,代码来源:FileController.java

示例10: explainScore

import org.zkoss.zul.Window; //导入依赖的package包/类
@Command
public void explainScore(@BindingParam("document") Document document)
		throws SearchLibException, InterruptedException, IOException,
		ParseException, SyntaxError {
	Client client = getClient();
	if (client == null)
		return;
	ResultDocumentsInterface<?> result = getResultDocuments();
	if (result == null)
		return;
	int docId = document.getDocId();
	String explanation = client.explain(result.getRequest(), docId, true);
	Window win = (Window) Executions.createComponents(
			"/WEB-INF/zul/query/result/explanation.zul", null, null);
	Html html = (Html) win.getFellow("htmlExplain", true);
	html.setContent(explanation);
	win.doModal();
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:19,代码来源:ResultDocumentController.java

示例11: doAfterCompose

import org.zkoss.zul.Window; //导入依赖的package包/类
@Override
public void doAfterCompose(Window comp) throws Exception {
	super.doAfterCompose(comp);
	binder = new AnnotateDataBinder(comp);
	Game g = (Game) arg.get("game");
	
	Tournament t = (Tournament) session.getAttribute("tournament");
	for(Player p : t.players){
		player1Combobox.appendItem(p.nickname);
		player2Combobox.appendItem(p.nickname);
	}
	
	setImages(g);
	
	page.setAttribute("game", g);
	binder.loadAll();
}
 
开发者ID:Meijinfr,项目名称:Run4WinTournamentManager,代码行数:18,代码来源:AddSingleResultComposer.java

示例12: onEditPlayer

import org.zkoss.zul.Window; //导入依赖的package包/类
public void onEditPlayer(Event e){
	Player oldPlayer = (Player) e.getData();
	
	
	if(Executions.getCurrent().getBrowser("mobile") !=null || Executions.getCurrent().getUserAgent().indexOf("Phone")!=-1){
		execution.setAttribute("oldPlayer", oldPlayer);
		Executions.sendRedirect("/pages/add_player_mobile.zul");
	} else {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("oldPlayer", oldPlayer);
		Window window = (Window) Executions.createComponents("add_player.zul", null, map);
		window.doModal();
	}

	onPlayerChange();
	page.removeAttribute("oldPlayer");
}
 
开发者ID:Meijinfr,项目名称:Run4WinTournamentManager,代码行数:18,代码来源:IndexComposer.java

示例13: creaComponente

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
 * M�todo para On click$item configuracion de la clase
 * PaginaPrincipalController.
 * 
 */
public final void onClick$itemConfiguracion() {
    final Window ventana = (Window) creaComponente(
            "/configuracion/conf-configuracion.zul", this.self,
            null);
    abreVentanaModal(ventana);
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:12,代码来源:PaginaPrincipalController.java

示例14: creaComponente

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
 * Boton nuevo tramite: abre ventana nuevo tramite.
 * 
 */
public final void onClick$btnNuevoTramite() {
	if (modo == TypeModoAcceso.EDICION) {
 	final Map<String, Object> map = new HashMap<String, Object>();
     map.put(ConstantesWEB.PARAM_MODO_ACCESO, TypeModoAcceso.ALTA);
     final Window ventana = (Window) creaComponente(
             "/gestor/windows/ges-organismos-tramite-win.zul", this.self,
             map);
     abreVentanaModal(ventana);
	}
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:15,代码来源:OrganismoController.java

示例15: obtenerOrganismo

import org.zkoss.zul.Window; //导入依赖的package包/类
/**
   * Click boton nuevo dominio.
   */
  public final void onClick$btnNuevoDominio() {
  	final Map<String, Object> map = new HashMap<String, Object>();
      map.put(ConstantesWEB.PARAM_MODO_ACCESO, TypeModoAcceso.ALTA);            
map.put(ConstantesWEB.PARAM_OBJETO_PADRE, obtenerOrganismo(usuarioLogado.getOrganismo()));
      final Window ventana = (Window) creaComponente(
              "/gestor/windows/ges-dominio-win.zul", this.self, map);
      abreVentanaModal(ventana);        
  }
 
开发者ID:GovernIB,项目名称:sistra,代码行数:12,代码来源:OrganismoController.java


注:本文中的org.zkoss.zul.Window类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。