All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gxt-2.1.1-sources.com.extjs.gxt.ui.client.fx.FxConfig Maven / Gradle / Ivy

There is a newer version: 2.3.1-gwt22
Show newest version
/*
 * Ext GWT - Ext for GWT
 * Copyright(c) 2007-2009, Ext JS, LLC.
 * [email protected]
 * 
 * http://extjs.com/license
 */
package com.extjs.gxt.ui.client.fx;

import com.extjs.gxt.ui.client.event.FxEvent;
import com.extjs.gxt.ui.client.event.Listener;

/**
 * Allows the configuration of an Fx instance using a single object.
 */
public class FxConfig {

  public static final FxConfig NONE = new FxConfig();

  private Listener effectStartListener;
  private Listener effectCompleteListener;
  private int duration;

  public FxConfig() {

  }

  public FxConfig(int duration) {
    this.setDuration(duration);
  }

  public FxConfig(Listener callback) {
    this.effectCompleteListener = callback;
  }

  public FxConfig(int duration, Listener callback) {
    this.setDuration(duration);
    this.effectCompleteListener = callback;
  }

  public void setDuration(int duration) {
    this.duration = duration;
  }

  public int getDuration() {
    return duration;
  }

  public Listener getEffectStartListener() {
    return effectStartListener;
  }

  public void setEffectStartListener(Listener effectStartListener) {
    this.effectStartListener = effectStartListener;
  }

  public Listener getEffectCompleteListener() {
    return effectCompleteListener;
  }

  public void setEffectCompleteListener(Listener effectCompleteListener) {
    this.effectCompleteListener = effectCompleteListener;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy