本文整理了Java中org.apache.wicket.markup.html.form.Button.getId()
方法的一些代码示例,展示了Button.getId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.getId()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.form.Button
类名称:Button
方法名:getId
暂无
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
/**
* Add a {@link Button} to the button bar. The id of the button must equal "button".
*/
protected void addButton(Button button) {
if (DialogConstants.BUTTON.equals(button.getId())) {
buttons.addFirst(new ButtonWrapper(button));
} else {
log.error("Failed to add button: component id is not '{}'", DialogConstants.BUTTON);
}
}
代码示例来源:origin: org.onehippo.jcr.console/hippo-jcr-console-api
/**
* Add a {@link Button} to the button bar. The id of the button must equal "button".
*/
protected void addButton(Button button) {
if (DialogConstants.BUTTON.equals(button.getId())) {
buttons.addFirst(new ButtonWrapper(button));
} else {
log.error("Failed to add button: component id is not '{}'", DialogConstants.BUTTON);
}
}
代码示例来源:origin: org.jabylon/rest.ui
protected void doSubmit() {
IFormSubmitter submitter = findSubmittingButton();
if (submitter instanceof Button && ((Button) submitter).getId().equals("reset")) {
setResponsePage(getPage().getClass(), getPageParameters().set("key", mainModel.getObject().getKey()));
return;
if (button.getId().equals("next")) {
if (nextModel != null && nextModel.getObject() != null)
setResponsePage(getPage().getClass(), getPageParameters().set("key", nextModel.getObject().getKey()));
} else if (button.getId().equals("previous")) {
if (previousModel != null && previousModel.getObject() != null)
setResponsePage(getPage().getClass(), getPageParameters().set("key", previousModel.getObject().getKey()));
内容来源于网络,如有侵权,请联系作者删除!