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

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

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

Binding.adjustComponents介绍

暂无

代码示例

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

private ActionListener createLoadExpressionButtonListener() {
  return e -> {
    try {
      final File file = Dialogs.requestFileForOpen(
          "Load Band Maths Expression", false, null, PREF_KEY_LAST_EXPRESSION_PATH);
      if (file != null) {
        expression = new String(Files.readAllBytes(file.toPath()));
        bindingContext.getBinding(PROPERTY_NAME_EXPRESSION).setPropertyValue(expression);
        bindingContext.getBinding(PROPERTY_NAME_EXPRESSION).adjustComponents();
      }
    } catch (IOException ex) {
      showErrorDialog(ex.getMessage());
    }
  };
}

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

Binding binding = parametersPane.getBindingContext().getBinding(dependency.getTargetFieldName());
binding.setPropertyValue(newTargetValue);
binding.adjustComponents();

代码示例来源: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();
}

相关文章