本文整理汇总了Java中de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapButton类的典型用法代码示例。如果您正苦于以下问题:Java BootstrapButton类的具体用法?Java BootstrapButton怎么用?Java BootstrapButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BootstrapButton类属于de.agilecoders.wicket.core.markup.html.bootstrap.button包,在下文中一共展示了BootstrapButton类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: UserProfile
import de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapButton; //导入依赖的package包/类
private Form<Void> UserProfile() {
final TextField name = new TextField("name", Model.of("Joe Blogs"));
final EmailTextField email = new EmailTextField("email", Model.of("[email protected]"));
Form<Void> form = new BootstrapForm<Void>("form");
form.add(new FormBehavior().type(FormType.Horizontal));
FormGroup formGroupInfo = new FormGroup("formGroupInfo", Model.of("Name"));
formGroupInfo.add(name);
formGroupInfo.add(email);
form.add(formGroupInfo);
FormGroup formGroupEmail = new FormGroup("formGroupEmail", Model.of("Email Address"));
formGroupEmail.add(email);
form.add(formGroupEmail);
FormGroup formGrouButton = new FormGroup("formGroupButton");
BootstrapButton submitButton = new BootstrapButton("submit-button", Buttons.Type.Default);
submitButton.setLabel(Model.of("Submit"));
formGrouButton.add(submitButton);
form.add(formGrouButton);
return form;
}
示例2: addChangePassword
import de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapButton; //导入依赖的package包/类
private Form<Void> addChangePassword() {
final PasswordTextField password = new PasswordTextField("password");
final PasswordTextField confirmPassword = new PasswordTextField("confirmPassword");
form = new BootstrapForm<Void>("form");
form.add(new FormBehavior().type(FormType.Horizontal));
form.setOutputMarkupId(true);
form.setOutputMarkupPlaceholderTag(true);
FormGroup formGroupPassword = new FormGroup("formGroupPassword", Model.of("Password"));
formGroupPassword.add(password);
form.add(formGroupPassword);
FormGroup formGroupConfirmPassword = new FormGroup("formGroupConfirmPassword", Model.of("Confirm Password"));
formGroupConfirmPassword.add(confirmPassword);
form.add(formGroupConfirmPassword);
FormGroup formGrouButton = new FormGroup("formGroupButton");
BootstrapButton submitButton = new BootstrapButton("submit-button", Buttons.Type.Default);
submitButton.setLabel(Model.of("Submit"));
formGrouButton.add(submitButton);
form.add(formGrouButton);
return form;
}