本文整理匯總了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;
}