com.bc.ceres.swing.binding.Binding.clearProblem()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(157)

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

Binding.clearProblem介绍

暂无

代码示例

代码示例来源:origin: senbox-org/snap-desktop

  1. public void valueChanged(ListSelectionEvent event) {
  2. if (event.getValueIsAdjusting() || getBinding().isAdjustingComponents()) {
  3. return;
  4. }
  5. final Property model = getBinding().getContext().getPropertySet().getProperty(getBinding().getPropertyName());
  6. try {
  7. List<File> selectedValuesList = list.getSelectedValuesList();
  8. model.setValue(selectedValuesList.toArray(new File[selectedValuesList.size()]));
  9. // Now model is in sync with UI
  10. getBinding().clearProblem();
  11. } catch (ValidationException e) {
  12. getBinding().reportProblem(e);
  13. }
  14. }
  15. };

代码示例来源:origin: senbox-org/snap-desktop

  1. @Override
  2. public void valueChanged(ListSelectionEvent event) {
  3. if (event.getValueIsAdjusting()) {
  4. return;
  5. }
  6. if (getBinding().isAdjustingComponents()) {
  7. return;
  8. }
  9. final Property property = getBinding().getContext().getPropertySet().getProperty(getBinding().getPropertyName());
  10. Object selectedValue = list.getSelectedValue();
  11. try {
  12. property.setValue(selectedValue);
  13. // Now model is in sync with UI
  14. getBinding().clearProblem();
  15. } catch (ValidationException e) {
  16. getBinding().reportProblem(e);
  17. }
  18. }
  19. }

代码示例来源:origin: bcdev/beam

  1. @Override
  2. public void valueChanged(ListSelectionEvent event) {
  3. if (event.getValueIsAdjusting()) {
  4. return;
  5. }
  6. if (getBinding().isAdjustingComponents()) {
  7. return;
  8. }
  9. final Property property = getBinding().getContext().getPropertySet().getProperty(getBinding().getPropertyName());
  10. Object selectedValue = list.getSelectedValue();
  11. try {
  12. property.setValue(selectedValue);
  13. // Now model is in sync with UI
  14. getBinding().clearProblem();
  15. } catch (ValidationException e) {
  16. getBinding().reportProblem(e);
  17. }
  18. }
  19. }

代码示例来源:origin: senbox-org/snap-desktop

  1. @Override
  2. public void valueChanged(ListSelectionEvent event) {
  3. if (event.getValueIsAdjusting()) {
  4. return;
  5. }
  6. if (getBinding().isAdjustingComponents()) {
  7. return;
  8. }
  9. final Property property = getBinding().getContext().getPropertySet().getProperty(getBinding().getPropertyName());
  10. Object selectedValue = list.getSelectedValue();
  11. try {
  12. property.setValue(selectedValue);
  13. final Property bandNameProperty = getBinding().getContext().getPropertySet().getProperty("bandName");
  14. bandNameProperty.setValueFromText(AddLandCoverOp.getValidBandName((String) selectedValue, product));
  15. // Now model is in sync with UI
  16. getBinding().clearProblem();
  17. } catch (ValidationException e) {
  18. getBinding().reportProblem(e);
  19. }
  20. }
  21. }

相关文章