com.vaadin.v7.client.ui.progressindicator.ProgressBarConnector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-compatibility-client Show documentation
Show all versions of vaadin-compatibility-client Show documentation
Vaadin 7 compatibility package for Vaadin 8
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.v7.client.ui.progressindicator;
import com.vaadin.client.communication.StateChangeEvent;
import com.vaadin.shared.ui.Connect;
import com.vaadin.v7.client.ui.AbstractFieldConnector;
import com.vaadin.v7.client.ui.VProgressBar;
import com.vaadin.v7.shared.ui.progressindicator.ProgressBarState;
import com.vaadin.v7.ui.ProgressBar;
/**
* Connector for {@link VProgressBar}.
*
* @since 7.1
* @author Vaadin Ltd
*/
@Connect(ProgressBar.class)
public class ProgressBarConnector extends AbstractFieldConnector {
public ProgressBarConnector() {
super();
}
@Override
public void onStateChanged(StateChangeEvent stateChangeEvent) {
super.onStateChanged(stateChangeEvent);
getWidget().setIndeterminate(getState().indeterminate);
getWidget().setState(getState().state);
}
@Override
public ProgressBarState getState() {
return (ProgressBarState) super.getState();
}
@Override
public VProgressBar getWidget() {
return (VProgressBar) super.getWidget();
}
}