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


Java Window.doModal方法代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: abreVentanaModal

import org.zkoss.zul.Window; //导入方法依赖的package包/类
/**
 * M�todo para Abre ventana modal de la clase SimacCommonUtils.
 * 
 * @param ventana
 *            Par�metro ventana
 */
public static void abreVentanaModal(final Window ventana) {
    try {
        ventana.doModal();
    } catch (final SuspendNotAllowedException ex) {
        throw new ShowMessageException(
                "Ha ocurrido un error(ShowMessage) en abriendo la ventana modal",
                ex);
    }
}
 
开发者ID:GovernIB,项目名称:sistra,代码行数:16,代码来源:SimacCommonUtils.java

示例7: editUser

import org.zkoss.zul.Window; //导入方法依赖的package包/类
@Command
public void editUser() {
	if (!isGuestUser()) {
		String template = "~./saas/edit-user.zul";
		Window window = (Window) Executions.createComponents(template, null, null);
		window.doModal();
	}
}
 
开发者ID:beemsoft,项目名称:techytax-zk,代码行数:9,代码来源:LoginModel.java

示例8: addNew

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

示例9: onDoubleClicked

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

示例10: onDoubleClicked

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

示例11: onDoubleClicked

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

示例12: 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 be logged
 * @param row row where the exception occured
 */
private void showError(Row row, Exception exception, String errorCode) {
    if (exception != null) {
        Logger.getLogger(DestroyGridRenderer.class.getName()).log(Level.SEVERE, "ERROR DESTROYING OR RESURRECTING INSTANCE", exception);
    }
    Window errorWindow = (Window) row.getGrid().getFellow("errorWindow");
    Label errorMessage = (Label) errorWindow.getFellow("errorMessage");
    errorMessage.setValue(Labels.getLabel(errorCode));
    try {
        errorWindow.doModal();
    } catch (SuspendNotAllowedException ex) {
        Logger.getLogger(DestroyGridRenderer.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:20,代码来源:DestroyGridRenderer.java

示例13: 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(RescueController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:RescueController.java

示例14: 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(DestroyController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:DestroyController.java

示例15: 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(UpgradeController.class.getName()).log(Level.SEVERE, "ERROR SHOWING ERROR WINDOW", ex);
    }
}
 
开发者ID:cerndb,项目名称:dbod-webapp,代码行数:15,代码来源:UpgradeController.java


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