001package gwt.material.design.jquery.client.api; 002 003/* 004 * #%L 005 * GwtMaterial 006 * %% 007 * Copyright (C) 2015 - 2017 GwtMaterialDesign 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023 024import gwt.material.design.jquery.client.api.Functions.Func; 025import gwt.material.design.jquery.client.api.Functions.Func1; 026import gwt.material.design.jquery.client.api.Functions.Func2; 027import gwt.material.design.jquery.client.api.Functions.Func3; 028import jsinterop.annotations.JsProperty; 029import jsinterop.annotations.JsType; 030 031/** 032 * @author Ben Dol 033 */ 034@JsType(isNative = true) 035public class AnimateOptions { 036 037 @JsProperty public native double getDuration(); 038 @JsProperty public native void setDuration(double duration); 039 040 @JsProperty public native String getEasing(); 041 @JsProperty public native void setEasing(String easing); 042 043 @JsProperty public native boolean isQueue(); 044 @JsProperty public native void setQueue(boolean queue); 045 046 @JsProperty public native Object getSpecialEasing(); 047 @JsProperty public native void setSpecialEasing(Object specialEasing); 048 049 @JsProperty public native Func3<Promise, Double, Double> getProgress(); 050 @JsProperty public native void setProgress(Func3<Promise, Double, Double> progress); 051 052 @JsProperty public native Func getComplete(); 053 @JsProperty public native void setComplete(Func complete); 054 055 @JsProperty public native Func1<Promise> getStart(); 056 @JsProperty public native void setStart(Func1<Promise> start); 057 058 @JsProperty public native Func2<Promise, Boolean> getDone(); 059 @JsProperty public native void setDone(Func2<Promise, Boolean> done); 060 061 @JsProperty public native Func2<Promise, Boolean> getFail(); 062 @JsProperty public native void setFail(Func2<Promise, Boolean> fail); 063 064 @JsProperty public native Func2<Promise, Boolean> getAlways(); 065 @JsProperty public native void setAlways(Func2<Promise, Boolean> always); 066}