use of org.ovirt.engine.ui.uicommonweb.validation.IconValidation in project ovirt-engine by oVirt.
the class IconEditorWidget method validateIcon.
private void validateIcon() {
final IconWithOsDefault oldValue = getValue();
createValidationImageElement(icon, new ImageElementCallback() {
@Override
public void onElementReady(ImageElement imageElement) {
validationResult = new IconValidation(imageElement).validate(icon);
updateErrorIconLabel(validationResult);
final IconWithOsDefault newValue = getValue();
ValueChangeEvent.fireIfNotEqual(IconEditorWidget.this, oldValue, newValue);
}
});
}
Aggregations