Example usage for com.google.gwt.query.client Function f

List of usage examples for com.google.gwt.query.client Function f

Introduction

In this page you can find the example usage for com.google.gwt.query.client Function f.

Prototype

public void f() 

Source Link

Document

Override this to define a function which does not need any parameter.

Usage

From source file:com.arcbees.beestore.client.application.widget.slider.Slider.java

License:Apache License

private void queueFinishAnimation() {
    new Timer() {
        @Override/*from   w w  w.ja v a  2  s.co  m*/
        public void run() {
            activeAnimation = false;
            if (!calls.isEmpty()) {
                Function nextCall = calls.poll();
                nextCall.f();
            }
        }
    }.schedule(ANIMATION_DURATION);
}

From source file:com.arcbees.beestore.client.application.widget.slider.Slider.java

License:Apache License

private void handleClick(final GQuery w) {
    Function function = createAnimation(w);
    String indexOfSelected = w.css("order");

    if (!isActiveBrand(indexOfSelected)) {
        if (activeAnimation) {
            enforceNumberOfSuccessiveAnimations();
            calls.add(function);/*from ww w.jav a 2 s  . co m*/
        } else {
            function.f();
        }
    }
}