當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。