Example usage for com.vaadin.ui AbstractField getParent

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

Introduction

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

Prototype

@Override
    public HasComponents getParent() 

Source Link

Usage

From source file:nz.co.senanque.vaadinsupport.FieldFactory.java

License:Apache License

private MaduraForm getParentForm(AbstractField field) {
    Component parent = field.getParent();
    while (parent != null) {
        parent = parent.getParent();/*from   w  w w . j  av a 2s.c  om*/
        if (parent instanceof MaduraForm) {
            break;
        }
    }
    return (MaduraForm) parent;
}