本文整理汇总了Java中org.zkoss.zk.ui.util.Clients.showNotification方法的典型用法代码示例。如果您正苦于以下问题:Java Clients.showNotification方法的具体用法?Java Clients.showNotification怎么用?Java Clients.showNotification使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.zkoss.zk.ui.util.Clients
的用法示例。
在下文中一共展示了Clients.showNotification方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkProtection
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
/**
* Some roles has edit permission, a sheet protection conflicts it, so show a warning.
* @param ss
*/
public static void checkProtection(Spreadsheet ss) {
for (int i=0 ; i < ss.getBook().getNumberOfSheets() ; i++){
Sheet sheet = ss.getBook().getSheetAt(i);
if (Ranges.range(sheet).isProtected()){
Clients.showNotification("Sheet "+sheet.getSheetName()+" is protected", Clients.NOTIFICATION_TYPE_WARNING, null,
"middle_center", 500);
}
}
}
示例2: process
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
@Override
public boolean process(UserActionContext ctx){
try{
Book book = ctx.getBook();
save(book);
Clients.showNotification("saved "+book.getBookName(),"info",null,null,2000,true);
}catch(Exception e){
e.printStackTrace();
}
return true;
}
示例3: doAfterCompose
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
getPage().setTitle("Member List");
Clients.showNotification("Welcome to V3 Enterprise Member Registration System!");
List<Member> members = registrationService.getAllMembers();
memberListbox.setModel(new ListModelList<>(members));
}
示例4: doAfterCompose
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
long start = System.currentTimeMillis();
if (isPostImported()){
loadWithPostImporting();
}else{
loadDirectly();
}
long end = System.currentTimeMillis();
postImportingBox.setChecked(isPostImported());
Clients.showNotification("consumed (ms):"+(end-start));
}
示例5: showInfo
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
public static void showInfo(String msg){
Clients.showNotification(msg,"info",null,null,3000,false);
}
示例6: showError
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
public static void showError(String msg){
Clients.showNotification(msg,"error",null,null,-1,true);
}
示例7: showNotify
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
private void showNotify(String msg)
{
Clients.showNotification(msg,"info",null,null,1000);
}
示例8: showInfoMessage
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
public static void showInfoMessage(String message) {
Clients.showNotification(message);
}
示例9: showErrorMessage
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
public static void showErrorMessage(String message) {
Clients.showNotification(message, "error", null, null, -1);
}
示例10: show
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
/**
* Mostrar mensaje según la configuación
*/
public void show() {
Clients.showNotification(msg, type, ref, position, duration);
}
示例11: onEvent
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
@Override
public void onEvent(StartEditingEvent event) throws Exception {
event.cancel();
Clients.showNotification("It's read-only", Clients.NOTIFICATION_TYPE_WARNING, null,
"middle_center", 500);
}
示例12: display
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
@Listen("onClick = #display")
public void display(MouseEvent event) {
CellMouseEvent cellMouseEvent = (CellMouseEvent)myContext.getAttribute("event");
String message = "Selection: " + ((Spreadsheet)cellMouseEvent.getTarget()).getSelection().asString();
Clients.showNotification(message);
}
示例13: showWarn
import org.zkoss.zk.ui.util.Clients; //导入方法依赖的package包/类
public static void showWarn(String msg){
Clients.showNotification(msg,"warn",null,null,3000,false);
}