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


Java JQueryBehavior类代码示例

本文整理汇总了Java中com.googlecode.wicket.jquery.core.JQueryBehavior的典型用法代码示例。如果您正苦于以下问题:Java JQueryBehavior类的具体用法?Java JQueryBehavior怎么用?Java JQueryBehavior使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("autoOpen", true);
	behavior.setOption("closeOnEscape", false);
	behavior.setOption("classes", "{'ui-dialog-titlebar': 'ui-corner-all no-close'}");
	behavior.setOption("resizable", false);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:9,代码来源:KickMessageDialog.java

示例2: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("closeOnEscape", false);
	behavior.setOption("classes", "{'ui-dialog-titlebar': 'ui-corner-all no-close'}");
	behavior.setOption("resizable", false);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:8,代码来源:InstallWizard.java

示例3: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	Invitation i = WebSession.get().getInvitation();
	behavior.setOption("autoOpen", i != null && i.isPasswordProtected());
	behavior.setOption("resizable", false);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:8,代码来源:InvitationPasswordDialog.java

示例4: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	User u = form.getModelObject();
	boolean visible = isVisible(u);
	if (visible) {
		u.setFirstname(getString("433"));
		u.setLastname(String.format("%s %s", u.getFirstname(), TIME_DF.format(new Date())));
	}
	behavior.setOption("autoOpen", visible);
	behavior.setOption("resizable", false);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:13,代码来源:NicknameDialog.java

示例5: onInitialize

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
protected void onInitialize() {
	super.onInitialize();
	add(captchaText.setLabel(Model.of(getString("captcha.text"))).add(new IValidator<String>() {
		private static final long serialVersionUID = 1L;

		@Override
		public void validate(IValidatable<String> validatable) {
			if (!randomText.equals(validatable.getValue())) {
				validatable.error(new ValidationError(getString("bad.captcha.text")));
			}
		}
	}).setOutputMarkupId(true));
	add(new AjaxLink<String>("refresh") {
		private static final long serialVersionUID = 1L;

		@Override
		public void onClick(AjaxRequestTarget target) {
			captchaImageResource.invalidate();
			target.add(captcha);
		}

		@Override
		public void onConfigure(JQueryBehavior behavior) {
			behavior.setOption("icon", Options.asString(JQueryIcon.REFRESH));
			behavior.setOption("showLabel", false);
		}
	});
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:30,代码来源:Captcha.java

示例6: UserSelectionPanel

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
public UserSelectionPanel(String id, IModel<Project> aProject, IModel<User> aUser)
{
    super(id);
    
    setOutputMarkupId(true);
    
    projectModel = aProject;
    userModel = aUser;

    overviewList = new OverviewListChoice<>("user");
    overviewList.setChoiceRenderer(makeUserChoiceRenderer());
    overviewList.setModel(userModel);
    overviewList.setChoices(LambdaModel.of(this::listUsersWithPermissions));
    overviewList.add(new LambdaAjaxFormComponentUpdatingBehavior("change", this::onChange));
    add(overviewList);
    
    IModel<Collection<User>> usersToAddModel = new CollectionModel<>(new ArrayList<>());
    Form<Collection<User>> form = new Form<>("form", usersToAddModel);
    add(form);
    usersToAdd = new MultiSelect<User>("usersToAdd") {
        private static final long serialVersionUID = 8231304829756188352L;

        @Override
        public void onConfigure(JQueryBehavior aBehavior)
        {
            super.onConfigure(aBehavior);
            aBehavior.setOption("placeholder", Options.asString(getString("placeholder")));
            aBehavior.setOption("filter", Options.asString("contains"));
            aBehavior.setOption("autoClose", false);
        }
    };
    usersToAdd.setModel(usersToAddModel);
    usersToAdd.setChoices(LambdaModel.of(this::listUsersWithoutPermissions));
    usersToAdd.setChoiceRenderer(new ChoiceRenderer<>("username"));
    form.add(usersToAdd);
    form.add(new LambdaAjaxButton<>("add", this::actionAdd));
}
 
开发者ID:webanno,项目名称:webanno,代码行数:38,代码来源:UserSelectionPanel.java

示例7: UserDetailForm

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
public UserDetailForm( String id, final IModel<User> model )
{
    super( id, model );
    editForm = this;
    add( new JQueryBehavior( "#accordion", "accordion" ) );
    addButtons();
    addLabels();
    addDetailFields( model );
    initAccordionLabels();
    addPhoto();
    setOutputMarkupId( true );
}
 
开发者ID:apache,项目名称:directory-fortress-commander,代码行数:13,代码来源:UserDetailPanel.java

示例8: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("autoOpen", true);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:6,代码来源:ResetPasswordDialog.java

示例9: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("autoOpen", true);
	behavior.setOption("resizable", false);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:7,代码来源:SignInDialog.java

示例10: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("classes", "{'ui-dialog': 'ui-corner-all appointment'}");
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:6,代码来源:AppointmentDialog.java

示例11: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("autoOpen", true);
	behavior.setOption("position", "{my: 'right top', at: 'right bottom', of: '.room.menu' }");
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:7,代码来源:EventDetailDialog.java

示例12: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("autoOpen", autoOpen);
	behavior.setOption("resizable", false);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:7,代码来源:RedirectMessageDialog.java

示例13: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("classes", "{'ui-dialog-titlebar': 'ui-corner-all no-close'}");
	behavior.setOption("closeOnEscape", false);
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:7,代码来源:NonClosableMessageDialog.java

示例14: onConfigure

import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
	super.onConfigure(behavior);
	behavior.setOption("closeOnEscape", false);
	behavior.setOption("classes", "{'ui-dialog-titlebar': 'ui-corner-all no-close'}");
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:7,代码来源:NonClosableDialog.java


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