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

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

本文整理了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

public void valueChanged(ListSelectionEvent event) {
    if (event.getValueIsAdjusting() || getBinding().isAdjustingComponents()) {
      return;
    }
    final Property model = getBinding().getContext().getPropertySet().getProperty(getBinding().getPropertyName());
    try {
      List<File> selectedValuesList = list.getSelectedValuesList();
      model.setValue(selectedValuesList.toArray(new File[selectedValuesList.size()]));
      // Now model is in sync with UI
      getBinding().clearProblem();
    } catch (ValidationException e) {
      getBinding().reportProblem(e);
    }
  }
};

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

@Override
  public void valueChanged(ListSelectionEvent event) {
    if (event.getValueIsAdjusting()) {
      return;
    }
    if (getBinding().isAdjustingComponents()) {
      return;
    }
    final Property property = getBinding().getContext().getPropertySet().getProperty(getBinding().getPropertyName());
    Object selectedValue = list.getSelectedValue();
    try {
      property.setValue(selectedValue);
      // Now model is in sync with UI
      getBinding().clearProblem();
    } catch (ValidationException e) {
      getBinding().reportProblem(e);
    }
  }
}

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

@Override
  public void valueChanged(ListSelectionEvent event) {
    if (event.getValueIsAdjusting()) {
      return;
    }
    if (getBinding().isAdjustingComponents()) {
      return;
    }
    final Property property = getBinding().getContext().getPropertySet().getProperty(getBinding().getPropertyName());
    Object selectedValue = list.getSelectedValue();
    try {
      property.setValue(selectedValue);
      // Now model is in sync with UI
      getBinding().clearProblem();
    } catch (ValidationException e) {
      getBinding().reportProblem(e);
    }
  }
}

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

@Override
  public void valueChanged(ListSelectionEvent event) {
    if (event.getValueIsAdjusting()) {
      return;
    }
    if (getBinding().isAdjustingComponents()) {
      return;
    }
    final Property property = getBinding().getContext().getPropertySet().getProperty(getBinding().getPropertyName());
    Object selectedValue = list.getSelectedValue();
    try {
      property.setValue(selectedValue);
      final Property bandNameProperty = getBinding().getContext().getPropertySet().getProperty("bandName");
      bandNameProperty.setValueFromText(AddLandCoverOp.getValidBandName((String) selectedValue, product));
      // Now model is in sync with UI
      getBinding().clearProblem();
    } catch (ValidationException e) {
      getBinding().reportProblem(e);
    }
  }
}

相关文章