本文整理了Java中com.bc.ceres.swing.binding.Binding.addComponent()
方法的一些代码示例,展示了Binding.addComponent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Binding.addComponent()
方法的具体详情如下:
包路径:com.bc.ceres.swing.binding.Binding
类名称:Binding
方法名:addComponent
暂无
代码示例来源:origin: senbox-org/snap-desktop
private JComponent createUnitComponent(String propertyName) {
PropertyDescriptor descriptor = context.getPropertySet().getDescriptor(propertyName);
JLabel unitLabel = new JLabel(descriptor.getUnit());
context.getBinding(propertyName).addComponent(unitLabel);
return unitLabel;
}
代码示例来源:origin: bcdev/beam
private JComponent createUnitComponent(String propertyName) {
PropertyDescriptor descriptor = context.getPropertySet().getDescriptor(propertyName);
JLabel unitLabel = new JLabel(descriptor.getUnit());
context.getBinding(propertyName).addComponent(unitLabel);
return unitLabel;
}
代码示例来源:origin: senbox-org/snap-desktop
bindingContext.bind(BinningFormModel.PROPERTY_KEY_MIN_DATA_HOUR, minDataHourTextField);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_START_DATE_TIME).addComponent(startDateLabel);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_START_DATE_TIME).addComponent(startDateFormatLabel);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_PERIOD_DURATION).addComponent(periodDurationLabel);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_PERIOD_DURATION).addComponent(periodDurationUnitLabel);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_MIN_DATA_HOUR).addComponent(minDataHourLabel);
代码示例来源:origin: bcdev/beam
bindingContext.bind(BinningFormModel.PROPERTY_KEY_MIN_DATA_HOUR, minDataHourTextField);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_START_DATE_TIME).addComponent(startDateLabel);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_START_DATE_TIME).addComponent(startDateFormatLabel);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_PERIOD_DURATION).addComponent(periodDurationLabel);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_PERIOD_DURATION).addComponent(periodDurationUnitLabel);
bindingContext.getBinding(BinningFormModel.PROPERTY_KEY_MIN_DATA_HOUR).addComponent(minDataHourLabel);
代码示例来源:origin: senbox-org/snap-desktop
JTextField latitudeBandNameField = new JTextField();
latitudeBandNameField.setEnabled(ortorectifiable);
ctx.bind("latitudeBandName", latitudeBandNameField).addComponent(latitudeBandNameLabel);
ctx.bindEnabledState("latitudeBandName", true, "outputGeoCodingBands", true);
JTextField longitudeBandNameField = new JTextField();
longitudeBandNameField.setEnabled(ortorectifiable);
ctx.bind("longitudeBandName", longitudeBandNameField).addComponent(longitudeBandNameLabel);
ctx.bindEnabledState("longitudeBandName", true, "outputGeoCodingBands", true);
代码示例来源:origin: senbox-org/snap-desktop
bindingContext.bind(PROPERTY_NAME_SHOW_ACCEPTABLE_DEVIATION, acceptableCheck);
bindingContext.bind(PROPERTY_NAME_ACCEPTABLE_DEVIATION, acceptableField);
bindingContext.getBinding(PROPERTY_NAME_ACCEPTABLE_DEVIATION).addComponent(percentLabel);
bindingContext.getBinding(PROPERTY_NAME_ACCEPTABLE_DEVIATION).addComponent(fieldPrefix);
bindingContext.bindEnabledState(PROPERTY_NAME_ACCEPTABLE_DEVIATION, true,
PROPERTY_NAME_SHOW_ACCEPTABLE_DEVIATION, true);
代码示例来源:origin: bcdev/beam
bindingContext.bind(PROPERTY_NAME_SHOW_ACCEPTABLE_DEVIATION, acceptableCheck);
bindingContext.bind(PROPERTY_NAME_ACCEPTABLE_DEVIATION, acceptableField);
bindingContext.getBinding(PROPERTY_NAME_ACCEPTABLE_DEVIATION).addComponent(percentLabel);
bindingContext.getBinding(PROPERTY_NAME_ACCEPTABLE_DEVIATION).addComponent(fieldPrefix);
bindingContext.bindEnabledState(PROPERTY_NAME_ACCEPTABLE_DEVIATION, true,
PROPERTY_NAME_SHOW_ACCEPTABLE_DEVIATION, true);
代码示例来源:origin: bcdev/beam
JTextField latitudeBandNameField = new JTextField();
latitudeBandNameField.setEnabled(ortorectifiable);
ctx.bind("latitudeBandName", latitudeBandNameField).addComponent(latitudeBandNameLabel);
ctx.bindEnabledState("latitudeBandName", true, "outputGeoCodingBands", true);
JTextField longitudeBandNameField = new JTextField();
longitudeBandNameField.setEnabled(ortorectifiable);
ctx.bind("longitudeBandName", longitudeBandNameField).addComponent(longitudeBandNameLabel);
ctx.bindEnabledState("longitudeBandName", true, "outputGeoCodingBands", true);
代码示例来源:origin: senbox-org/snap-desktop
ColorComboBox noDataColorComboBox = new ColorComboBox();
Binding noDataColorBinding = bindingContext.bind(NO_DATA_COLOR_PROPERTY, new ColorComboBoxAdapter(noDataColorComboBox));
noDataColorBinding.addComponent(noDataColorLabel);
addRow(noDataColorLabel, noDataColorComboBox);
JComboBox histogramMatchingBox = new JComboBox();
Binding histogramMatchingBinding = bindingContext.bind(HISTOGRAM_MATCHING_PROPERTY, histogramMatchingBox);
histogramMatchingBinding.addComponent(histogramMatchingLabel);
addRow(histogramMatchingLabel, histogramMatchingBox);
代码示例来源:origin: bcdev/beam
bindingContext.getBinding("pointDataSource").addComponent(pointDataSourceLabel);
bindingContext.bind("dataField", dataFieldList);
bindingContext.getBinding("dataField").addComponent(dataFieldLabel);
代码示例来源:origin: senbox-org/snap-desktop
bindingContext.getBinding("pointDataSource").addComponent(pointDataSourceLabel);
bindingContext.bind("dataField", dataFieldList);
bindingContext.getBinding("dataField").addComponent(dataFieldLabel);
代码示例来源:origin: bcdev/beam
noDataColorComboBox.setAllowDefaultColor(true);
Binding noDataColorBinding = bindingContext.bind(NO_DATA_COLOR_PROPERTY, new ColorComboBoxAdapter(noDataColorComboBox));
noDataColorBinding.addComponent(noDataColorLabel);
addRow(noDataColorLabel, noDataColorComboBox);
bindingContext.addPropertyChangeListener(NO_DATA_COLOR_PROPERTY, pcl);
JComboBox histogramMatchingBox = new JComboBox();
Binding histogramMatchingBinding = bindingContext.bind(HISTOGRAM_MATCHING_PROPERTY, histogramMatchingBox);
histogramMatchingBinding.addComponent(histogramMatchingLabel);
addRow(histogramMatchingLabel, histogramMatchingBox);
bindingContext.addPropertyChangeListener(HISTOGRAM_MATCHING_PROPERTY, pcl);
代码示例来源:origin: senbox-org/snap-desktop
bindingContext.getBinding("min").addComponent(minLabel);
bindingContext.getBinding("max").addComponent(maxLabel);
代码示例来源:origin: bcdev/beam
bindingContext.getBinding("min").addComponent(minLabel);
bindingContext.getBinding("max").addComponent(maxLabel);
内容来源于网络,如有侵权,请联系作者删除!