Example usage for com.vaadin.ui TabSheet.Tab setComponentError

List of usage examples for com.vaadin.ui TabSheet.Tab setComponentError

Introduction

In this page you can find the example usage for com.vaadin.ui TabSheet.Tab setComponentError.

Prototype

public void setComponentError(ErrorMessage componentError) 

Source Link

Document

Sets the component's error message.

Usage

From source file:com.expressui.core.view.form.EntityForm.java

License:Open Source License

private void setTabError(String tabName, ErrorMessage error) {
    TabSheet.Tab tab = getTabByName(tabName);
    if (tab != null) {
        tab.setComponentError(error);
    }/*w w w.  j a va2  s .  co  m*/
}