Example usage for com.vaadin.ui AbstractComponent setEnabled

List of usage examples for com.vaadin.ui AbstractComponent setEnabled

Introduction

In this page you can find the example usage for com.vaadin.ui AbstractComponent setEnabled.

Prototype

@Override
    public void setEnabled(boolean enabled) 

Source Link

Usage

From source file:org.generationcp.breeding.manager.crossingmanager.AdditionalDetailsCrossNameComponent.java

License:Open Source License

private void enableSpecifyCrossNameComponents(boolean enabled) {
    for (AbstractComponent component : otherToggableComponents) {
        component.setEnabled(enabled);
    }// w  w w  .  j  av  a2s.co  m
    enableSpecifyLeadingZerosComponents(enabled && sequenceNumCheckBox.booleanValue());
}

From source file:org.generationcp.breeding.manager.crossingmanager.AdditionalDetailsCrossNameComponent.java

License:Open Source License

private void enableSpecifyLeadingZerosComponents(boolean enabled) {
    for (AbstractComponent component : digitsToggableComponents) {
        component.setEnabled(enabled);
    }//w  w  w  .  j a  v  a  2  s .com
}