Search in sources :

Example 1 with IncludeField

use of com.storedobject.vaadin.IncludeField in project SODevelopment by syampillai.

the class SteppedObjectForm method getStepComponent.

@Override
protected final Component getStepComponent(int step) {
    ObjectForm<T> of;
    of = createObjectForm(step);
    if (of == null) {
        of = new ObjectForm<>(objectClass);
        IncludeField includeField = getIncludeFieldChecker(step);
        if (includeField == null) {
            StringList list = getFields(step);
            if (list != null) {
                of.setIncludeFieldChecker(list::contains);
            }
        } else {
            of.setIncludeFieldChecker(includeField);
        }
    }
    of.setView(this);
    forms.add(of);
    return of.getComponent();
}
Also used : IncludeField(com.storedobject.vaadin.IncludeField) StringList(com.storedobject.common.StringList)

Aggregations

StringList (com.storedobject.common.StringList)1 IncludeField (com.storedobject.vaadin.IncludeField)1