• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Clients类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



Clients类属于org.zkoss.zk.ui.util包,在下文中一共展示了Clients类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
		}
	}
}
 
开发者ID:zkoss,项目名称:zssessentials,代码行数:14,代码来源:AuthorityService.java


示例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;
}
 
开发者ID:zkoss,项目名称:zssessentials,代码行数:13,代码来源:SaveBookHandler.java


示例3: login

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
@Listen("onClick = #loginButton")
public void login()
{
    Clients.showBusy("Connection...");
    String userName = userNameTextBox.getValue();
    String password = passwordTextBox.getValue();
    showNotify(userName + " / " + password);
    DbSession dbSession = DbSessionFactory.produceDbSession(selectedDbConnection, userName, password);
    try 
    {
        dbSession.validate();
        Sessions.getCurrent(true).setAttribute("dbsession", dbSession);
        Executions.sendRedirect("database.zul");
    }
    catch (Exception ex)
    {
        showNotify(ex.getMessage());
    }
    Clients.clearBusy();
}
 
开发者ID:jz2000,项目名称:oracle-db-truancy,代码行数:21,代码来源:WelcomeController.java


示例4: load

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
@Listen("onClick = button[label='Fill with autorefresh']")
public void load(Event e){
	Events.echoEvent("onLoadDataAutoRefresh", ss, null);
	Clients.showBusy("populating");
}
 
开发者ID:zkoss,项目名称:zssessentials,代码行数:6,代码来源:PerformanceComposer.java


示例5: clickMe

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
@Command("clickMe")
public void clickMe() {
    if (!checkPlugin()) {
        return;
    }

    Integer office_id = getSessionOfficeId();
    PrintRecords records = getPrintRecordsByOfficeId(office_id);
    if (records.isInvited()) {
        records.setInvited(false);
        Clients.evalJavaScript("DHTMLSound()");
    }

    for (int i = 1; i < lines.size(); i++) {
        final Str line = lines.get(i);
        line.clear();
        if (i <= records.getRecords().size()) {
            line.labelA = new Label(
                records.getRecords().get(i - 1).customerPrefix + records.getRecords()
                    .get(i - 1).customerNumber);
            line.labelB = new Label(records.getRecords().get(i - 1).point);

            final boolean blink = (
                records.getRecords().get(i - 1).getState() == CustomerState.STATE_INVITED
                    || records.getRecords().get(i - 1).getState()
                    == CustomerState.STATE_INVITED);
            line.labelA.setClass(blink ? "blink_me" : "no_blink");
            line.labelB.setClass(blink ? "blink_me" : "no_blink");

            line.set();
        }
    }

}
 
开发者ID:bcgov,项目名称:sbc-qsystem,代码行数:35,代码来源:QBoard.java


示例6: login

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
private void login() {
    Clients.clearWrongValue(Index.this);
    ZKUtils.notNull(user);
    ZKUtils.notNull(pass);

    if (!authService.login(user.getText(), pass.getText())) {
        Notification.showWarning("Usuario y/o contraseña invália");
        return;
    }

    Executions.getCurrent().sendRedirect("/main.zul");
}
 
开发者ID:odelarosa,项目名称:ZkPortal,代码行数:13,代码来源:Index.java


示例7: 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));
}
 
开发者ID:victorskl,项目名称:vanilla,代码行数:11,代码来源:MembersController.java


示例8: 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));
}
 
开发者ID:zkoss,项目名称:zssessentials,代码行数:14,代码来源:PostImportComposer.java


示例9: showInfo

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
public static void showInfo(String msg){
	Clients.showNotification(msg,"info",null,null,3000,false);
}
 
开发者ID:zkoss,项目名称:zssessentials,代码行数:4,代码来源:ClientUtil.java


示例10: showError

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
public static void showError(String msg){
	Clients.showNotification(msg,"error",null,null,-1,true);
}
 
开发者ID:zkoss,项目名称:zssessentials,代码行数:4,代码来源:ClientUtil.java


示例11: setSelectedFieldMapItem

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
/**
 * @param selectedFieldMapItem
 *            the selectedFieldMapItem to set
 * @throws SearchLibException
 */
public void setSelectedFieldMapItem(
		GenericLink<SourceField, ParserFieldTarget> selectedFieldMapItem)
		throws SearchLibException {
	this.selectedFieldMapItem = selectedFieldMapItem;
	selectedParserField = selectedFieldMapItem.getSource().getUniqueName();
	selectedIndexField = getClient().getSchema().getFieldList()
			.get(selectedFieldMapItem.getTarget().getName());
	captureRegexp = selectedFieldMapItem.getTarget().getCaptureRegexp();
	removeTag = selectedFieldMapItem.getTarget().isRemoveTag();
	reload();
	Clients.resize(component);
}
 
开发者ID:jaeksoft,项目名称:opensearchserver,代码行数:18,代码来源:ParserController.java


示例12: showNotify

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
private void showNotify(String msg)
{
    Clients.showNotification(msg,"info",null,null,1000);
}
 
开发者ID:jz2000,项目名称:oracle-db-truancy,代码行数:5,代码来源:TableController.java


示例13: onFormLoaded

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
@WireEvent(EventType.FORM_LOADED)
public void onFormLoaded() {
	Clients.evalJavaScript(sFormLoadedScript);
}
 
开发者ID:sinnlabs,项目名称:dbvim,代码行数:5,代码来源:ClientScriptManager.java


示例14: onEntryLoaded

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
@WireEvent(EventType.ENTRY_LOADED)
public void onEntryLoaded(Entry e) {
	Clients.evalJavaScript(sEntryLoadedScript);
}
 
开发者ID:sinnlabs,项目名称:dbvim,代码行数:5,代码来源:ClientScriptManager.java


示例15: onChangeFormMode

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
@WireEvent(EventType.CHANGE_FORM_MODE)
public void onChangeFormMode(int mode) {
	Clients.evalJavaScript(sFormModeChangeScript);
}
 
开发者ID:sinnlabs,项目名称:dbvim,代码行数:5,代码来源:ClientScriptManager.java


示例16: showInfoMessage

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
public static void showInfoMessage(String message) {
    Clients.showNotification(message);
}
 
开发者ID:odelarosa,项目名称:ZkPortal,代码行数:4,代码来源:ZKUtils.java


示例17: showErrorMessage

import org.zkoss.zk.ui.util.Clients; //导入依赖的package包/类
public static void showErrorMessage(String message) {
    Clients.showNotification(message, "error", null, null, -1);
}
 
开发者ID:odelarosa,项目名称:ZkPortal,代码行数:4,代码来源:ZKUtils.java


示例18: 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);
}
 
开发者ID:odelarosa,项目名称:ZkPortal,代码行数:7,代码来源:Notification.java


示例19: 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);
}
 
开发者ID:zkoss,项目名称:zssessentials,代码行数:7,代码来源:AuthorityService.java


示例20: 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);
}
 
开发者ID:zkoss,项目名称:zssessentials,代码行数:7,代码来源:MyContextMenuComposer.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CompositePermissionListener类代码示例发布时间:2022-05-22
下一篇:
Java DeviceEvent类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap