本文整理了Java中com.google.gwt.user.client.ui.Button.setVisible()
方法的一些代码示例,展示了Button.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setVisible()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:setVisible
暂无
代码示例来源:origin: kaaproject/kaa
@Override
public void reset() {
super.reset();
downloadConfigurationButton.setVisible(false);
}
代码示例来源:origin: kaaproject/kaa
@Override
public void setCancelEnabled(boolean enabled) {
getCancelButtonWidget().setVisible(create && enabled);
}
代码示例来源:origin: kaaproject/kaa
public void reset() {
super.reset();
testFilterButton.setVisible(false);
}
代码示例来源:origin: kaaproject/kaa
public GetUserConfigViewImpl() {
super(true);
getSaveButtonWidget().setVisible(false);
}
代码示例来源:origin: kaaproject/kaa
/**
* Set read only.
*/
public void setReadOnly() {
saveButton.setVisible(false);
activateButton.setVisible(false);
deactivateButton.setVisible(false);
description.getTextArea().setReadOnly(true);
setBodyReadOnly(true);
for (HandlerRegistration registration : registrations) {
registration.removeHandler();
}
registrations.clear();
}
代码示例来源:origin: kaaproject/kaa
@Override
public void setData(ProfileFilterDto struct) {
super.setData(struct);
testFilterButton.setVisible(struct.getStatus() == UpdateStatus.INACTIVE);
}
代码示例来源:origin: kaaproject/kaa
/**
* Instantiates a new BaseRecordViewImpl.
*/
public BaseRecordViewImpl(boolean create) {
super(create);
getSaveButtonWidget().setVisible(false);
getCancelButtonWidget().setVisible(false);
getBackButtonPanelWidget().setVisible(true);
}
代码示例来源:origin: kaaproject/kaa
@Override
public void setData(ConfigurationRecordFormDto struct) {
super.setData(struct);
if (struct.getStatus() == UpdateStatus.ACTIVE) {
downloadConfigurationButton.setVisible(true);
}
}
代码示例来源:origin: kaaproject/kaa
@Override
public void setProfileFiltersVisible(boolean visible) {
profileFiltersLabel.setVisible(visible);
includeDeprecatedProfileFilters.setVisible(visible);
profileFiltersGrid.setVisible(visible);
addProfileFilterButton.setVisible(visible);
}
代码示例来源:origin: kaaproject/kaa
@Override
public void setReadOnly() {
name.setEnabled(false);
nameLabel.removeStyleName(REQUIRED);
weight.setEnabled(false);
weightLabel.removeStyleName(REQUIRED);
addProfileFilterButton.setVisible(false);
addConfigurationButton.setVisible(false);
includeDeprecatedProfileFilters.setVisible(false);
includeDeprecatedConfigurations.setVisible(false);
profileFiltersGrid.setEnableActions(false);
configurationsGrid.setEnableActions(false);
}
代码示例来源:origin: kaaproject/kaa
@Override
protected void resetImpl() {
name.setValue("");
name.setEnabled(true);
nameLabel.addStyleName(REQUIRED);
weight.setValue(null);
weight.setEnabled(true);
weightLabel.addStyleName(REQUIRED);
description.setValue("");
createdUsername.setValue("");
createdDateTime.setValue("");
addProfileFilterButton.setVisible(!create);
addConfigurationButton.setVisible(!create);
addTopicButton.setVisible(!create);
profileFiltersGrid.setEnableActions(true);
configurationsGrid.setEnableActions(true);
includeDeprecatedProfileFilters.setVisible(!create);
includeDeprecatedProfileFilters.setValue(false);
includeDeprecatedConfigurations.setVisible(!create);
includeDeprecatedConfigurations.setValue(false);
}
代码示例来源:origin: kaaproject/kaa
description.setValue("");
body.setValue(null);
saveButton.setVisible(false);
activateButton.setVisible(false);
deactivateButton.setVisible(false);
if (hasLabel()) {
bodyLabel.removeStyleName(REQUIRED);
代码示例来源:origin: kaaproject/kaa
updateSchemaScopeButton.setVisible(!create && editable);
updateSchemaScopeButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
createNewSchemaVersionButton.setVisible(!create && editable);
createNewSchemaVersionButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
cancelButton.setVisible(false);
cancelButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
deleteSchemaVersionButton.setVisible(!create && editable);
deleteSchemaVersionButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
代码示例来源:origin: kaaproject/kaa
deactivateButton.setVisible(true);
saveButton.setVisible(true);
if (isEmpty(struct.getId())) {
saveButton.setText(Utils.constants.save());
} else {
activateButton.setVisible(true);
代码示例来源:origin: kaaproject/kaa
getCancelButtonWidget().setVisible(true);
} else {
getTitileLabelWidget().setText(getViewTitle());
getSaveButtonWidget().setVisible(editable);
requiredFieldsNoteLabel.setVisible(editable);
代码示例来源:origin: kaaproject/kaa
sendNotification.setVisible(!create);
getSaveButtonWidget().setVisible(false);
name.setEnabled(false);
mandatory.setEnabled(false);
代码示例来源:origin: kaaproject/kaa
cancelButton.setVisible(false);
buttonsPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
buttonsPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
代码示例来源:origin: kaaproject/kaa
addEcfVersionButton.setVisible(!create);
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
@Override
public void setThirdChoiceLabel(final String thirdChoiceLabel) {
footer.thirdChoiceButton.setText(thirdChoiceLabel);
footer.thirdChoiceButton.setVisible(!thirdChoiceLabel.isEmpty());
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
public void showError(final String errorDescription) {
helpButton.setVisible(false);
errorAction.setVisible(true);
fieldWrapper.addClassName("validation-highlight");
if (errorSection == null) {
errorSection = InlineMessageWidget.createErrorMessage();
}
errorSection.setMessage(errorDescription);
add(errorSection, root);
}
内容来源于网络,如有侵权,请联系作者删除!