本文整理了Java中com.bc.ceres.swing.binding.Binding.setPropertyValue()
方法的一些代码示例,展示了Binding.setPropertyValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Binding.setPropertyValue()
方法的具体详情如下:
包路径:com.bc.ceres.swing.binding.Binding
类名称:Binding
方法名:setPropertyValue
暂无
代码示例来源:origin: senbox-org/snap-desktop
private void syncPropertyValue(Binding binding, DefaultListModel<File> listModel) {
Object[] objects = listModel.toArray();
binding.setPropertyValue(Arrays.stream(objects)
.map(item -> new File(item.toString()))
.collect(Collectors.toList())
.toArray(new File[objects.length]));
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void tableChanged(TableModelEvent e) {
final TableModel tableModel = (TableModel) e.getSource();
final MosaicOp.Condition[] conditions = new MosaicOp.Condition[tableModel.getRowCount()];
for (int i = 0; i < conditions.length; i++) {
conditions[i] = new MosaicOp.Condition((String) tableModel.getValueAt(i, 0),
(String) tableModel.getValueAt(i, 1),
Boolean.TRUE.equals(tableModel.getValueAt(i, 2)));
}
getBinding().setPropertyValue(conditions);
}
代码示例来源:origin: bcdev/beam
@Override
public void tableChanged(TableModelEvent e) {
final TableModel tableModel = (TableModel) e.getSource();
final MosaicOp.Condition[] conditions = new MosaicOp.Condition[tableModel.getRowCount()];
for (int i = 0; i < conditions.length; i++) {
conditions[i] = new MosaicOp.Condition((String) tableModel.getValueAt(i, 0),
(String) tableModel.getValueAt(i, 1),
Boolean.TRUE.equals(tableModel.getValueAt(i, 2)));
}
getBinding().setPropertyValue(conditions);
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void propertyChange(PropertyChangeEvent evt) {
label.setEnabled(!checkBox.isSelected());
accuracySpinner.setEnabled(!checkBox.isSelected());
if (checkBox.isSelected()) {
bindingContext.getBinding("accuracy").setPropertyValue(3);
}
computePanel.updateEnablement();
}
});
代码示例来源:origin: bcdev/beam
@Override
public void propertyChange(PropertyChangeEvent evt) {
label.setEnabled(!checkBox.isSelected());
accuracySpinner.setEnabled(!checkBox.isSelected());
if (checkBox.isSelected()) {
bindingContext.getBinding("accuracy").setPropertyValue(3);
}
computePanel.updateEnablement();
}
});
代码示例来源:origin: senbox-org/s2tbx
@Override
public void tableChanged(TableModelEvent e) {
final TableModel tableModel = (TableModel) e.getSource();
final MosaicOp.Variable[] variables = new MosaicOp.Variable[tableModel.getRowCount()];
for (int i = 0; i < variables.length; i++) {
variables[i] = new MosaicOp.Variable((String) tableModel.getValueAt(i, 0),
(String) tableModel.getValueAt(i, 1));
}
getBinding().setPropertyValue(variables);
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void tableChanged(TableModelEvent e) {
final TableModel tableModel = (TableModel) e.getSource();
final MosaicOp.Variable[] variables = new MosaicOp.Variable[tableModel.getRowCount()];
for (int i = 0; i < variables.length; i++) {
variables[i] = new MosaicOp.Variable((String) tableModel.getValueAt(i, 0),
(String) tableModel.getValueAt(i, 1));
}
getBinding().setPropertyValue(variables);
}
代码示例来源:origin: bcdev/beam
@Override
public void tableChanged(TableModelEvent e) {
final TableModel tableModel = (TableModel) e.getSource();
final MosaicOp.Variable[] variables = new MosaicOp.Variable[tableModel.getRowCount()];
for (int i = 0; i < variables.length; i++) {
variables[i] = new MosaicOp.Variable((String) tableModel.getValueAt(i, 0),
(String) tableModel.getValueAt(i, 1));
}
getBinding().setPropertyValue(variables);
}
代码示例来源:origin: senbox-org/snap-desktop
private void setHistogramMatching(ImageInfo.HistogramMatching histogramMatching) {
Binding binding = getBindingContext().getBinding(HISTOGRAM_MATCHING_PROPERTY);
if (binding != null) {
binding.setPropertyValue(histogramMatching);
}
}
}
代码示例来源:origin: bcdev/beam
private void setHistogramMatching(ImageInfo.HistogramMatching histogramMatching) {
Binding binding = getBindingContext().getBinding(HISTOGRAM_MATCHING_PROPERTY);
if (binding != null) {
binding.setPropertyValue(histogramMatching);
}
}
}
代码示例来源:origin: bcdev/beam
@Override
public void propertyChange(PropertyChangeEvent evt) {
final boolean saveExpressionOnly = (Boolean) context.getBinding(
PROPERTY_NAME_SAVE_EXPRESSION_ONLY).getPropertyValue();
if (!saveExpressionOnly) {
context.getBinding(PROPERTY_NAME_NO_DATA_VALUE_USED).setPropertyValue(true);
}
}
});
代码示例来源:origin: bcdev/beam
@Override
public void itemStateChanged(ItemEvent e) {
getBinding().setPropertyValue(getButton().isSelected());
}
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void itemStateChanged(ItemEvent e) {
getBinding().setPropertyValue(getButton().isSelected());
}
}
代码示例来源:origin: senbox-org/snap-desktop
private void acknowledgeChannel() {
RasterDataNode channelSource = currentChannelSources[channel];
final ImageInfoEditorModel3B model = models[channel];
Continuous1BandGraphicalForm.setDisplayProperties(model, channelSource);
imageInfoEditor.setModel(model);
moreOptionsForm.getBindingContext().getBinding(CHANNEL_SOURCE_NAME_PROPERTY).setPropertyValue(channelSource.getName());
moreOptionsForm.getBindingContext().getBinding(GAMMA_PROPERTY).setPropertyValue(gamma);
}
代码示例来源:origin: bcdev/beam
private void acknowledgeChannel() {
RasterDataNode channelSource = currentChannelSources[channel];
final ImageInfoEditorModel3B model = models[channel];
Continuous1BandGraphicalForm.setDisplayProperties(model, channelSource);
imageInfoEditor.setModel(model);
moreOptionsForm.getBindingContext().getBinding(CHANNEL_SOURCE_NAME_PROPERTY).setPropertyValue(channelSource.getName());
moreOptionsForm.getBindingContext().getBinding(GAMMA_PROPERTY).setPropertyValue(model.getGamma());
}
代码示例来源:origin: bcdev/beam
public void actionPerformed(ActionEvent e) {
ProductExpressionPane expressionPane = getProductExpressionPane(currentProduct);
expressionPane.setCode((String) binding.getPropertyValue());
if (expressionPane.showModalDialog(null, "Expression Editor") == ModalDialog.ID_OK) {
binding.setPropertyValue(expressionPane.getCode());
}
}
});
代码示例来源:origin: senbox-org/snap-desktop
public void actionPerformed(ActionEvent e) {
ProductExpressionPane expressionPane = getProductExpressionPane(currentProduct);
expressionPane.setCode((String) binding.getPropertyValue());
if (expressionPane.showModalDialog(null, "Expression Editor") == ModalDialog.ID_OK) {
binding.setPropertyValue(expressionPane.getCode());
}
}
});
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void updateMoreOptionsFromImageInfo(MoreOptionsForm moreOptionsForm) {
super.updateMoreOptionsFromImageInfo(moreOptionsForm);
BindingContext bindingContext = moreOptionsForm.getBindingContext();
ImageInfo.UncertaintyVisualisationMode mode = getModifiedImageInfo().getUncertaintyVisualisationMode();
bindingContext.getBinding(UNCERTAINTY_MODE_PROPERTY).setPropertyValue(mode);
}
代码示例来源:origin: senbox-org/snap-desktop
private void updateLogXAxisCheckBox() {
HistogramPanelModel.HistogramConfig config = createHistogramConfig();
final boolean enabled = dataset != null && model.hasStx(config) && model.getStx(config).getMinimum() > 0 && !model.getStx(config).isLogHistogram();
Binding binding = xAxisRangeControl.getBindingContext().getBinding(PROPERTY_NAME_LOG_SCALED);
if (!enabled) {
binding.setPropertyValue(false);
}
log10AxisEnablement.apply();
binding.adjustComponents();
}
代码示例来源:origin: bcdev/beam
private void updateLogXAxisCheckBox() {
HistogramPanelModel.HistogramConfig config = createHistogramConfig();
final boolean enabled = dataset != null && model.hasStx(config) && model.getStx(config).getMinimum() > 0 && !model.getStx(config).isLogHistogram();
Binding binding = xAxisRangeControl.getBindingContext().getBinding(PROPERTY_NAME_LOG_SCALED);
if (!enabled) {
binding.setPropertyValue(false);
}
log10AxisEnablement.apply();
binding.adjustComponents();
}
内容来源于网络,如有侵权,请联系作者删除!