本文整理了Java中org.apache.wicket.markup.html.form.CheckBox.setEnabled()
方法的一些代码示例,展示了CheckBox.setEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setEnabled()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.form.CheckBox
类名称:CheckBox
方法名:setEnabled
暂无
代码示例来源:origin: org.geoserver.web/web-sec-core
@Override
protected void onUpdate(AjaxRequestTarget target) {
for (CheckBox cb : methodList) {
cb.setEnabled(chainWrapper.isMatchHTTPMethod());
target.addComponent(cb);
}
}
}));
代码示例来源:origin: org.geoserver.web/gs-web-sec-core
@Override
protected void onUpdate(AjaxRequestTarget target) {
if (recodeCheckBox.isVisible()) {
recodeCheckBox.setEnabled(true);
target.add(recodeCheckBox);
}
}
}));
代码示例来源:origin: org.geoserver.web/web-sec-core
@Override
protected void onUpdate(AjaxRequestTarget target) {
if (recodeCheckBox.isVisible()) {
recodeCheckBox.setEnabled(true);
target.addComponent(recodeCheckBox);
}
}
}));
代码示例来源:origin: org.geoserver.web/web-security
@Override
protected void onUpdate(AjaxRequestTarget target) {
if (recodeCheckBox.isVisible()) {
recodeCheckBox.setEnabled(true);
target.addComponent(recodeCheckBox);
}
}
}));
代码示例来源:origin: org.geoserver.web/gs-web-sec-core
@Override
protected void onUpdate(AjaxRequestTarget target) {
for (CheckBox cb : methodList) {
cb.setEnabled(chainWrapper.isMatchHTTPMethod());
target.add(cb);
}
}
}));
代码示例来源:origin: net.sourceforge.wicketwebbeans/wicketwebbeans
/**
* Construct a new BooleanField.
*
* @param id the Wicket id for the editor.
* @param model the model.
* @param metaData the meta data for the property.
* @param viewOnly true if the component should be view-only.
*/
public BooleanField(String id, IModel model, ElementMetaData metaData, boolean viewOnly)
{
super(id, model, metaData, viewOnly);
CheckBox checkBox = new CheckBox("component", model) ;
checkBox.setEnabled(!viewOnly);
add(checkBox);
}
}
代码示例来源:origin: net.ontopia/ontopoly-editor
checkbox.setEnabled(!readonly);
add(checkbox);
代码示例来源:origin: ontopia/ontopia
checkbox.setEnabled(!readonly);
add(checkbox);
代码示例来源:origin: org.geoserver.web/gs-web-core
private void disableDimension(
Class<?> type, final WebMarkupContainer configs, Label noAttributeMessage) {
// no attributes of the required type, no party
enabled.setEnabled(false);
enabled.setModelObject(false);
configs.setVisible(false);
ParamResourceModel typeName =
new ParamResourceModel("AttributeType." + type.getSimpleName(), null);
ParamResourceModel error =
new ParamResourceModel("missingAttribute", this, typeName.getString());
noAttributeMessage.setDefaultModelObject(error.getString());
}
代码示例来源:origin: org.geoserver.web/web-core
private void disableDimension(Class type, final WebMarkupContainer configs,
Label noAttributeMessage) {
// no attributes of the required type, no party
enabled.setEnabled(false);
enabled.setModelObject(false);
configs.setVisible(false);
ParamResourceModel typeName = new ParamResourceModel("AttributeType."
+ type.getSimpleName(), null);
ParamResourceModel error = new ParamResourceModel("missingAttribute", this, typeName
.getString());
noAttributeMessage.setDefaultModelObject(error.getString());
}
代码示例来源:origin: org.geoserver.community/importer-web
public void enableDependingWidgets(boolean flag, AjaxRequestTarget target)
{
tilewidthField.setEnabled(flag);
tileheightField.setEnabled(flag);
rettileField.setEnabled(flag);
target.addComponent(tilewidthField);
target.addComponent(tileheightField);
target.addComponent(rettileField);
}
}
代码示例来源:origin: org.geoserver.web/web-security
public UserGroupServicePanel(String id, IModel<T> model) {
super(id, model);
add(new PasswordEncoderChoice("passwordEncoderName").add(new OnChangeAjaxBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
if (recodeCheckBox.isVisible()) {
recodeCheckBox.setEnabled(true);
target.addComponent(recodeCheckBox);
}
}
}));
boolean canCreateStore=false;
SecurityUserGroupServiceConfig config = model.getObject();
try {
GeoServerUserGroupService s =
(GeoServerUserGroupService) Class.forName(config.getClassName()).newInstance();
canCreateStore=s.canCreateStore();
} catch (Exception e) {
// do nothing
}
recodeCheckBox= new CheckBox("recodeExistingPasswords", Model.of(false));
recodeCheckBox.setOutputMarkupId(true);
recodeCheckBox.setVisible(canCreateStore);
recodeCheckBox.setEnabled(false);
add(recodeCheckBox);
add(new PasswordPolicyChoice("passwordPolicyName"));
}
代码示例来源:origin: org.geoserver.web/web-sec-core
public UserGroupServicePanel(String id, IModel<T> model) {
super(id, model);
add(new PasswordEncoderChoice("passwordEncoderName").add(new OnChangeAjaxBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
if (recodeCheckBox.isVisible()) {
recodeCheckBox.setEnabled(true);
target.addComponent(recodeCheckBox);
}
}
}));
boolean canCreateStore=false;
SecurityUserGroupServiceConfig config = model.getObject();
try {
GeoServerUserGroupService s =
(GeoServerUserGroupService) Class.forName(config.getClassName()).newInstance();
canCreateStore=s.canCreateStore();
} catch (Exception e) {
// do nothing
}
recodeCheckBox= new CheckBox("recodeExistingPasswords", Model.of(false));
recodeCheckBox.setOutputMarkupId(true);
recodeCheckBox.setVisible(canCreateStore);
recodeCheckBox.setEnabled(false);
add(recodeCheckBox);
add(new PasswordPolicyChoice("passwordPolicyName"));
}
代码示例来源:origin: org.geoserver.community/importer-web
public void enableDependingWidgets(boolean flag, AjaxRequestTarget target)
{
downsamplestepField.setEnabled(flag);
noverviewField.setEnabled(flag);
subsamplealgorithmField.setEnabled(flag);
extoverviewField.setEnabled(flag);
retoverviewField.setEnabled(flag);
target.addComponent(downsamplestepField);
target.addComponent(noverviewField);
target.addComponent(subsamplealgorithmField);
target.addComponent(extoverviewField);
target.addComponent(retoverviewField);
subsamplealgorithmField.modelChanged();
downsamplestepField.modelChanged();
noverviewField.modelChanged();
extoverviewField.modelChanged();
retoverviewField.modelChanged();
}
}
代码示例来源:origin: org.geoserver.web/gs-web-sec-core
public UserGroupServicePanel(String id, IModel<T> model) {
super(id, model);
add(
new PasswordEncoderChoice("passwordEncoderName")
.add(
new OnChangeAjaxBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
if (recodeCheckBox.isVisible()) {
recodeCheckBox.setEnabled(true);
target.add(recodeCheckBox);
}
}
}));
boolean canCreateStore = false;
SecurityUserGroupServiceConfig config = model.getObject();
try {
GeoServerUserGroupService s =
(GeoServerUserGroupService) Class.forName(config.getClassName()).newInstance();
canCreateStore = s.canCreateStore();
} catch (Exception e) {
// do nothing
}
recodeCheckBox = new CheckBox("recodeExistingPasswords", Model.of(false));
recodeCheckBox.setOutputMarkupId(true);
recodeCheckBox.setVisible(canCreateStore);
recodeCheckBox.setEnabled(false);
add(recodeCheckBox);
add(new PasswordPolicyChoice("passwordPolicyName"));
}
代码示例来源:origin: org.onehippo.cms7/hippo-addon-hst-configuration-editor-frontend
private void addHstRepositoryBasedMenuConfiguration() {
CheckBox repositoryBased = new CheckBox("repobased");
repositoryBased.setOutputMarkupId(true);
repositoryBased.setEnabled(!getLockInfo().isLocked());
form.add(repositoryBased);
CheckBox foldersOnly = new CheckBox("foldersOnly");
foldersOnly.setOutputMarkupId(true);
foldersOnly.setEnabled(!getLockInfo().isLocked());
form.add(foldersOnly);
TextField depth = new TextField("depth");
depth.setOutputMarkupId(true);
depth.add(new RangeValidator(0l, null));
depth.setEnabled(!getLockInfo().isLocked());
form.add(depth);
}
代码示例来源:origin: org.geoserver.web/web-security
form.add(new CheckBox("enabled").setEnabled(hasUserGroupStore));
代码示例来源:origin: org.geoserver.web/web-sec-core
form.add(new CheckBox("enabled").setEnabled(hasUserGroupStore));
代码示例来源:origin: org.geoserver.web/gs-web-sec-core
form.add(new CheckBox("enabled").setEnabled(hasUserGroupStore));
代码示例来源:origin: org.geoserver.web/web-core
CheckBox defaultChk = new CheckBox("default", new PropertyModel(this, "defaultWs"));
form.add(defaultChk);
defaultChk.setEnabled(isFullAdmin);
内容来源于网络,如有侵权,请联系作者删除!