本文整理了Java中com.bc.ceres.swing.binding.Binding.clearProblem()
方法的一些代码示例,展示了Binding.clearProblem()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Binding.clearProblem()
方法的具体详情如下:
包路径:com.bc.ceres.swing.binding.Binding
类名称: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);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!