本文整理汇总了Java中com.bc.ceres.binding.PropertyContainer.getProperties方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyContainer.getProperties方法的具体用法?Java PropertyContainer.getProperties怎么用?Java PropertyContainer.getProperties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.bc.ceres.binding.PropertyContainer
的用法示例。
在下文中一共展示了PropertyContainer.getProperties方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getConverter
import com.bc.ceres.binding.PropertyContainer; //导入方法依赖的package包/类
private static Converter getConverter(final PropertyContainer valueContainer, final String name) {
final Property[] properties = valueContainer.getProperties();
for (Property p : properties) {
final PropertyDescriptor descriptor = p.getDescriptor();
if (descriptor != null && (descriptor.getName().equals(name) ||
(descriptor.getAlias() != null && descriptor.getAlias().equals(name)))) {
return descriptor.getConverter();
}
}
return null;
}
示例2: getDomConverter
import com.bc.ceres.binding.PropertyContainer; //导入方法依赖的package包/类
private static DomConverter getDomConverter(final PropertyContainer valueContainer, final String name) {
final Property[] properties = valueContainer.getProperties();
for (Property p : properties) {
final PropertyDescriptor descriptor = p.getDescriptor();
if (descriptor != null && (descriptor.getName().equals(name) ||
(descriptor.getAlias() != null && descriptor.getAlias().equals(name)))) {
return descriptor.getDomConverter();
}
}
return null;
}
示例3: resetToDefaults
import com.bc.ceres.binding.PropertyContainer; //导入方法依赖的package包/类
public void resetToDefaults(ImageGeometry ig) {
PropertyContainer pc = PropertyContainer.createObjectBacked(ig);
Property[] properties = pc.getProperties();
for (Property property : properties) {
propertyContainer.setValue(property.getName(), property.getValue());
}
propertyContainer.setValue("referencePixelLocation", REFERENCE_PIXEL_DEFAULT);
propertyContainer.setValue("fitProductSize", FIT_PRODUCT_SIZE_DEFAULT);
}
示例4: actionPerformed
import com.bc.ceres.binding.PropertyContainer; //导入方法依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
Mask selectedMask = getMaskForm().getSelectedMask();
final Mask mask = createNewMask(selectedMask.getImageType());
mask.setName("Copy_of_" + selectedMask.getName());
mask.setDescription(selectedMask.getDescription());
PropertyContainer selectedConfig = selectedMask.getImageConfig();
Property[] models = selectedConfig.getProperties();
for (Property model : models) {
mask.getImageConfig().setValue(model.getDescriptor().getName(),
model.getValue());
}
getMaskForm().addMask(mask);
}