本文整理了Java中org.apache.wicket.markup.html.form.Button.setVisible()
方法的一些代码示例,展示了Button.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setVisible()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.form.Button
类名称:Button
方法名:setVisible
暂无
代码示例来源:origin: micromata/projectforge
public void open(final AjaxRequestTarget target, final TeamEvent event, final Timestamp newStartDate, final Timestamp newEndDate)
{
this.event = event;
this.newStartDate = newStartDate;
this.newEndDate = newEndDate;
if (event instanceof TeamEventDO) {
// All future events are the same as all events, because the user selected the first event:
allFutureEventsButtonPanel.getButton().setVisible(false);
} else {
allFutureEventsButtonPanel.getButton().setVisible(true);
}
addButtonBar(target);
super.open(target);
}
代码示例来源:origin: org.onehippo.jcr.console/hippo-jcr-console-api
public void setVisible(boolean isset) {
visible = isset;
if (button != null && button.isVisible() != isset) {
button.setVisible(isset);
if (ajax) {
AjaxRequestTarget target = AjaxRequestTarget.get();
if (target != null) {
target.addComponent(button);
}
}
}
}
代码示例来源:origin: micromata/projectforge
@Override
protected void updateButtonVisibility()
{
createButtonPanel.setVisible(false);
deleteButtonPanel.setVisible(false);
markAsDeletedButtonPanel.setVisible(false);
undeleteButtonPanel.setVisible(false);
updateAndNextButtonPanel.setVisible(false);
try {
checkAccess();
updateButton.setVisible(true);
} catch (AccessException ex) {
log.info("No right for data update. " + ex.getMessage());
updateButton.setVisible(false);
}
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
public void setVisible(boolean isset) {
visible = isset;
if (button != null && button.isVisible() != isset) {
button.setVisible(isset);
if (ajax) {
AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class);
if (target != null) {
target.add(button);
}
}
}
}
代码示例来源:origin: org.opensingular/singular-server-core
private void addDeallocate() {
boolean visibleDesalocarButton = dataModel.getObject().get("codUsuarioAlocado") != null;
AjaxButton deallocateButton = new AjaxButton("deallocate-btn", confirmationForm) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
onDeallocate(target);
border.hide(target);
}
};
deallocateButton.setDefaultFormProcessing(false)
.setVisible(visibleDesalocarButton)
.setRenderBodyOnly(!visibleDesalocarButton);
border.addButton(BSModalBorder.ButtonStyle.CANCEL, $m.ofValue("Desalocar"), deallocateButton);
}
}
代码示例来源:origin: org.opensingular/singular-requirement-module
private void addDeallocate() {
boolean visibleDesalocarButton = dataModel.getObject().get("codUsuarioAlocado") != null;
AjaxButton deallocateButton = new AjaxButton("deallocate-btn", confirmationForm) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
onDeallocate(target);
border.hide(target);
}
};
deallocateButton.setDefaultFormProcessing(false)
.setVisible(visibleDesalocarButton)
.setRenderBodyOnly(!visibleDesalocarButton);
border.addButton(BSModalBorder.ButtonStyle.CANCEL, $m.ofValue("Desalocar"), deallocateButton);
}
}
代码示例来源:origin: org.opensingular/singular-requirement-core
private void addDeallocate() {
boolean visibleDesalocarButton = dataModel.getObject().get("codUsuarioAlocado") != null;
AjaxButton deallocateButton = new AjaxButton("deallocate-btn", confirmationForm) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
onDeallocate(target);
border.hide(target);
}
};
deallocateButton.setDefaultFormProcessing(false)
.setVisible(visibleDesalocarButton)
.setRenderBodyOnly(!visibleDesalocarButton);
border.addButton(BSModalBorder.ButtonStyle.CANCEL, $m.ofValue("Desalocar"), deallocateButton);
}
}
代码示例来源:origin: theonedev/onedev
@Override
public void onEvent(IEvent<?> event) {
super.onEvent(event);
if (event.getPayload() instanceof AvatarFileSelected) {
AvatarFileSelected avatarFileSelected = (AvatarFileSelected) event.getPayload();
uploadButton.setVisible(true);
avatarFileSelected.getHandler().add(uploadButton);
}
}
};
代码示例来源:origin: org.onehippo.jcr.console/hippo-jcr-console-api
protected Button decorate(Button button) {
button.setEnabled(enabled);
button.setVisible(visible);
if (getKeyType() != null) {
button.add(new InputBehavior(new KeyType[]{getKeyType()}, EventType.click));
}
return button;
}
代码示例来源:origin: theonedev/onedev
@Override
public void onEvent(IEvent<?> event) {
super.onEvent(event);
if (event.getPayload() instanceof AvatarFileSelected) {
AvatarFileSelected avatarFileSelected = (AvatarFileSelected) event.getPayload();
uploadButton.setVisible(true);
avatarFileSelected.getHandler().add(uploadButton);
}
}
};
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
protected Button decorate(Button button) {
button.setEnabled(enabled);
button.setVisible(visible);
if (getKeyType() != null) {
button.add(new InputBehavior(new KeyType[]{getKeyType()}, EventType.click) {
@Override
protected Boolean getDisable_in_input() {
return !getKeyType().equals(KeyType.Escape);
}
@Override
public void onRemove(final Component component) {
super.onRemove(component);
AjaxRequestTarget target = RequestCycle.get().find(AjaxRequestTarget.class);
if (target != null) {
target.appendJavaScript("if (window['shortcut']) { shortcut.remove('" + getKeyType().getKeyCode() + "'); }");
}
}
});
}
return button;
}
代码示例来源:origin: net.ontopia/ontopoly-editor
button.setVisible(roleCombos.isEmpty());
button.add(new AjaxFormComponentUpdatingBehavior("onclick") {
@Override
代码示例来源:origin: org.opensingular/singular-form-wicket
@Override
protected void onConfigure() {
super.onConfigure();
visitChildren(FormComponent.class, (comp, visit) -> comp.setEnabled(!isVisualization()));
this.add(WicketUtils.$b.attrAppender("style", "height: " + getHeight() + "px;", ""));
map.setVisible(!isVisualization());
currentLocationButton.setVisible(SViewCurrentLocation.class.isInstance(viewSupplier.get()) && !isVisualization());
boolean notMultipleAndNotVisualization = !multipleMarkers && !isVisualization();
clearButton.setVisible(notMultipleAndNotVisualization);
mapStatic.setVisible(isVisualization());
verNoMaps.setVisible(!multipleMarkers && isVisualization());
}
代码示例来源:origin: ontopia/ontopia
button.setVisible(roleCombos.isEmpty());
button.add(new AjaxFormComponentUpdatingBehavior("onclick") {
@Override
代码示例来源:origin: org.wicketstuff/modalx
button.setVisible(false);
form.add(button);
button.setVisible(false);
form.add(button);
button.setVisible(false);
form.add(button);
button.setVisible(false);
form.add(button);
代码示例来源:origin: theonedev/onedev
uploadButton.setVisible(false).setOutputMarkupPlaceholderTag(true);
代码示例来源:origin: theonedev/onedev
uploadButton.setVisible(false).setOutputMarkupPlaceholderTag(true);
代码示例来源:origin: micromata/projectforge
updateAndNextButtonPanel.setVisible(updateButtonPanel.isVisible());
} else {
updateAndNextButton.setVisible(false);
内容来源于网络,如有侵权,请联系作者删除!