本文整理汇总了Java中org.apache.wicket.ajax.markup.html.form.AjaxCheckBox.setLabel方法的典型用法代码示例。如果您正苦于以下问题:Java AjaxCheckBox.setLabel方法的具体用法?Java AjaxCheckBox.setLabel怎么用?Java AjaxCheckBox.setLabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.ajax.markup.html.form.AjaxCheckBox
的用法示例。
在下文中一共展示了AjaxCheckBox.setLabel方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onBeforeRender
import org.apache.wicket.ajax.markup.html.form.AjaxCheckBox; //导入方法依赖的package包/类
@Override
protected void onBeforeRender() {
createSearchCriteriaForm();
viewAllCheckBox = new AjaxCheckBox("allEnvironmentsCheckbox", new Model<Boolean>(WicketSession.get().getViewAll())) {
private static final long serialVersionUID = 6279581094195253824L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
WicketSession.get().setViewAll(getModelObject());
updateEnvDetailsPanel(target);
}
};
viewAllCheckBox.setLabel(WicketUtils.getStringResourceModel(this, "portal.environment.table.header.all"));
viewAllCheckBox.setVisible(release == null);
searchCriteriaForm.addOrReplace(viewAllCheckBox);
SimpleFormComponentLabel viewAllLabel = new SimpleFormComponentLabel("allEnvironmentsLabel", viewAllCheckBox);
viewAllLabel.setVisible(release == null);
searchCriteriaForm.addOrReplace(viewAllLabel);
getEnvironmentsFromDB();
initTable();
refreshContainer.addOrReplace(dataTable);
super.onBeforeRender();
}
示例2: onBeforeRender
import org.apache.wicket.ajax.markup.html.form.AjaxCheckBox; //导入方法依赖的package包/类
@Override
protected void onBeforeRender() {
// protected void initViewAllCheckBox() {
createSearchCriteriaForm();
viewAllCheckBox = new AjaxCheckBox("allReleasesCheckbox", new Model<Boolean>(WicketSession.get().getViewAll())) {
private static final long serialVersionUID = 3701907014721062208L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
WicketSession.get().setViewAll(getModelObject());
getApplicationReleasesFromDB();
//
initTable();
refreshContainer.replace(dataTable);
target.add(refreshContainer);
}
};
viewAllCheckBox.setLabel(WicketUtils.getStringResourceModel(this, "portal.release.table.header.all"));
viewAllCheckBox.setVisible(app == null);
searchCriteriaForm.addOrReplace(viewAllCheckBox);
SimpleFormComponentLabel viewAllLabel = new SimpleFormComponentLabel("allReleasesLabel", viewAllCheckBox);
viewAllLabel.setVisible(app == null);
searchCriteriaForm.addOrReplace(viewAllLabel);
getApplicationReleasesFromDB();
initTable();
refreshContainer.addOrReplace(dataTable) ;
super.onBeforeRender();
}