List of usage examples for com.vaadin.server AbstractErrorMessage getErrorMessageForException
public static ErrorMessage getErrorMessageForException(Throwable t)
From source file:com.haulmont.cuba.web.gui.components.CubaCurrencyField.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!textField.isReadOnly() && textField.isRequiredIndicatorVisible() && textField.isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.v7.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }/*from w w w .j a v a 2 s . c om*/ } return superError; }
From source file:com.haulmont.cuba.web.gui.components.CubaFileUploadWrapper.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!isReadOnly() && isRequired() && isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }//from www . j a v a2 s. c o m } return superError; }
From source file:com.haulmont.cuba.web.toolkit.ui.CubaComboBox.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!isReadOnly() && isRequired() && isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }/* w ww . ja v a2 s . c o m*/ } return superError; }
From source file:com.haulmont.cuba.web.toolkit.ui.CubaCurrencyField.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!textField.isReadOnly() && textField.isRequired() && textField.isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }// w w w . jav a 2s. c om } return superError; }
From source file:com.haulmont.cuba.web.toolkit.ui.CubaPickerField.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!isReadOnly() && isRequired() && isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }//w ww . ja v a2 s . co m } return superError; }
From source file:com.haulmont.cuba.web.toolkit.ui.CubaResizableTextAreaWrapper.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!textArea.isReadOnly() && isRequired() && textArea.isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }/*from w w w . j av a2s .c om*/ } return superError; }
From source file:com.haulmont.cuba.web.widgets.CubaComboBox.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!isReadOnly() && isRequired() && isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.v7.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }//from w w w . j av a 2 s . co m } return superError; }
From source file:com.haulmont.cuba.web.widgets.CubaListSelect.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!isReadOnly() && isRequired() && isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.v7.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }/*from w w w .ja v a 2s. co m*/ } return superError; }
From source file:com.haulmont.cuba.web.widgets.CubaPickerField.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!isReadOnly() && isRequired() && isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.v7.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }/*from w w w . ja va 2 s .com*/ } return superError; }
From source file:com.haulmont.cuba.web.widgets.CubaResizableTextAreaWrapper.java
License:Apache License
@Override public ErrorMessage getErrorMessage() { ErrorMessage superError = super.getErrorMessage(); if (!textArea.isReadOnly() && isRequired() && textArea.isEmpty()) { ErrorMessage error = AbstractErrorMessage.getErrorMessageForException( new com.vaadin.v7.data.Validator.EmptyValueException(getRequiredError())); if (error != null) { return new CompositeErrorMessage(superError, error); }// ww w . ja va 2s . co m } return superError; }