use of com.google.gwt.animation.client.Animation in project kie-wb-common by kiegroup.
the class ShowcaseEntryPoint method hideLoadingPopup.
// Fade out the "Loading application" pop-up
private void hideLoadingPopup() {
final Element e = RootPanel.get("loading").getElement();
new Animation() {
@Override
protected void onUpdate(double progress) {
e.getStyle().setOpacity(1.0 - progress);
}
@Override
protected void onComplete() {
e.getStyle().setVisibility(Style.Visibility.HIDDEN);
}
}.run(500);
}
use of com.google.gwt.animation.client.Animation in project ovirt-engine by oVirt.
the class AnimatedVerticalPanel method addFadeIn.
public void addFadeIn(Widget w) {
final Style widgetStyle = w.getElement().getStyle();
widgetStyle.setOpacity(0);
add(w);
new Animation() {
@Override
protected void onUpdate(double progress) {
widgetStyle.setOpacity(progress);
}
}.run(ANIM_DELAY);
}
use of com.google.gwt.animation.client.Animation in project webprotege by protegeproject.
the class TagCriteriaListViewImpl method addTagCriteriaViewContainer.
@Override
public void addTagCriteriaViewContainer(@Nonnull TagCriteriaViewContainer container, boolean scrollIntoView, boolean animate) {
tagCriteriaListContainer.add(container);
if (scrollIntoView) {
addButton.getElement().scrollIntoView();
}
if (animate) {
Element element = container.asWidget().getElement();
Style style = element.getStyle();
style.setOpacity(0);
Animation animation = new Animation() {
@Override
protected void onUpdate(double progress) {
style.setOpacity(progress);
}
};
animation.run(ANIMATION_DURATION_MS);
}
}
use of com.google.gwt.animation.client.Animation in project webprotege by protegeproject.
the class ModalViewImpl method hide.
@Override
public void hide() {
Animation animation = new Animation() {
@Override
protected void onUpdate(double progress) {
getElement().getStyle().setOpacity(1 - progress);
if (progress == 1.0) {
removeFromParent();
getElement().getStyle().setOpacity(1);
}
}
};
animation.run(300);
}
use of com.google.gwt.animation.client.Animation in project appformer by kiegroup.
the class ShowcaseEntryPoint method hideLoadingPopup.
// Fade out the "Loading application" pop-up
private void hideLoadingPopup() {
final Element e = RootPanel.get("loading").getElement();
new Animation() {
@Override
protected void onUpdate(double progress) {
e.getStyle().setOpacity(1.0 - progress);
}
@Override
protected void onComplete() {
e.getStyle().setVisibility(Style.Visibility.HIDDEN);
}
}.run(500);
}
Aggregations