Example usage for com.vaadin.v7.ui AbstractSelect isVisible

List of usage examples for com.vaadin.v7.ui AbstractSelect isVisible

Introduction

In this page you can find the example usage for com.vaadin.v7.ui AbstractSelect isVisible.

Prototype

public boolean isVisible();

Source Link

Document

Tests the visibility property of the component.

Usage

From source file:de.symeda.sormas.ui.person.PersonEditForm.java

License:Open Source License

private void fillDeathAndBurialFields(AbstractSelect deathPlaceType, TextField deathPlaceDesc,
        TextField burialPlaceDesc) {
    if (deathPlaceType.isVisible() && deathPlaceType.getValue() == null) {
        deathPlaceType.setValue(DeathPlaceType.OTHER);
        if (deathPlaceDesc.isVisible()
                && (deathPlaceDesc.getValue() == null || deathPlaceDesc.getValue().isEmpty())) {
            deathPlaceDesc.setValue(getValue().getAddress().toString());
        }/*from   w  w  w  .  java 2 s  .  c  om*/
    }

    if (burialPlaceDesc.isVisible()
            && (burialPlaceDesc.getValue() == null || deathPlaceDesc.getValue().isEmpty())) {
        burialPlaceDesc.setValue(getValue().getAddress().toString());
    }
}