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


Java Messagebox.ERROR属性代码示例

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


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

示例1: onSave

@Command
@NotifyChange("*")
public void onSave() throws InterruptedException, SearchLibException {
	try {
		validUser();
	} catch (SearchLibException e) {
		new AlertController(e.getMessage(), Messagebox.OK, Messagebox.ERROR);
		return;
	}
	if (selectedUserName != null)
		user.copyTo(ClientCatalog.getUserList().get(selectedUserName));
	else
		ClientCatalog.getUserList().add(user);
	ClientCatalog.saveUserList();
	flushPrivileges(user);
	onCancel();
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:17,代码来源:PrivilegesController.java

示例2: onAdd

@Command
@NotifyChange("*")
public void onAdd() throws IOException, SearchLibException,
		InterruptedException {
	Client client = getClient();
	if (client == null)
		return;
	AbstractDirectoryManager<?> manager = getManager();
	if (manager == null)
		return;
	if (editName == null || editName.length() == 0) {
		new AlertController("Please enter a valid name", Messagebox.ERROR);
		return;
	}
	if (manager.exists(editName)) {
		new AlertController("This name already exists", Messagebox.ERROR);
		return;
	}
	currentName = editName;
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:20,代码来源:CommonDirectoryController.java

示例3: onSave

@Command
public void onSave() throws InterruptedException, SearchLibException {
	if (!isSchemaRights())
		throw new SearchLibException("Not allowed");
	try {
		field.valid();
	} catch (SearchLibException e) {
		new AlertController(e.getMessage(), Messagebox.OK, Messagebox.ERROR);
		return;
	}
	Client client = getClient();
	Schema schema = client.getSchema();
	if (selectedField != null)
		selectedField.copyFrom(field);
	else
		schema.getFieldList().put(field);
	field = new SchemaField();
	selectedField = null;
	client.saveConfig();
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:20,代码来源:FieldsController.java

示例4: checkNotRunning

private boolean checkNotRunning() throws InterruptedException {
	if (!isCrawlRunning())
		return true;
	new AlertController("A crawl is already running", Messagebox.ERROR);
	return false;
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:6,代码来源:ManualWebCrawlController.java

示例5: checkCrawlCacheEnabled

private boolean checkCrawlCacheEnabled() throws InterruptedException, SearchLibException {
	if (isCrawlCache())
		return true;
	new AlertController("The crawl cache is disabled", Messagebox.ERROR);
	return false;
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:6,代码来源:ManualWebCrawlController.java


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