本文整理汇总了Java中org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink类的典型用法代码示例。如果您正苦于以下问题:Java AjaxSubmitLink类的具体用法?Java AjaxSubmitLink怎么用?Java AjaxSubmitLink使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AjaxSubmitLink类属于org.apache.wicket.ajax.markup.html.form包,在下文中一共展示了AjaxSubmitLink类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: addUrlForm
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
private void addUrlForm() {
urlForm = new Form<SeedUrl>("urlForm", CompoundPropertyModel.of(Model
.of(new SeedUrl())));
urlForm.setOutputMarkupId(true);
urlForm.add(new TextField<String>("url"));
urlForm.add(new AjaxSubmitLink("addUrl", urlForm) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
addSeedUrl();
urlForm.setModelObject(new SeedUrl());
target.add(urlForm);
target.add(seedUrlsTable);
}
});
add(urlForm);
}
开发者ID:jorcox,项目名称:GeoCrawler,代码行数:17,代码来源:SeedPage.java
示例2: initLayout
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
protected void initLayout(NonEmptyModel<Boolean> readOnlyModel) {
TextArea<String> description = new TextArea<>(ID_DESCRIPTION,
new PropertyModel<String>(getModel(), SearchFilterType.F_DESCRIPTION.getLocalPart()));
description.add(WebComponentUtil.enabledIfFalse(readOnlyModel));
add(description);
AceEditor clause = new AceEditor(ID_FILTER_CLAUSE, clauseStringModel);
clause.add(WebComponentUtil.enabledIfFalse(readOnlyModel));
add(clause);
AjaxSubmitLink update = new AjaxSubmitLink(ID_BUTTON_UPDATE) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
updateClausePerformed(target);
}
};
update.add(WebComponentUtil.visibleIfFalse(readOnlyModel));
add(update);
Label clauseTooltip = new Label(ID_T_CLAUSE);
clauseTooltip.add(new InfoTooltipBehavior());
add(clauseTooltip);
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:26,代码来源:SearchFilterPanel.java
示例3: getSaveLink
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
private AjaxSubmitLink getSaveLink() {
return new AjaxSubmitLink("save") {
@Override
public void onSubmit(AjaxRequestTarget target, Form form) {
Analysis analysis = AnalysisPanel.this.getModel().getObject();
analysisService.modifyAnalysis(analysis);
getSession().getFeedbackMessages().add(new FeedbackMessage(null, new StringResourceModel("Analysis.saved", null, new Object[] {analysis.getName()}).getString(), JGrowlAjaxBehavior.INFO_FADE));
setResponsePage(HomePage.class);
}
@Override
public boolean isVisible() {
if (dataProvider.isEmpty()) {
return false;
}
if (!SecurityUtil.hasPermission(securityService, PermissionUtil.getWrite(), getModelObject().getId())) {
return false;
}
return true;
}
};
}
开发者ID:nextreports,项目名称:nextreports-server,代码行数:25,代码来源:AnalysisPanel.java
示例4: onInitialize
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
@Override
protected void onInitialize() {
super.onInitialize();
Form form1 = new Form("form1") {
@Override
protected void onSubmit() {
success("Success");
Session.get().invalidateNow();
}
};
form1.add(new FeedbackPanel("feedback", new ComponentFeedbackMessageFilter(form1)));
add(form1);
WebMarkupContainer c = new WebMarkupContainer("cont");
c.setOutputMarkupId(true);
Form form2 = new Form("form2");
form2.add(new FeedbackPanel("feedback", new ComponentFeedbackMessageFilter(form2)));
form2.add(new AjaxSubmitLink("submit") {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
super.onSubmit(target, form);
form.success("Ajax success");
target.add(form2);
}
});
c.add(form2);
add(c);
}
开发者ID:merzlikinvs,项目名称:cas-playground,代码行数:28,代码来源:ExamplePage.java
示例5: newShareToSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
private AjaxSubmitLink newShareToSelectedButton(
final CheckGroup<User> userGroup) {
AjaxSubmitLink submitLink = new AjaxSubmitLink("shareToSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one user is selected
if (userGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
/**
*
*/
private static final long serialVersionUID = -3259529293647254883L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
shareConfirmationModal.appendShowDialogJavaScript(target);
}
};
submitLink.setOutputMarkupId(true);
return submitLink;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:37,代码来源:DashboardSharePage.java
示例6: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @param productGroup
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<Product> productGroup) {
return new AjaxSubmitLink("deleteSelected") {
private static final long serialVersionUID = 1162060284069587067L;
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one Product is selected
if (productGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = 5588027455196328830L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:37,代码来源:ProductManagementPage.java
示例7: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<Team> teamGroup) {
AjaxSubmitLink submitLink = new AjaxSubmitLink("deleteSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one user is selected
if (teamGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = 5588027455196328830L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
submitLink.setOutputMarkupId(true);
return submitLink;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:33,代码来源:TeamListPage.java
示例8: addteamButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
private AjaxSubmitLink addteamButton(
final CheckGroup<Team> teamGroup) {
AjaxSubmitLink submitLink = new AjaxSubmitLink("addSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one user is selected
if (!teamGroup.getModelObject().isEmpty() && project.getId() != null) {
setEnabled(true);
} else {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = 5588027455196328830L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
addConfirmationModal.appendShowDialogJavaScript(target);
}
};
submitLink.setOutputMarkupId(true);
return submitLink;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:37,代码来源:TeamListPage.java
示例9: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<TeamMembership> teamGroup) {
AjaxSubmitLink submitLink = new AjaxSubmitLink("deleteSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
if (teamGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
target.add(deleteConfirmationModal);
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
submitLink.setOutputMarkupId(true);
return submitLink;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:30,代码来源:TeamEditPage.java
示例10: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<User> userGroup) {
AjaxSubmitLink submitLink = new AjaxSubmitLink("deleteSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one user is selected
if (userGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = 5588027455196328830L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
submitLink.setOutputMarkupId(true);
return submitLink;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:33,代码来源:UserListPage.java
示例11: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(final CheckGroup<PlatformSettings> adapterGroup) {
return new AjaxSubmitLink("deleteSelected") {
private static final long serialVersionUID = 1162060284069587067L;
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one Product is selected
if (adapterGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = 5588027455196328830L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:35,代码来源:PlatformSettingsPage.java
示例12: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<Company> companyGroup) {
AjaxSubmitLink submitLink = new AjaxSubmitLink("deleteSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one user is selected
if (companyGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = 5588027455196328830L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
submitLink.setOutputMarkupId(true);
return submitLink;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:33,代码来源:CompanyListPage.java
示例13: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<AbstractHistoricValues> cubesGroup) {
return new AjaxSubmitLink("deleteSelected") {
private static final long serialVersionUID = 1526806233323350647L;
@Override
protected void onConfigure() {
super.onConfigure();
if (cubesGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = -120425807017807645L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:37,代码来源:HistoricProjectPage.java
示例14: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<AdapterSettings> adapterGroup) {
return new AjaxSubmitLink("deleteSelected") {
private static final long serialVersionUID = 1162060284069587067L;
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one adapter is selected
if (adapterGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = 5588027455196328830L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:36,代码来源:AdapterManagementPage.java
示例15: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<GitlabMetricMeasurement> gitlabGroup) {
return new AjaxSubmitLink("deleteSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one Product is selected
if (gitlabGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:34,代码来源:GitlabDataManagementPage.java
示例16: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<JiraMetricMeasurement> jiraGroup) {
return new AjaxSubmitLink("deleteSelected") {
/**
*
*/
private static final long serialVersionUID = 9197693153498795398L;
@Override
protected void onConfigure() {
super.onConfigure();
if (jiraGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
/**
*
*/
private static final long serialVersionUID = -5695023994382480066L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:43,代码来源:IssueTrackerDataManagementPage.java
示例17: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<TestLinkMetricMeasurement> testLinkGroup) {
return new AjaxSubmitLink("deleteSelected") {
/**
*
*/
private static final long serialVersionUID = -4270515963704165962L;
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one Product is selected
if (testLinkGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
/**
*
*/
private static final long serialVersionUID = -8256802348283900139L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:44,代码来源:TestFrameworkDataManagementPage.java
示例18: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<JenkinsMetricMeasurement> jenkinsGroup) {
return new AjaxSubmitLink("deleteSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one Product is selected
if (jenkinsGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:34,代码来源:JenkinsDataManagementPage.java
示例19: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<CubesMetricMeasurement> cubesGroup) {
return new AjaxSubmitLink("deleteSelected") {
private static final long serialVersionUID = 1526806233323350647L;
@Override
protected void onConfigure() {
super.onConfigure();
if (cubesGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
private static final long serialVersionUID = -120425807017807645L;
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:37,代码来源:CubeAnalysisDataManagementPage.java
示例20: newDeleteSelectedButton
import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink; //导入依赖的package包/类
/**
*
* @return
*/
private AjaxSubmitLink newDeleteSelectedButton(
final CheckGroup<SonarMetricMeasurement> sonarGroup) {
return new AjaxSubmitLink("deleteSelected") {
@Override
protected void onConfigure() {
super.onConfigure();
// only enabled if at least one Product is selected
if (sonarGroup.getModelObject().isEmpty()) {
add(new CssClassNameAppender(Model.of("disabled")) {
// remove css class when component is rendered again
@Override
public boolean isTemporary(Component component) {
return true;
}
});
setEnabled(false);
} else {
setEnabled(true);
}
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
deleteConfirmationModal.appendShowDialogJavaScript(target);
}
};
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:34,代码来源:StaticAnalysisDataManagementPage.java
注:本文中的org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论