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

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

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

Binding.getPropertyName介绍

暂无

代码示例

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

@Override
public void problemReported(BindingProblem problem, BindingProblem ignored) {
  final String propertyName = problem.getBinding().getPropertyName();
  final boolean invalidBoundSet = propertyName.equals(PROPERTY_NORTH_BOUND) ||
      propertyName.equals(PROPERTY_EAST_BOUND) ||
      propertyName.equals(PROPERTY_SOUTH_BOUND) ||
      propertyName.equals(PROPERTY_WEST_BOUND);
  if (invalidBoundSet) {
    resetTextField(problem);
  }
}

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

@Override
public void problemReported(BindingProblem problem, BindingProblem ignored) {
  final String propertyName = problem.getBinding().getPropertyName();
  final boolean invalidBoundSet = propertyName.equals(PROPERTY_NORTH_BOUND) ||
      propertyName.equals(PROPERTY_EAST_BOUND) ||
      propertyName.equals(PROPERTY_SOUTH_BOUND) ||
      propertyName.equals(PROPERTY_WEST_BOUND);
  if (invalidBoundSet) {
    resetTextField(problem);
  }
}

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

private PropertyDescriptor getPropertyDescriptor() {
  return getBinding().getContext().getPropertySet().getDescriptor(getBinding().getPropertyName());
}

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

@Override
public void bindComponents() {
  String propertyName = getBinding().getPropertyName();
  Property property = getBinding().getContext().getPropertySet().getProperty(propertyName);
  Assert.argument(property.getType().equals(String[].class), "property '" + propertyName +"' must be of type String[].class");
  listModel.setProperty(property);
}

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

private PropertyDescriptor getPropertyDescriptor() {
  return getBinding().getContext().getPropertySet().getDescriptor(getBinding().getPropertyName());
}

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

private PropertyDescriptor getPropertyDescriptor() {
  return getBinding().getContext().getPropertySet().getDescriptor(getBinding().getPropertyName());
}

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

@Override
public void bindComponents() {
  String propertyName = getBinding().getPropertyName();
  Property property = getBinding().getContext().getPropertySet().getProperty(propertyName);
  Assert.argument(property.getType().equals(String[].class), "property '" + propertyName +"' must be of type String[].class");
  listModel.setProperty(property);
}

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

相关文章