Example usage for com.vaadin.ui AbstractField equals

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

Introduction

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

Prototype

@Override
    public boolean equals(Object obj) 

Source Link

Usage

From source file:org.eclipse.hawkbit.ui.common.CommonDialogWindow.java

License:Open Source License

private static Object getCurrentValue(final Component currentChangedComponent, final Object newValue,
        final AbstractField<?> field) {
    Object currentValue = field.getValue();
    if (field instanceof Table) {
        currentValue = ((Table) field).getContainerDataSource().getItemIds();
    }/*w  w  w  .  j  a  v  a  2s.  com*/

    if (field.equals(currentChangedComponent)) {
        currentValue = newValue;
    }
    return currentValue;
}