本文整理匯總了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);
}