com.google.gwt.user.client.ui.Button.setEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(145)

本文整理了Java中com.google.gwt.user.client.ui.Button.setEnabled()方法的一些代码示例,展示了Button.setEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setEnabled()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:setEnabled

Button.setEnabled介绍

暂无

代码示例

代码示例来源:origin: kaaproject/kaa

@Override
 public void onInputChanged(InputEvent event) {
  boolean valid = validate();
  sendResetPasswordLinkButton.setEnabled(valid);
 }
});

代码示例来源:origin: kaaproject/kaa

@Override
 public void onInputChanged(InputEvent event) {
  boolean valid = validate();
  changePasswordButton.setEnabled(valid);
 }
}

代码示例来源:origin: kaaproject/kaa

@Override
public void onValueChange(ValueChangeEvent<List<TopicDto>> event) {
 boolean valid = validate();
 addButton.setEnabled(valid);
}

代码示例来源:origin: kaaproject/kaa

private void validate() {
 boolean valid = schemaRecordPanel.validate();
 saveButton.setEnabled(valid);
}

代码示例来源:origin: kaaproject/kaa

@Override
public void onChange(ChangeEvent event) {
 boolean enabled = recordFileUpload.getFileName().length() > 0
   && recordFieldWidget.getValue() != null;
 uploadButton.setEnabled(enabled);
}

代码示例来源:origin: kaaproject/kaa

private void updateAefMapButtons() {
 boolean availableSelected = availableAefMaps.getValue() != null
   && !availableAefMaps.getValue().isEmpty();
 boolean selectedSelected = selectedAefMaps.getValue() != null
   && !selectedAefMaps.getValue().isEmpty();
 addAefMapButton.setEnabled(availableSelected);
 removeAefMapButton.setEnabled(selectedSelected);
}

代码示例来源:origin: kaaproject/kaa

private void setEnabledForAddButton() {
 listView.addButton().setEnabled(false);
 if (place.getEventClassDtoList() != null && !place.getEventClassDtoList().isEmpty()) {
  listView.addButton().setEnabled(true);
 }
}

代码示例来源:origin: kaaproject/kaa

@Override
 protected void updateSaveButton(boolean enabled, boolean invalid) {
  if (create == true) {
   super.updateSaveButton(enabled, invalid);
  } else {
   getSaveButtonWidget().setEnabled(false);
  }
 }
}

代码示例来源:origin: kaaproject/kaa

/**
 * Reset.
 */
public void reset() {
 recordFieldWidget.setValue(null);
 if (!readOnly) {
  recordFileUpload.reset();
  uploadButton.setEnabled(false);
 }
}

代码示例来源:origin: kaaproject/kaa

@Override
public void onSuccessImpl(RecordField result) {
 setValue(result, true);
 recordFileUpload.reset();
 uploadButton.setEnabled(false);
}

代码示例来源:origin: kaaproject/kaa

private void updateSaveButton(boolean enabled, boolean invalid) {
  if (invalid) {
   saveButton.setText(Utils.constants.save());
  } else {
   saveButton.setText(enabled ? Utils.constants.save() : Utils.constants.saved());
  }
  saveButton.setEnabled(enabled);
  activateButton.setEnabled(!invalid && !enabled);
 }
}

代码示例来源:origin: kaaproject/kaa

@Override
protected void updateSaveButton(boolean enabled, boolean invalid) {
 getSaveButtonWidget().setText(Utils.constants.add());
 getSaveButtonWidget().setEnabled(enabled);
}

代码示例来源:origin: kaaproject/kaa

private void validate() {
 boolean valid = endpointProfile == null || endpointProfileRecordPanel.validate();
 valid &= serverProfile == null || serverProfileRecordPanel.validate();
 valid &= !Utils.isBlank(filterPanel.getValue());
 testFilterButton.setEnabled(valid);
}

代码示例来源:origin: kaaproject/kaa

@Override
protected void updateSaveButton(boolean enabled, boolean invalid) {
 getSaveButtonWidget().setText(Utils.constants.send());
 getSaveButtonWidget().setEnabled(enabled);
}

代码示例来源:origin: kaaproject/kaa

@Override
protected void updateSaveButton(boolean enabled, boolean invalid) {
 getSaveButtonWidget().setText(Utils.constants.update());
 getSaveButtonWidget().setEnabled(enabled);
}

代码示例来源:origin: kaaproject/kaa

@Override
protected void resetImpl() {
 name.setValue("");
 configurationSchemaVersion.reset();
 profileSchemaVersion.reset();
 notificationSchemaVersion.reset();
 logSchemaVersion.reset();
 availableAefMaps.reset();
 selectedAefMaps.reset();
 addAefMapButton.setEnabled(false);
 removeAefMapButton.setEnabled(false);
 defaultUserVerifier.setValue(null);
 defaultUserVerifier.setAcceptableValues(Collections.<UserVerifierDto>emptyList());
}

代码示例来源:origin: kaaproject/kaa

protected void updateSaveButton(boolean enabled, boolean invalid) {
 if (create || invalid) {
  getSaveButtonWidget().setText(create ? Utils.constants.add() : Utils.constants.save());
 } else {
  getSaveButtonWidget().setText(enabled ? Utils.constants.save() : Utils.constants.saved());
 }
 getSaveButtonWidget().setEnabled(enabled);
}

代码示例来源:origin: kaaproject/kaa

addButton(closeButton);
addButton.setEnabled(false);

代码示例来源:origin: kaaproject/kaa

addButton(cancelButton);
sendResetPasswordLinkButton.setEnabled(false);

代码示例来源:origin: kaaproject/kaa

addButton(cancelButton);
changePasswordButton.setEnabled(false);

相关文章