Example usage for com.vaadin.ui AbstractField setTabIndex

List of usage examples for com.vaadin.ui AbstractField setTabIndex

Introduction

In this page you can find the example usage for com.vaadin.ui AbstractField setTabIndex.

Prototype

@Override
    public void setTabIndex(int tabIndex) 

Source Link

Usage

From source file:com.google.code.vaadin.internal.preconfigured.VaadinComponentsInjector.java

License:Apache License

private static void configureAbstractFieldApi(AbstractField abstractField, Preconfigured preconfigured) {
    if (!(abstractField instanceof Form)) {
        abstractField.setInvalidAllowed(preconfigured.invalidAllowed());
    }//from ww  w  .  j  a va  2s .  c  o  m
    abstractField.setInvalidCommitted(preconfigured.invalidCommitted());
    abstractField.setValidationVisible(preconfigured.validationVisible());
    if (preconfigured.tabIndex() > -1) {
        abstractField.setTabIndex(preconfigured.tabIndex());
    }
}