本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
});
}
示例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));
}
示例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 );
}
示例8: onConfigure
import com.googlecode.wicket.jquery.core.JQueryBehavior; //导入依赖的package包/类
@Override
public void onConfigure(JQueryBehavior behavior) {
super.onConfigure(behavior);
behavior.setOption("autoOpen", true);
}
示例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);
}
示例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'}");
}
示例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' }");
}
示例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);
}
示例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);
}
示例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'}");
}