本文整理汇总了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();
}
示例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;
}
示例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();
}
示例4: checkNotRunning
private boolean checkNotRunning() throws InterruptedException {
if (!isCrawlRunning())
return true;
new AlertController("A crawl is already running", Messagebox.ERROR);
return false;
}
示例5: checkCrawlCacheEnabled
private boolean checkCrawlCacheEnabled() throws InterruptedException, SearchLibException {
if (isCrawlCache())
return true;
new AlertController("The crawl cache is disabled", Messagebox.ERROR);
return false;
}